buffer vs. cache

In order to make clear about the difference between “buffers and cached” from the ‘top’ result, here are the operations and observations, the server is of about 50G memory.


1.    cat /dev/vg00/lvol8 >/dev/null
buffers increased about 10G, while cached doesn’t change.
 
2.    cat /dev/vg00/lvol8 >/dev/null (again)
buffers and cached doesn’t change
 
3.    dd if=/dev/zero of=test.data bs=10M count=1000
cached increased about 10G, while buffers doesn’t change.
 
4.    cp test.data test.1
cached increased another 10G, while buffers doesn’t change.
 
5.    rm test.1
cached decreased about 10G and free memory increased 10G.
 
6.    cat bigfile.txt >/dev/null
cached increased about 1G (size of bigfile).

 

参考:

http://www.lupaworld.com/home-space-do-blog-uid-56821-id-149454.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值