想知道記憶體的資訊, 所以看了一下/proc/meminfo, 但是不太了解裡面每行的意義, 這邊解釋一下
man proc --> 搜尋meminfo
/proc/meminfo
This is used by free(1) to report the amount of free and used
memory (both physical and swap) on the system as well as the
shared memory and buffers used by the kernel.
It is in the same format as free(1).
man free --> 沒有相關資料, 繼續往回找
dpkg -S /usr/bin/free
procps: /usr/bin/free
dpkg -L procps --> 也沒有可用資訊
Google
http://wiki.debian.org.hk/w/Filesystem:/proc/meminfo
* MemTotal: 可以記憶體大小 (即是實體記憶體大小減去一些保留的位元及作業系統核心)
* MemFree: LowFree + HighFree
* MemShared: 理論上是分享記憶體 (Shared Memory) 的太小,但因為效率原因,永遠都是 0 。
* Buffers: 緩衝區快取 (Buffer Cache, 原始磁碟區塊在記憶體上的暫時寄存位) 記憶體大小,應該不會大過 20MB 。
* Cached: pagecache (由磁盤讀取檔案用的決取記憶體) 減去 SwapCache
* SwapCache: 曾被換出(swap out),但被換回(swap in)而仍留在 swapfile 的記憶體大小 (當系統要求記憶體時,這些記憶體不用經過被換出的工序,因為其內容早已放在 swapfile 中,可以減少I/O。