From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751143AbYB0AsP (ORCPT ); Tue, 26 Feb 2008 19:48:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754534AbYB0AsA (ORCPT ); Tue, 26 Feb 2008 19:48:00 -0500 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:36981 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751819AbYB0Ar7 (ORCPT ); Tue, 26 Feb 2008 19:47:59 -0500 Date: Wed, 27 Feb 2008 09:50:05 +0900 From: KAMEZAWA Hiroyuki To: Peter Zijlstra Cc: KOSAKI Motohiro , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Balbir Singh , Rik van Riel , Lee Schermerhorn , Nick Piggin Subject: Re: [RFC][PATCH] page reclaim throttle take2 Message-Id: <20080227095005.4058e109.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <1204060718.6242.333.camel@lappy> References: <20080226104647.FF26.KOSAKI.MOTOHIRO@jp.fujitsu.com> <1204060718.6242.333.camel@lappy> Organization: Fujitsu X-Mailer: Sylpheed 2.4.2 (GTK+ 2.10.11; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Feb 2008 22:18:38 +0100 Peter Zijlstra wrote: > > +out: > > + atomic_dec(&zone->nr_reclaimers); > > + wake_up_all(&zone->reclaim_throttle_waitq); > > + > > + return ret; > > +} > > Would it be possible - and worthwhile - to make this FIFO fair? > I think it doesn't make sense for fairness. IMHO, this functionality is an unfair one in nature. While someone is reclaiming pages, other processes can get a newly reclaimed page without calling try_to_free_page. For high-priority processes, 1. avoiding diving into try_to_free_pages if it's congested. 2. just waiting for that someone relcaim pages and grab it ASAP maybe good for quick work. Thanks, -Kame