hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lars hofhansl <lhofha...@yahoo.com>
Subject Re: How can i disable filesystem cache
Date Thu, 25 Aug 2011 16:05:00 GMT
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 <alexzhang2008@gmail.com>
To: user@hbase.apache.org
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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message