View previous topic :: View next topic |
Author |
Message |
ranmakun Guru
Joined: 06 Nov 2002 Posts: 372 Location: Buenos Aires - Argentina
|
Posted: Mon Mar 24, 2003 5:34 pm Post subject: swap space "problem" |
|
|
well, I'm not sure if this is ok or not, but it doesn't look ok.
I upgraded my machine to 768 Mb of RAM but my Gentoo is still using a lot of swapspace.
Code: |
fran@ukyo fran $ free
total used free shared buffers cached
Mem: 773756 766660 7096 0 4632 594220
-/+ buffers/cache: 167808 605948
Swap: 530104 88776 441328
|
why is this happening?, it is normal?, I would expect to be using much more memory to start using swap space.
Thank you.
Francisco |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Mon Mar 24, 2003 6:16 pm Post subject: |
|
|
Are you using an nvidia video card with NVidias drivers? They are known for memory leaks. The latest kernels have are supposed to be patched to prevent it. What services are you running on this system? Once you use some memory for an app the kernel tends to keep it tagged as used, but will re-use it as needed apparently.
Brian |
|
Back to top |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Mon Mar 24, 2003 7:12 pm Post subject: |
|
|
used ram - cache = 172 megs which doesn't seem too bad and it's only using a small bit of your swap space. My system has 512M ram, is using 226M after cache and using 12M of swap. I'd ignore it unless your swap starts to fill up. |
|
Back to top |
|
|
Jimbow Guru
Joined: 18 Feb 2003 Posts: 597 Location: Silver City, NM
|
Posted: Mon Mar 24, 2003 7:18 pm Post subject: |
|
|
Some ideas:
1. Do a "ps aux| less" or gtop (in Gnome) or Ctrl-Esc (in KDE) to get a list of all processes. There may be a bunch of applications that did not close properly. I had this problem once when I was playing around with mplayer.
2. You may have some sort of memory leak. There is a known leak associated with the Nvidia drivers and GLX applications (like some of the nifty screensavers). You can check for this by trying out various GLX screensavers while monitoring your memory usage. Be careful though. If this is the cause and you are already out of RAM your disk may start thrashing forcing you to reboot.
3. If you do reboot, you may want to monitor your memory usage. I use Gkrellm for this. I think that Gtop or Ksysguard would also work. Worse comes to worse you could run top in a console. Then try to see if there is a correlation between using certain apps and memory usage. _________________ After Perl everything else is just assembly language. |
|
Back to top |
|
|
ranmakun Guru
Joined: 06 Nov 2002 Posts: 372 Location: Buenos Aires - Argentina
|
Posted: Wed Mar 26, 2003 6:32 pm Post subject: |
|
|
ok, thank you guys, I discovered that was mldonkey that was doing this. If I turn on my computer and the first thing I do is to open mldonkey it starts to fill my cache progressively until all my ram is full and then it starts to fill my swap space.
What I dont undestand is why it doesn't use my ram instead of the swap space
This is the the free output after a test I did, only mldonkey open:
Code: |
fran@ukyo fran $ free
total used free shared buffers cached
Mem: 773756 766832 6924 0 1160 638896
-/+ buffers/cache: 126776 646980
Swap: 1044184 86526 957658
|
Francisco |
|
Back to top |
|
|
|