Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Using Loads of Memory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rjemerson
n00b
n00b


Joined: 11 Dec 2002
Posts: 9
Location: Massachusetts

PostPosted: Thu Jan 23, 2003 9:56 pm    Post subject: Gentoo Using Loads of Memory Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Jan 23, 2003 10:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
rjemerson
n00b
n00b


Joined: 11 Dec 2002
Posts: 9
Location: Massachusetts

PostPosted: Thu Jan 23, 2003 10:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Fri Jan 24, 2003 1:30 am    Post subject: Reply with quote

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
View user's profile Send private message
rjemerson
n00b
n00b


Joined: 11 Dec 2002
Posts: 9
Location: Massachusetts

PostPosted: Fri Jan 24, 2003 12:44 pm    Post subject: Reply with quote

total used free shared buffers cached
Mem: 513960 497088 16872 0 23720 395000
-/+ buffers/cache: 78368 435592
Swap: 995988 0 995988
Back to top
View user's profile Send private message
rjemerson
n00b
n00b


Joined: 11 Dec 2002
Posts: 9
Location: Massachusetts

PostPosted: Fri Jan 24, 2003 3:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum