free

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, when I use free -m its output is like this:
[vampird@Sharwyn]:~$ free -m
total used free shared buffers cached
Mem: 1998 1964 33 0 16 705

  • -/+ buffers/cache: 1242 755
    Swap: 4102 54 4047
    [vampird@Sharwyn]:~$

but, what are the -/+ buffers/cache line? Mem is the phisical memory,
Swap is obvious


VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkuOu2EACgkQJQ+0ABWtaVnwaQCeJ4g5h6O7ePg1LE9iQCMMqIRN
KCoAoIInGiB/aVmQZs9Dna/6C5ppJ5wC
=cijD
-----END PGP SIGNATURE-----

VampirD wrote:
> Hi, when I use free -m its output is like this:
> [vampird@Sharwyn]:~$ free -m
> total used free shared buffers cached
> Mem: 1998 1964 33 0 16 705
> -/+ buffers/cache: 1242 755
> Swap: 4102 54 4047

linux does not ‘release’ memory until it has to…that is, it keeps in
RAM everything it can until the memory is needed for something
else…the philosophy is that you might need it again and it is a lot
faster to fetch it from memory, than from disk…so, just hold on to it…

so, if you look at the mem line almost ALL is being used for something…

the buffer/cache is where you learn what all that memory is being used
for…

the 1242 is being used by programs now active…the 755 is not really
being used by anything…it is just that stuff still waiting to be used…

if another program needs more memory the cache/buffer used number will
increase and the cache/buffer free number will go down…

see?


palladium

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

thanks


VampirD
No in elenath hîlar nan hâd gîn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkuO0KMACgkQJQ+0ABWtaVlIqQCggqp6hTPkhLZQ562ozHvyDxGC
8FAAoOPSTrVDX17aEQr9SPpRpP/aJbST
=gEJ5
-----END PGP SIGNATURE-----

VampirD wrote:
> thanks

my pleasure


palladium