清磁盘缓存的方法(WinNT & Linux) | 银河星尘

其实Galaxy几年前就在用了,后来Linux机毕业移交root,Win机运回老家,就一直荒废掉了。

简单的说,都是sync,Linux下是自带,Win下要去微软下那个Sysinternals工具。
(当然,你得有root权限才行。

用途?
你要有米配UPS,那不用也罢。
记得有阵子驱动不好某板卡老无规律死机来着。

Linux下:
http://www.linuxinsight.com/proc_sys_vm_drop_caches.html

drop_caches
Submitted by admin on Wed, 2006-05-31 16:12

Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free.

To free pagecache:

To free dentries and inodes:

To free pagecache, dentries and inodes:

As this is a non-destructive operation, and dirty objects are not freeable, the user should run “sync” first in order to make sure all cached objects are freed.

This tunable was added in 2.6.16.

Win下(限NT内核):
SysinternalsSuite 中的sync.exe

Tags: , , ,

Related posts

分类: 标签: , , , 29 views
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

郑重声明:资讯 【清磁盘缓存的方法(WinNT & Linux) | 银河星尘】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【在线投诉】,我们审核后将会尽快处理。
—— 相关资讯 ——