lkml.org 
[lkml]   [2008]   [Jul]   [28]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 28 Jul 2008 01:10:33 -0700
FromJeremy Fitzhardinge <>
SubjectRe: How to get a sense of VM pressure
Nick Piggin wrote:
> A good start would be to register a "shrinker" (look at dcache or inode
> cache for examples). Start off by allocating pages, and slow down or
> stop or even release some of the pages back as you start getting feedback
> back through your shrinker callback.
>
> Not perfect, but it should prevent livelocks.
> 

Thanks, that's a good starting place.

    J


\
 
 \ /
  Last update: 2008-07-28 10:13    [from the cache]
©2003-2008