On Thu, Aug 25, 2011 at 1:35 PM, Li Pi <[email protected]> wrote:

> You could just use a test size that always fits within the hbase cache.
> On Aug 25, 2011 12:50 AM, "Gui Zhang" <[email protected]> wrote:
> > 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
>

For a system with 16GB RAM you can set your -Xms and Xmx to a very high
number like 14 of 15GB. Or run some other process that hogs all your system
memory, like write a C+program that allocates huge a really large linked
list and then sleeps. You really do not want to take away ALL of your VFS
file cache it gets very painful when your inode table is not cached or the
libraries that bash uses are not cached.

Reply via email to