From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <488D7EF9.2020500@goop.org> Date: Mon, 28 Jul 2008 01:10:33 -0700 From: Jeremy Fitzhardinge MIME-Version: 1.0 Subject: Re: How to get a sense of VM pressure References: <488A1398.7020004@goop.org> <200807261425.26318.nickpiggin@yahoo.com.au> In-Reply-To: <200807261425.26318.nickpiggin@yahoo.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Nick Piggin Cc: Linux Kernel Mailing List , Rik van Riel , Andrew Morton , Virtualization Mailing List , Linux Memory Management List List-ID: 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org