View previous topic :: View next topic |
Author |
Message |
rjemerson n00b
Joined: 11 Dec 2002 Posts: 9 Location: Massachusetts
|
Posted: Thu Jan 23, 2003 9:56 pm Post subject: Gentoo Using Loads of Memory |
|
|
I've noticed over the last few days that my swap space is slowly filling up, even though available memory isn't maxed out. This clears when I reboot. A search through the forums showed that this can be explained by a leak in the latest stable NVidia drivers, so I updated to the latest unstable ones.
That seemed to fix the swap problem, but I'm hitting a new one: Now the available memory is close to being maxed out! top shows zero swap used, but 491200k of used memory, with 22760k free. I'm thinking there's a memory leak somewhere, but I don't know where its coming from...X is the major memory user, but its only showing up as using 5.1% (which isn't 491 MB).
I'm running Gentoo 1.4 on a Pentium 4 1.8GHz with 512 MB RAM, NVidia GEForce 2 video card.
Any suggestions would be appreciated. |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Jan 23, 2003 10:47 pm Post subject: |
|
|
Is this different than the disk cache? That expands to fill memory, but gives it up when something more deserving needs it. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
rjemerson n00b
Joined: 11 Dec 2002 Posts: 9 Location: Massachusetts
|
Posted: Thu Jan 23, 2003 10:54 pm Post subject: |
|
|
Doesn't seem to be the cache, although I'm not 100% sure...its a gradual filling up of available memory (formerly the swap space). I'm not seeing any "more deserving" processes getting memory when things max out.
Something I didn't put in previously: Before I installed the new NVidia drivers (ie, when it was still a swap problem), everything got freed up on reboot. However, the system hung at the "Deactivating swap" portion of shutdown. Not sure if this is related to the current issue, but it couldn't hurt to put it in.
Thanks. |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Fri Jan 24, 2003 1:30 am Post subject: |
|
|
rjemerson wrote: | Doesn't seem to be the cache, although I'm not 100% sure...its a gradual filling up of available memory | Sounds an awful lot like block device cache.
What does `free` tell you your memory usage actually is? _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
rjemerson n00b
Joined: 11 Dec 2002 Posts: 9 Location: Massachusetts
|
Posted: Fri Jan 24, 2003 12:44 pm Post subject: |
|
|
total used free shared buffers cached
Mem: 513960 497088 16872 0 23720 395000
-/+ buffers/cache: 78368 435592
Swap: 995988 0 995988 |
|
Back to top |
|
|
rjemerson n00b
Joined: 11 Dec 2002 Posts: 9 Location: Massachusetts
|
Posted: Fri Jan 24, 2003 3:24 pm Post subject: |
|
|
Does block device cache also eat into swap space? I just noticed that my memory's nearly maxed out, and now swap's getting consumed.
bash-2.05b# free
total used free shared buffers cached
Mem: 513960 492972 20988 0 52968 334600
-/+ buffers/cache: 105404 408556
Swap: 995988 1388 994600 |
|
Back to top |
|
|
|