SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been having alot of mem leaks the past month with my system, and i can't figure out the cause or pointpoint the application...
I have 512Mb, with a swap of 256Mb. I've never had to use my swap file, even with apache, mysql, and several apps running. But nowadays, after a day or two of usage, i notice swap usage slowly goes up to 6Mb, then up to 50Mb, and even 90Mb. My system starts to be come less responsive and just .. well.. slower than usual.
At first, i thought aMule was causing the problem, and i've asked the devs at #amule, and they said that because i have it compiled with gtk2, gtk2 can sometimes cause mem leaks. But closing amule doesn't get rid of all the swap usage, and sometimes i do get swap usage without using amule at all.
Even if i logoff and log back in, swap is still being used. The only way to empty it out is either
swapoff /dev/hda2 && swapon /dev/hda2
or a reboot.
I don't know of any utilities that show swap usage per application. The only utilities i use are torsmo, top, and sometimes ksysguard.
Any advice?
Thanks.
Edit: If it helps, my current mem info,
torsmo: 183M/502M - 36%
swap: 0/256M - 0% (coz i just restarted my swap)
I read the top man page, although it is clear, in practice top
shows used swap for each process but not free nor
cat /proc/meminfo ...
When I had the updatedb problem, I saw the used swap
from the 5th line from the top of top and the % of memory
used by updatedb at this time (99% or so)
I mean it can't be that every app i have running is leaking memory... And these are the identical apps (almost to the version) that i had on 4 other systems that worked perfectly.
Originally posted by xushi Hmm, no, they had up to 2.6.11.12. This laptop's running on 2.6.12.3.
As for swappiness, heh, what is that anyway? never heard of it before..
As for FF.. it might be imprefect, but i havent seen it leek memory like that before. And why doesn't my swap reduce in size when i close it ?
:'(
I've been having memory leaks from FireFox Under 2.6.11.11 for awhile now.
Usually after keeping FF up for a week or two it runs very poorly.
My swap doesn't decrease by closing FF, so I'm thinking FF isn't using it.
Dunno, but it sure seems a likely culprit to me.
Originally posted by egag maybe another thing to check is the size of the cache that FF uses.
my setting ( mozilla ) is 50 MB and that's default.
egag
I'll set swappiness to 10 now, and restart my swap. My FF cache is 5Mb. I tried disabling it or setting it to 1k, but it was slower than what i expected.. So i set it to 5k.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.