By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,332 Members | 1,117 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,332 IT Pros & Developers. It's quick & easy.

Memory usage

P: n/a
I want to know how much memory I've got free on my system.

The free command gives me something like this:

total used free shared buffers cached
Mem: 2064832 2046196 18636 0 146892 1736968
-/+ buffers/cache: 162336 1902496
Swap: 2040244 12180 2028064

It would make sense to me that the kernel is sucking up most of my memory
into a bunch of unused buffers and that I actually have a lot more than 18
megs of free memory. Is this the correct interpretation of these numbers?
What is the best way to get a good idea of how much memory I actually have
free on my system.
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
On Wed, Feb 25, 2004 at 02:10:56PM -0700, Rick Gigger wrote:
I want to know how much memory I've got free on my system.

The free command gives me something like this:

total used free shared buffers cached
Mem: 2064832 2046196 18636 0 146892 1736968
-/+ buffers/cache: 162336 1902496
Swap: 2040244 12180 2028064

It would make sense to me that the kernel is sucking up most of my memory
into a bunch of unused buffers and that I actually have a lot more than 18
megs of free memory. Is this the correct interpretation of these numbers?
What is the best way to get a good idea of how much memory I actually have
free on my system.
Depends what do you mean by "free". If you mean "the amount of memory not used by
anything", that's the free column. If you mean "the amount of memory
that can be allocated by a program without forcing swapping", that's
the free column plus the cached column and probably the buffers column
too.

The buffers and cache are managed by the kernel since totally unused
memory is wasted memory.

Hope this helps,
--
Martijn van Oosterhout <kl*****@svana.org> http://svana.org/kleptog/ If the Catholic church can survive the printing press, science fiction
will certainly weather the advent of bookwarez.
http://craphound.com/ebooksneitherenorbooks.txt - Cory Doctorow


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFAQRTGY5Twig3Ge+YRAgmuAJ9lv2eB/RDnAJ8VlTvVF9NWbgat+gCgoUvd
ry14ZbOWxrI5/pHOQg5hBeU=
=aEr1
-----END PGP SIGNATURE-----

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.