Re: [gentoo-user] cleaning up memory statistics...
On Fri, 2005-02-18 at 11:08 -0800, Mark Knecht wrote: > Is there a command that tells Linux to really memory that is really > not in use? I'm sure top is not the best app for looking at this so > what app would be better? cat /proc/meminfo and the following link to make sense of it... http://linuxweblog.com/node/232 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] cleaning up memory statistics...
Hi Mark, Is there a command that tells Linux to really memory that is really not in use? I'm sure top is not the best app for looking at this so yes there is: i.e. "free -m". the line starting with "-/+" tells you what's used by apps without filesystem cache and buffers and what's free. the "-m" is for using MegaBytes as unit. I was trying out a program that ended up using all of memory and about 700MB of swap. I eventually exited the program, cleanly I think, but after 15 minutes Linux said that all 775MB of main memory and 400MB of swap was still in use. Once some thing swaped out it will swap in only if it is needed, or if you run "swapoff -a". use top and "M" to sort by mem-usage. and make shure that your apps exited. I understand that swap memory (and maybe main memory) are not by default immediately given back to the system, but is there a way for me to tell the system to go collect everything and get the system back to something close to this reboot state? No. You can not tell the system to forget all cache/buffers. The kernel reduces dynamicaly this memory regions if they are needed by your apps. You can imagine cache/buffers as "quasi free". There is realy no reason to worry about. linux does not eat memory :-). Sascha. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] cleaning up memory statistics...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark Knecht wrote: | Is there a command that tells Linux to really memory that is really | not in use? I'm sure top is not the best app for looking at this so | what app would be better? | | Here's a picture of my machine running Gnome and Mozilla immediately | after a reboot. | | top - 11:02:50 up 3 min, 2 users, load average: 0.69, 0.43, 0.17 | Tasks: 62 total, 1 running, 61 sleeping, 0 stopped, 0 zombie | Cpu(s): 4.7% us, 0.3% sy, 0.0% ni, 95.0% id, 0.0% wa, 0.0% hi, 0.0% si | Mem:775308k total, 322024k used, 453284k free,38472k buffers | Swap: 1536184k total,0k used, 1536184k free, 161860k cached | | I was trying out a program that ended up using all of memory and about | 700MB of swap. I eventually exited the program, cleanly I think, but | after 15 minutes Linux said that all 775MB of main memory and 400MB of | swap was still in use. | | I understand that swap memory (and maybe main memory) are not by | default immediately given back to the system, but is there a way for | me to tell the system to go collect everything and get the system back | to something close to this reboot state? | | Thanks in advance, | Mark | | -- | gentoo-user@gentoo.org mailing list | | Try the command free -m, here is what the output looks like: free -m ~ total used free sharedbuffers cached Mem: 756734 21 0337248 - -/+ buffers/cache:148608 Swap: 2016 0 2016 Mike - -- Mike Noble Email: [EMAIL PROTECTED] Key ID: 0xFFDFC13B Key fingerprint: 8204 1297 B9AD 0CED 2FCE 1FB0 9491 5824 FFDF C13B Keyserver: http://pgpkeys.mit.edu -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFCFlLGlJFYJP/fwTsRAjs2AJ9EQxpkWHWsb0ZnL7wW8rVqhIUlIQCcDOFN Vz1d5DA+KGhr+jwqFtJtgtk= =13tF -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list
[gentoo-user] cleaning up memory statistics...
Is there a command that tells Linux to really memory that is really not in use? I'm sure top is not the best app for looking at this so what app would be better? Here's a picture of my machine running Gnome and Mozilla immediately after a reboot. top - 11:02:50 up 3 min, 2 users, load average: 0.69, 0.43, 0.17 Tasks: 62 total, 1 running, 61 sleeping, 0 stopped, 0 zombie Cpu(s): 4.7% us, 0.3% sy, 0.0% ni, 95.0% id, 0.0% wa, 0.0% hi, 0.0% si Mem:775308k total, 322024k used, 453284k free,38472k buffers Swap: 1536184k total,0k used, 1536184k free, 161860k cached I was trying out a program that ended up using all of memory and about 700MB of swap. I eventually exited the program, cleanly I think, but after 15 minutes Linux said that all 775MB of main memory and 400MB of swap was still in use. I understand that swap memory (and maybe main memory) are not by default immediately given back to the system, but is there a way for me to tell the system to go collect everything and get the system back to something close to this reboot state? Thanks in advance, Mark -- gentoo-user@gentoo.org mailing list