From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4329210E.4070806@aitel.hist.no> Date: Thu, 15 Sep 2005 09:21:50 +0200 From: Helge Hafting MIME-Version: 1.0 Subject: Re: VM balancing issues on 2.6.13: dentry cache not getting shrunk enough References: <20050911105709.GA16369@thunk.org> <20050913084752.GC4474@in.ibm.com> <20050913215932.GA1654338@melbourne.sgi.com> <200509141101.16781.ak@suse.de> <313480000.1126706276@[10.10.2.4]> In-Reply-To: <313480000.1126706276@[10.10.2.4]> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: "Martin J. Bligh" Cc: Andi Kleen , David Chinner , Bharata B Rao , Theodore Ts'o , Dipankar Sarma , linux-mm@kvack.org, linux-kernel@vger.kernel.org, manfred@colorfullife.com List-ID: Martin J. Bligh wrote: > >If they're freeable, we should easily be able to move them, and therefore >compact a fragmented slab. That way we can preserve the LRU'ness of it. >Stage 1: free the oldest entries. Stage 2: compact the slab into whole >pages. Stage 3: free whole pages back to teh page allocator. > > That seems like the perfect solution to me. Freeing up 95% or more gives us clean pages - and moving instead of actually freeing everything avoids the cost of repopulating the cache later. :-) Helge Hafting -- 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