最近在玩cloudatcost賣的便宜vps主機,發現明明我什麼程式都沒開,結果記憶體卻用到了73%,如下圖:
查了一下,發現下面這篇文章寫的蠻好的:
http://blogger.gtwang.org/2013/07/linux-cache-memory-linux.html
原來linux會把沒用到memory拿來當做memdisk來用阿……第一次知道有這種事。
另外發現自己不太懂buffer跟cache的差別,稍微查了一下:
http://stackoverflow.com/questions/6345020/linux-memory-buffer-vs-cache
簡單來說:
A buffer is something that has yet to be “written” to disk.
A cache is something that has been “read” from the disk and stored for later use.
Anonymous
朝聖推
dorgon
這位訪客看留言的ip好眼熟…應該是…坐我對面的?