[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 05 May 2008 22:10:40 +0200
From: Andi Kleen <andi@...stfloor.org>
To: "Kevin Burton" <burton@...lrank.com>
Cc: "FD Cami" <francois.cami@...e.fr>, linux-kernel@...r.kernel.org
Subject: Re: Ability to limit or disable page caching?
"Kevin Burton" <burton@...lrank.com> writes:
>
> What I want to do is either disable the page cache entirely or just
> tell the OS to cache at max 10% of the available memory.
FYI page cache includes the memory your program uses. No page
cache would mean no user space, 10% would mean user space uses only
10%. One way that would fulfil your request literally is to boot with
mem=<10% of your ram>, but I guess you don't really want that.
If you don't want your application to be swapped at all you
should probably investigate mlock(2)/mlockall(2)
-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists