Hi Gui,

you cannot disable the filesystem cache. Linux always reads through the 
page/buffer cache.


If this is for testing non-cached performance, you can empty cache by writing 
to /proc/sys.vm/drop_caches...


To free pagecache (as root):

echo 1 > /proc/sys/vm/drop_caches

To free dentries and inodes:

echo 2 > /proc/sys/vm/drop_caches

To free pagecache, dentries and inodes:

echo 3 > /proc/sys/vm/drop_caches

-- Lars



________________________________
From: Gui Zhang <[email protected]>
To: [email protected]
Sent: Thursday, August 25, 2011 12:49 AM
Subject: How can i disable filesystem cache

I want test hbase cache perfermance, as i know linux alway try to cache the
file, so i would like to disable filesystem cache.
my hbase is build on top of hadoop, OS is redhat linux。

So here i actually need disable fs cache for hadoop files.
Is this possible and how?

Thanks
Gui

Reply via email to