show_val_kb(m, "MemTotal: ", i.totalram); show_val_kb(m, "MemFree: ", i.freeram); show_val_kb(m, "MemAvailable: ", available); show_val_kb(m, "Buffers: ", i.bufferram); show_val_kb(m, "Cached: ", cached); show_val_kb(m, "SwapCached: ", total_swapcache_pages())...
show_val_kb(m,"MemFree: ", i.freeram); show_val_kb(m,"MemAvailable: ", available); show_val_kb(m,"Buffers: ", i.bufferram); show_val_kb(m,"Cached: ", cached); show_val_kb(m,"SwapCached: ", total_swapcache_pages); show_val_kb(m,"Active: ", pages[LRU_ACTIVE_ANON] +...
-t display total for RAM swap -s update every [delay] seconds -c update [count] times -a show available memory if exported bykernel(>80 characters per line) -V display version information and exit 常用参数演示 [root@ ~]# free -b #以Byte为单位显示 total used free shared buffers cached...
-t display total for RAM + swap -s update every [delay] seconds -c update [count] times -a show available memory if exported by kernel (>80 characters per line) -V display version information and exit 常用参数演示 [root@ ~]# free -b #以Byte为单位显示 total used free shared buffers ...
show_val_kb(m, "MemTotal: ", i.totalram); show_val_kb(m, "MemFree: ", i.freeram); show_val_kb(m, "MemAvailable: ", available); show_val_kb(m, "Buffers: ", i.bufferram); show_val_kb(m, "Cached: ", cached); show_val_kb(m, "SwapCached: ", total_swapcache_pages())...
show_val_kb(m, "MemFree: ", i.freeram); show_val_kb(m, "MemAvailable: ", available); show_val_kb(m, "Buffers: ", i.bufferram); show_val_kb(m, "Cached: ", cached); show_val_kb(m, "SwapCached: ", total_swapcache_pages()); ...
show_val_kb(m, "MemFree: ", i.freeram); show_val_kb(m, "MemAvailable: ", available); show_val_kb(m, "Buffers: ", i.bufferram); show_val_kb(m, "Cached: ", cached); show_val_kb(m, "SwapCached: ", total_swapcache_pages()); ...
cached存储在 RAM 中最近使用的文件 buff/cacheBuffers + Cache available可用于启动新应用程序,无需交换...
@@ -26,7 +26,11 @@ static int meminfo_proc_show(struct seq_file *m, void *v) unsigned long committed; struct vmalloc_info vmi; long cached; +long available; +unsigned long pagecache; +unsigned long wmark_low = 0; unsigned long pages[NR_LRU_LISTS]; ...
MemTotal: Total usable ram (i.e. physical ram minus a few reserved bits and the kernel binary code) MemFree: The sum of LowFree+HighFree MemAvailable: An estimate of how much memory is available for starting new applications, without swapping. Calculated from MemFree, ...