Linux Memory Info

From NovaOrdis Knowledge Base
Revision as of 13:35, 9 May 2017 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

Internal

Memory Metrics Definitions

proc/meminfo
proc/swaps

Memory Page Size

Linux has its main memory organized in pages. A page is a fixed length block of main memory, that is contiguous in both physical memory addressing and virtual memory addressing. Kernel swap and allocates memory using pages. To find the page size in effect, in bytes:

getconf PAGESIZE

or:

getconf PAGE_SIZE

A typical value is 4096.

For more details see getconf.

free

free -mt

Displays RAM and swap.

-m

Display the amount in MB.

-t

Display totals (RAM and swap).

Other Tools

top
vmstat
getconf