LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-31-2006, 02:39 AM   #1
DIGITAL39
Member
 
Registered: Sep 2003
Location: Virginia
Distribution: Slackware, CentOS, Red Hat
Posts: 48

Rep: Reputation: 15
Please explain Linux memory usage


I found a post while searching that mentioned Linux uses memory much different than Windows, but it is sorta annoying if that is true. I am running slackware 11 out of the box with a full install. Normal applications running nothing special, not a lot of startup applications and using KDE. I have 1gb of ram and 2gb swap on kernel 2.6.17.13-smp. Here is my meminfo

Code:
MemTotal:      1035496 kB
MemFree:         21508 kB
Buffers:        111864 kB
Cached:         551148 kB
SwapCached:         24 kB
Active:         612228 kB
Inactive:       344540 kB
HighTotal:      131008 kB
HighFree:          260 kB
LowTotal:       904488 kB
LowFree:         21248 kB
SwapTotal:     2000084 kB
SwapFree:      1997364 kB
Dirty:              36 kB
Writeback:           0 kB
Mapped:         362232 kB
Slab:            48416 kB
CommitLimit:   2517832 kB
Committed_AS:   653980 kB
PageTables:       1876 kB
VmallocTotal:   114680 kB
VmallocUsed:      5472 kB
VmallocChunk:   108760 kB
If I have 1gb of RAM and I am only running firefox,gaim,and amarok why I am dipping into my swap? that seems a bit ridiculous to me, but I am hoping someone can help me understand.

Thanks for your help.

Pete
 
Old 12-31-2006, 03:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well you've only used 24k of swap, and to be honest i don't know what that's been used for, but it's really neglibile. the cache can be thought of as "free" if it's needed as such. as i've said in a huge number of other posts, it's old data that's no longer used, but *might* be useful in the future. why bother clearing it out when you don't currently need the space? can't see how that's "sorta annoying" in the slightest.
 
Old 12-31-2006, 04:09 AM   #3
DIGITAL39
Member
 
Registered: Sep 2003
Location: Virginia
Distribution: Slackware, CentOS, Red Hat
Posts: 48

Original Poster
Rep: Reputation: 15
Thanks acid,

I guess it is annoying because I am not used to it. I am still in a Windows mindset where <20mb of ram matters. If you are saying its cool then it doesnt annoy me because linux will take care of it for me.
 
Old 12-31-2006, 04:25 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Read this. Any further questions just ask.
 
Old 12-31-2006, 09:20 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by DIGITAL39
Thanks acid,

I guess it is annoying because I am not used to it. I am still in a Windows mindset where <20mb of ram matters. If you are saying its cool then it doesnt annoy me because linux will take care of it for me.
well, you (presumably) paid good money for that memory, wouldn't you rather the os did *something* with it rather than let it sit twiddling it's thumbs?
 
Old 12-31-2006, 03:53 PM   #6
Trio3b
Member
 
Registered: Oct 2004
Location: Texas, USA
Distribution: MDV 2008.1, PCLinuxOS,
Posts: 315

Rep: Reputation: 30
memory

I guess being used to less memory usage to accomplish the "same task" make it appear that the memory management is more efficient. But...if the memory in linux is being kept in standby mode then this is more efficient. Is this what is happening?

Thanks
 
Old 12-31-2006, 03:59 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yep. windows proactively purges unused data from memory. if that space isn't needed at that moment, why bother wasting CPU cycles clearing it all out?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Usage on Linux lchand_p Linux - Software 2 06-19-2006 06:17 AM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Linux Memory usage Boomba Linux - General 8 03-25-2004 04:16 PM
Linux and Memory usage ganninu Linux - General 8 12-15-2003 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:46 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
Open Source Consulting | Domain Registration