Linux cat /proc/meminfo 輸出分析


$cat /proc/meminfo
MemTotal:          2052440 kB //總內存
MemFree:            50004 kB //空閑內存
Buffers:             19976 kB //給文件的緩沖大小
Cached:               436412 kB //高速緩沖存儲器(http://baike.baidu.com/view/496990.htm)使用的大小
SwapCached:        19864 kB //被高速緩沖存儲用的交換空間大小
Active:              1144512 kB //活躍使用中的高速緩沖存儲器頁面文件大小
Inactive:            732788 kB //不經常使用的高速緩沖存儲器頁面文件大小
Active(anon):          987640 kB //anon:不久
Inactive(anon):       572512 kB
Active(file):     156872 kB
Inactive(file):   160276 kB
Unevictable:           8 kB
Mlocked:               8 kB
HighTotal:       1177160 kB //The total and free amount of memory, in kilobytes, that is not directly mapped into kernel space.
HighFree:           7396 kB // The HighTotal value can vary based on the type of kernel used.
LowTotal:         875280 kB // The total and free amount of memory, in kilobytes, that is directly mapped into kernel space.  used.
LowFree:           42608 kB //The LowTotal value can vary based on the type of kernel
SwapTotal:        489940 kB //交換空間總大小
SwapFree:         450328 kB //空閑交換空間
Dirty:               104 kB //等待被寫回到磁盤的大小
Writeback:             0 kB //正在被寫回的大小
AnonPages:       1408256 kB //未映射的頁的大小
Mapped:           131964 kB //設備和文件映射的大小
Slab:              37368 kB //內核數據結構緩存的大小,可減少申請和釋放內存帶來的消耗
SReclaimable:      14164 kB //可收回slab的大小
SUnreclaim:        23204 kB //不可收回的slab的大小23204+14164=37368
PageTables:        13308 kB //管理內存分頁的索引表的大小
NFS_Unstable:          0 kB //不穩定頁表的大小
Bounce:                0 kB //bounce:退回
WritebackTmp:          0 kB //
CommitLimit:     1516160 kB
Committed_AS:    2511900 kB
VmallocTotal:     122880 kB //虛擬內存大小
VmallocUsed:       28688 kB //已經被使用的虛擬內存大小
VmallocChunk:      92204 kB
HugePages_Total:       0 //大頁面的分配
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       10232 kB
DirectMap2M:      899072 kB

========================================================================================
相應選項中文意思想各位高手已經知道,如何翻譯有什么錯誤,請務必指出:
    MemTotal: 所有可用RAM大小 (即物理內存減去一些預留位和內核的二進制代碼大小)
     MemFree: LowFree與HighFree的總和,被系統留着未使用的內存
     Buffers: 用來給文件做緩沖大小
      Cached: 被高速緩沖存儲器(cache memory)用的內存的大小(等於 diskcache minus SwapCache ).
  SwapCached:被高速緩沖存儲器(cache memory)用的交換空間的大小
             已經被交換出來的內存,但仍然被存放在swapfile中。用來在需要的時候很快的被替換而不需要再次打開I/O端口。
      Active: 在活躍使用中的緩沖或高速緩沖存儲器頁面文件的大小,除非非常必要否則不會被移作他用.
    Inactive: 在不經常使用中的緩沖或高速緩沖存儲器頁面文件的大小,可能被用於其他途徑.
   HighTotal:
    HighFree: 該區域不是直接映射到內核空間。內核必須使用不同的手法使用該段內存。
    LowTotal:
     LowFree: 低位可以達到高位內存一樣的作用,而且它還能夠被內核用來記錄一些自己的數據結構。Among many
              other things, it is where everything from the Slab is
              allocated.  Bad things happen when you're out of lowmem.
         
   SwapTotal: 交換空間的總大小
    SwapFree: 未被使用交換空間的大小
    Dirty: 等待被寫回到磁盤的內存大小。
     
   Writeback: 正在被寫回到磁盤的內存大小。
  
   AnonPages:未映射頁的內存大小
  
   Mapped: 設備和文件等映射的大小。
  
   Slab: 內核數據結構緩存的大小,可以減少申請和釋放內存帶來的消耗。
   SReclaimable:可收回Slab的大小
  
   SUnreclaim:不可收回Slab的大小(SUnreclaim+SReclaimable=Slab)
  
   PageTables:管理內存分頁頁面的索引表的大小。
  
   NFS_Unstable:不穩定頁表的大小
  
   Bounce:
 CommitLimit: Based on the overcommit ratio ('vm.overcommit_ratio'),
              this is the total amount of  memory currently available to
              be allocated on the system. This limit is only adhered to
              if strict overcommit accounting is enabled (mode 2 in
              'vm.overcommit_memory').
              The CommitLimit is calculated with the following formula:
              CommitLimit = ('vm.overcommit_ratio' * Physical RAM) + Swap
              For example, on a system with 1G of physical RAM and 7G
              of swap with a `vm.overcommit_ratio` of 30 it would
              yield a CommitLimit of 7.3G.
              For more details, see the memory overcommit documentation
              in vm/overcommit-accounting.
             
Committed_AS: The amount of memory presently allocated on the system.
              The committed memory is a sum of all of the memory which
              has been allocated by processes, even if it has not been
              "used" by them as of yet. A process which malloc()'s 1G
              of memory, but only touches 300M of it will only show up
              as using 300M of memory even if it has the address space
              allocated for the entire 1G. This 1G is memory which has
              been "committed" to by the VM and can be used at any time
              by the allocating application. With strict overcommit
              enabled on the system (mode 2 in 'vm.overcommit_memory'),
              allocations which would exceed the CommitLimit (detailed
              above) will not be permitted. This is useful if one needs
              to guarantee that processes will not fail due to lack of
              memory once that memory has been successfully allocated.
VmallocTotal: 可以vmalloc虛擬內存大小
VmallocUsed: 已經被使用的虛擬內存大小。
VmallocChunk: largest contigious block of vmalloc area which is free


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM