← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 376896] Re: Excessive swapping during hash

 

I've added some additional error checking to fast hash a while ago in
upstream dc++, but it has not made its way to linuxdcpp yet. It may show
that madvise is indicating an error and fallback to regular hash in your
case. Can you try grabbing the latest copy of HashManager.cpp and .h
from DC++ and retrying? Also, what is your max hash speed size
preference set to?

http://bazaar.launchpad.net/~dcplusplus-
team/dcplusplus/trunk/files/head%3A/dcpp/

-- 
Excessive swapping during hash
https://bugs.launchpad.net/bugs/376896
You received this bug notification because you are a member of LinuxDC++
Team, which is subscribed to LinuxDC++.

Status in Linux DC++: New

Bug description:
There is a reproducable problem in linuxdcpp (or maybe it is the kernel/libc?), where hashing a large file causes excessive swapping to occur, while memory usage is far from 100%. I've seen this on at least two different machines, both working under gentoo amd64 and both using 2.6.29.2 kernel.
Steps to reproduce:
1. Start X/GNOME/KDE, some programs in the background to give system something to swap
2. Start hashing some _big_ files (say, 2GIG and more on a system with 4GiGs of RAM)
3. See swapping to occur

I don't know whether thisi is a kernel or stdlib or linuxdcpp issue, but I only see such swapping with linuxdcpp

Here is a "vmstat 2" output during hashing of two big files in the attachment