LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-18-2004, 11:27 AM   #1
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 30
updatedb not releasing memory?


I noticed on my Laptop (X31, 1.4GHZ Pentium M, 1.5GB RAM running Slack 10 with custom 2.6.7 kernel) that when I left it on overnight memory usage was going from around 20MB used to in excess of 200MB used. This is used memory not cache. Total memory usage jumped from 140MB to 769MB, most of it being cache.

After a bit of playing around I figured out that it was the slocate task in /etc/cron.daily. Running /usr/bin/updatedb -c from the command line caused the same jump in memory usage. Looking at my other systems this is the only one that jumps that much, though I suspect updatedb is using around 10MB on my other boxes with a similar setup.

So my questions are:
1 - Might it be that the laptop has windows mounted account for the memory difference?
2 - Why might this memory never get freed? I do not see any tasks that account for the missing memory.
 
Old 07-18-2004, 05:03 PM   #2
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
From what I've read around the forum, this is typical of the way linux handles its memory, it doesn't release it unless the memory is required. -

I'm not sure if it explains what you are reading from your stats, but does it actually causes other programs to run as if the memory was taken up, or are they running okay?
 
Old 07-19-2004, 12:37 AM   #3
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Original Poster
Rep: Reputation: 30
No, everything runs fine and I have memory to spare on this box, but it is still annoying. Linux caches with free memory but what I am discussing is it not releasing active memory, which is not quite the same thing. For the moment I have pulled the updatedb command out of cron, which is not a big deal to me since I don't use locate very often. I'll just call the updatedb command by hand periodically.

For me it is more a need to know WHY it is consuming so much memory. It is almost as if the update.db were being stored in memory...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference between 'updatedb' and 'updatedb&' ?? DreameR-X Linux - Newbie 4 12-18-2004 05:36 PM
Releasing / Renewing IP Verbal Kint Linux - Networking 2 12-08-2004 12:52 AM
Is Redhat not releasing 10? subzero80 Linux - Software 12 05-28-2004 11:28 PM
new kernel not releasing memory plisken Linux - General 1 10-22-2003 07:22 PM
IP releasing davidpurple Linux - Newbie 5 12-05-2001 04:39 PM


All times are GMT -5. The time now is 02:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration