Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 3 Sep 2002 23:16:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 3 Sep 2002 23:16:55 -0400 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:28943 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id ; Tue, 3 Sep 2002 23:16:55 -0400 Message-ID: <3D757F11.B72BB708@zip.com.au> Date: Tue, 03 Sep 2002 20:33:37 -0700 From: Andrew Morton X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.5.33 i686) X-Accept-Language: en MIME-Version: 1.0 To: Ed Tomlinson CC: William Lee Irwin III , lkml , "linux-mm@kvack.org" Subject: Re: 2.5.33-mm1 References: <200209032251.54795.tomlins@cam.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1519 Lines: 37 Ed Tomlinson wrote: > > On September 3, 2002 09:13 pm, Andrew Morton wrote: > > > ext3_inode_cache 959 2430 448 264 270 1 > > > > That's 264 pages in use, 270 total. If there's a persistent gap between > > these then there is a problem - could well be that slablru is not locating > > the pages which were liberated by the pruning sufficiently quickly. > > Sufficiently quickly is a relative thing. Those pages are useless! It's silly having slab hanging onto them while we go and reclaim useful pagecache instead. I *really* think we need to throw away those pages instantly. The only possible reason for hanging onto them is because they're cache-warm. And we need a global-scope cpu-local hot pages queue anyway. And once we have that, slab _must_ release its warm pages into it. It's counterproductive for slab to hang onto warm pages when, say, a pagefault needs one. > It could also be that by the time the > pages are reclaimed another have been cleaned. IMO its no worst than > have freeable pages on lru from any other source. If we get close to oom > we will call kmem_cache_reap, otherwise we let the lru find the pages. As I say, by not releasing those (useless to slab) pages, we're causing other (useful) stuff to be reclaimed. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/