Linux Memory Info: Difference between revisions
Jump to navigation
Jump to search
Line 39: | Line 39: | ||
Display totals (RAM and swap). | Display totals (RAM and swap). | ||
= | =Memory Metrics Definitions= | ||
<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]] | ||
:[[proc-swaps|proc/swaps]] | :[[proc-swaps|proc/swaps]] | ||
</blockquote> | |||
=Other Tools= | |||
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;"> | |||
:[[top]] | :[[top]] | ||
:[[vmstat]] | :[[vmstat]] | ||
:[[getconf]] | :[[getconf]] | ||
</blockquote> | </blockquote> |
Revision as of 02:39, 4 August 2016
Internal
- Linux Runtime Information
- Linux Memory Management
- https://home.feodorov.com:9443/wiki/Wiki.jsp?page=LinuxProcessInformation
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).