Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030204AbWJRMma (ORCPT ); Wed, 18 Oct 2006 08:42:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030255AbWJRMma (ORCPT ); Wed, 18 Oct 2006 08:42:30 -0400 Received: from smtp101.mail.mud.yahoo.com ([209.191.85.211]:8871 "HELO smtp101.mail.mud.yahoo.com") by vger.kernel.org with SMTP id S1030204AbWJRMm1 (ORCPT ); Wed, 18 Oct 2006 08:42:27 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=Received:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=fLpX2lJu5gE3g3y0FwdU2FTeOUsDXn7ohyLjoQ322BAp2iDXEPrPIYVuAkeaMOGu8OQ7yaR+4ZGw46k7qW2X3w7EndGLAmU7JIwgb95rWCXo8vzaO1estYV+7sLq9H+5FI4Gz8HLObQorNl5ffhG+2pNNoLy+cjFALsZ5xPUPwg= ; Message-ID: <45362130.6020804@yahoo.com.au> Date: Wed, 18 Oct 2006 22:42:24 +1000 From: Nick Piggin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1 X-Accept-Language: en MIME-Version: 1.0 To: Martin Bligh CC: Andrew Morton , LKML , Linux Memory Management , Nick Piggin Subject: Re: [RFC] Remove temp_priority References: <45351423.70804@google.com> <4535160E.2010908@yahoo.com.au> <45351877.9030107@google.com> In-Reply-To: <45351877.9030107@google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2362 Lines: 52 Martin Bligh wrote: > Nick Piggin wrote: >> For that matter (going off the topic a bit), I wonder if >> try_to_free_pages should have a watermark check there too? This >> might help reduce the latency issue you brought up where one process >> has reclaimed a lot of pages, but another isn't making any progress >> and has to go through the full priority range? Maybe that's >> statistically pretty unlikely? > > > I've been mulling over how to kill prev_priority (and make everyone > happy, including akpm). My original thought was to keep a different > min_priority for each of GFP_IO, GFP_IO|GFP_FS, and the no IO ones. > But we still have the problem of how to accurately set the min back > up when we are sucessful. > > Perhaps we should be a little more radical, and treat everyone apart > from kswapd as independant. Keep a kswapd_priority in the zone > structure, and all the direct reclaimers have their own local priority. > Then we set distress from min(kswap_priority, priority). All that does > is kick the direct reclaimers up a bit faster - kswapd has the easiest > time reclaiming pages, so that should never be too low. I think that could *work*, but I still think it is a heuristics change rather than a bug fix. Do we want everyone to make some progress, even if that means having some do some swapping and others not; or have the zone pressure (and tendancy to swap) depend on how well progress is going, globally? The latter is what we have now, and I don't think it is terrible (not saying your idea can't work better, but it would need careful consideration). Coming from another angle, I am thinking about doing away with direct reclaim completely. That means we don't need any GFP_IO or GFP_FS, and solves the problem of large numbers of processes stuck in reclaim and skewing aging and depleting the memory reserve. But that's tricky because we don't have enough kswapds to get maximum reclaim throughput on many configurations (only single core opterons and UP systems, really). -- SUSE Labs, Novell Inc. Send instant messages to your online friends http://au.messenger.yahoo.com - 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/