Linux Memory Info: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[proc-meminfo|proc/meminfo]]
:[[proc-meminfo|proc/meminfo]]
</blockquote>
=Swap Info=
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[proc-swaps|proc/swaps]]
:[[proc-swaps|proc/swaps]]
</blockquote>
</blockquote>
Also see {{Internal|Linux_Memory_Management#Swap_Info|Swap Info}}


=Memory Page Size=
=Memory Page Size=

Revision as of 15:31, 29 June 2017

Internal

Memory Metrics Definitions

proc/meminfo

Swap Info

proc/swaps

Also see

Swap Info

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