Looking through the code, I've found out there are two implementations
of hashing function. Swapping happens only when the fast one is in use.

-- 
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

_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to