From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935709Ab0KQXJX (ORCPT ); Wed, 17 Nov 2010 18:09:23 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:57427 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935697Ab0KQXJV (ORCPT ); Wed, 17 Nov 2010 18:09:21 -0500 Date: Wed, 17 Nov 2010 15:08:37 -0800 From: Andrew Morton To: Wu Fengguang Cc: Jan Kara , Li Shaohua , Christoph Hellwig , Dave Chinner , "Theodore Ts'o" , Chris Mason , Peter Zijlstra , Mel Gorman , Rik van Riel , KOSAKI Motohiro , linux-mm , , LKML Subject: Re: [PATCH 06/13] writeback: bdi write bandwidth estimation Message-Id: <20101117150837.a18d56c1.akpm@linux-foundation.org> In-Reply-To: <20101117042850.002299964@intel.com> References: <20101117042720.033773013@intel.com> <20101117042850.002299964@intel.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; x86_64-pc-linux-gnu) 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 Wed, 17 Nov 2010 12:27:26 +0800 Wu Fengguang wrote: > + w = min(elapsed / (HZ/100), 128UL); I did try setting HZ=10 many years ago, and the kernel blew up. I do recall hearing of people who set HZ very low, perhaps because their huge machines were seeing performance prolems when the timer tick went off. Probably there's no need to do that any more. But still, we shouldn't hard-wire the (HZ >= 100) assumption if we don't absolutely need to, and I don't think it is absolutely needed here.