free: support for MemAvailable
This commit adds a new switch -a/--available that appends a new column called 'available' to the output. The column displays an estimation of how much memory is available for starting new applications, without swapping. Unlike the data provided by the 'cached' or 'free' fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use.
This commit is contained in:
@@ -34,6 +34,7 @@ extern unsigned long kb_high_free;
|
||||
extern unsigned long kb_high_total;
|
||||
extern unsigned long kb_low_free;
|
||||
extern unsigned long kb_low_total;
|
||||
extern unsigned long kb_main_available;
|
||||
/* 2.4.xx era */
|
||||
extern unsigned long kb_active;
|
||||
extern unsigned long kb_inact_laundry; // grrr...
|
||||
|
||||
Reference in New Issue
Block a user