* Limiting memory allocated by buffer cache in 2.4 kernel
@ 2004-12-15 14:45 N.C.Krishna Murthy (krmurthy)
2004-12-15 17:56 ` Jesse Barnes
0 siblings, 1 reply; 3+ messages in thread
From: N.C.Krishna Murthy (krmurthy) @ 2004-12-15 14:45 UTC (permalink / raw)
To: linux-kernel
Hi,
I am using linux 2.4.22 kernel. Is there any way to limit the amount
of memory allocated by buffer cache? Eariler versions used to have
/proc/sys/vm/buffermem.
Thanx
NCKM
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Limiting memory allocated by buffer cache in 2.4 kernel
2004-12-15 14:45 Limiting memory allocated by buffer cache in 2.4 kernel N.C.Krishna Murthy (krmurthy)
@ 2004-12-15 17:56 ` Jesse Barnes
2004-12-16 9:14 ` Marcelo Tosatti
0 siblings, 1 reply; 3+ messages in thread
From: Jesse Barnes @ 2004-12-15 17:56 UTC (permalink / raw)
To: krmurthy; +Cc: linux-kernel
On Wednesday, December 15, 2004 6:45 am, N.C.Krishna Murthy (krmurthy) wrote:
> Hi,
> I am using linux 2.4.22 kernel. Is there any way to limit the amount
> of memory allocated by buffer cache? Eariler versions used to have
> /proc/sys/vm/buffermem.
For that matter, is there a way to do this in 2.6? We've seen problems caused
by huge page caches pushing data allocations off-node, so it would be really
nice to have a limit control...
Jesse
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Limiting memory allocated by buffer cache in 2.4 kernel
2004-12-15 17:56 ` Jesse Barnes
@ 2004-12-16 9:14 ` Marcelo Tosatti
0 siblings, 0 replies; 3+ messages in thread
From: Marcelo Tosatti @ 2004-12-16 9:14 UTC (permalink / raw)
To: Jesse Barnes; +Cc: krmurthy, linux-kernel, akpm
On Wed, Dec 15, 2004 at 09:56:23AM -0800, Jesse Barnes wrote:
> On Wednesday, December 15, 2004 6:45 am, N.C.Krishna Murthy (krmurthy) wrote:
> > Hi,
> > I am using linux 2.4.22 kernel. Is there any way to limit the amount
> > of memory allocated by buffer cache? Eariler versions used to have
> > /proc/sys/vm/buffermem.
Nope, there is no such feature.
It may have worked in v2.2 (not sure about that though, have you checked?) but
it surely doesnt in v2.4.
> For that matter, is there a way to do this in 2.6? We've seen problems caused
> by huge page caches pushing data allocations off-node, so it would be really
> nice to have a limit control...
v2.6 doesnt have such feature either.
Shouldnt be too hard to add hooks at page_cache_alloc()/page_cache_alloc_cold()
level for dropping clean unmapped pages off the tail of the LRU once a given
limit is reached. Andrew ?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-12-16 12:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-15 14:45 Limiting memory allocated by buffer cache in 2.4 kernel N.C.Krishna Murthy (krmurthy)
2004-12-15 17:56 ` Jesse Barnes
2004-12-16 9:14 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).