Displaying Free and Used Memory with free
Although top
includes some memory information, the free utility displays the amount of free and used memory in the system in kilobytes. (The -m
switch displays in megabytes.) On one system, the output looks like this:
matthew@seymour:~$ free total used free shared buffers cachedMem: 4055680 3327764 727916 0 280944 2097568-/+ buffers/cache: 949252 3106428Swap: 8787512 0 8787512
This output describes a machine with 4GB of RAM memory and a swap partition of 8GB. Note that none of the swap is being used and that the machine is not heavily loaded. Linux is very good at memory management and ...
Get Ubuntu Unleashed 2014 Edition: Covering 13.10 and 14.04,Ninth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.