From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756228AbYB0Jp2 (ORCPT ); Wed, 27 Feb 2008 04:45:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752035AbYB0JpT (ORCPT ); Wed, 27 Feb 2008 04:45:19 -0500 Received: from pentafluge.infradead.org ([213.146.154.40]:40254 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751429AbYB0JpR (ORCPT ); Wed, 27 Feb 2008 04:45:17 -0500 Subject: Re: [RFC][PATCH] page reclaim throttle take2 From: Peter Zijlstra To: balbir@linux.vnet.ibm.com Cc: David Rientjes , KOSAKI Motohiro , KAMEZAWA Hiroyuki , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Rik van Riel , Lee Schermerhorn , Nick Piggin In-Reply-To: <47C526F8.8010807@linux.vnet.ibm.com> References: <47C4EF2D.90508@linux.vnet.ibm.com> <20080227143301.4252.KOSAKI.MOTOHIRO@jp.fujitsu.com> <47C4F9C0.5010607@linux.vnet.ibm.com> <47C51856.7060408@linux.vnet.ibm.com> <47C526F8.8010807@linux.vnet.ibm.com> Content-Type: text/plain Date: Wed, 27 Feb 2008 10:44:58 +0100 Message-Id: <1204105498.6242.374.camel@lappy> Mime-Version: 1.0 X-Mailer: Evolution 2.21.90 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2008-02-27 at 14:31 +0530, Balbir Singh wrote: > You mentioned CONFIG_NUM_RECLAIM_THREADS_PER_CPU and not > CONFIG_NUM_RECLAIM_THREADS_PER_NODE. The advantage with syscalls is that even if > we get the thing wrong, the system administrator has an alternative. Please look > through the existing sysctl's and you'll see what I mean. What is wrong with > providing the flexibility that comes with sysctl? We cannot possibly think of > all situations and come up with the right answer for a heuristic. Why not come > up with a default and let everyone use what works for them? I agree with Balbir, just turn it into a sysctl, its easy enough to do, and those who need it will thank you for it instead of curse you for hard coding it.