Linux Memory Info: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=


* [[Linux#Getting_Runtime_Information]]
* [[Linux#Getting_Runtime_Information|Linux Runtime Information]]
* [[Linux Memory Management]]
* [[Linux Memory Management]]
* https://home.feodorov.com:9443/wiki/Wiki.jsp?page=LinuxProcessInformation
* https://home.feodorov.com:9443/wiki/Wiki.jsp?page=LinuxProcessInformation
=Memory Metrics Definitions=
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[proc-meminfo|proc/meminfo]]
</blockquote>
=Swap Info=
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[proc-swaps|proc/swaps]]
</blockquote>
Also see {{Internal|Linux_Memory_Management#Swap_Info|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:
<pre>
getconf PAGESIZE
</pre>
or:
<pre>
getconf PAGE_SIZE
</pre>
A typical value is 4096.
For more details see [[getconf]].


=free=
=free=
Line 16: Line 48:


Display the amount in MB.
Display the amount in MB.
==-g==
Display the amount in GB.


==-t==
==-t==
Line 21: Line 57:
Display totals (RAM and swap).
Display totals (RAM and swap).


=proc meminfo=
=Other Tools=
 
<pre>
cat /proc/meminfo
</pre>
 
=top=


<pre>
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
top
:[[top]]
</pre>
:[[vmstat]]
:[[getconf]]
</blockquote>

Latest revision as of 05:50, 4 December 2020

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.

-g

Display the amount in GB.

-t

Display totals (RAM and swap).

Other Tools

top
vmstat
getconf