From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757179Ab0LNSoN (ORCPT ); Tue, 14 Dec 2010 13:44:13 -0500 Received: from lennier.cc.vt.edu ([198.82.162.213]:35980 "EHLO lennier.cc.vt.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751113Ab0LNSoK (ORCPT ); Tue, 14 Dec 2010 13:44:10 -0500 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3-dev To: Wu Fengguang Cc: Andrew Morton , Jan Kara , Dave Chinner , Christoph Hellwig , Trond Myklebust , "Theodore Ts'o" , Chris Mason , Peter Zijlstra , Mel Gorman , Rik van Riel , KOSAKI Motohiro , Greg Thelen , Minchan Kim , linux-mm , "linux-fsdevel@vger.kernel.org" , LKML Subject: Re: [PATCH 16/35] writeback: increase min pause time on concurrent dirtiers In-Reply-To: Your message of "Tue, 14 Dec 2010 14:51:33 +0800." <20101214065133.GA6940@localhost> From: Valdis.Kletnieks@vt.edu References: <20101213144646.341970461@intel.com> <20101213150328.284979629@intel.com> <15881.1292264611@localhost> <20101214065133.GA6940@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1292352152_5019P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 14 Dec 2010 13:42:32 -0500 Message-ID: <14658.1292352152@localhost> X-Mirapoint-Received-SPF: 128.173.14.107 localhost Valdis.Kletnieks@vt.edu 2 pass X-Mirapoint-IP-Reputation: reputation=neutral-1, source=Fixed, refid=n/a, actions=MAILHURDLE SPF TAG X-Junkmail-Status: score=10/50, host=vivi.cc.vt.edu X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A020204.4D07BA9B.0028,ss=1,fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=single engine X-Junkmail-IWF: false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --==_Exmh_1292352152_5019P Content-Type: text/plain; charset=us-ascii On Tue, 14 Dec 2010 14:51:33 +0800, Wu Fengguang said: > > > + /* (N * 10ms) on 2^N concurrent tasks */ > > > + t = (hi - lo) * (10 * HZ) / 1024; > > > > Either I need more caffeine, or the comment doesn't match the code > > if HZ != 1000? > > The "ms" in the comment may be confusing, but the pause time (t) is > measured in jiffies :) Hope the below patch helps. No, I meant that 10 * HZ evaluates to different numbers depending what the CONFIG_HZ parameter is set to - 100, 250, 1000, or some other custom value. Does this code behave correctly on a CONFIG_HZ=100 kernel? --==_Exmh_1292352152_5019P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFNB7qYcC3lWbTT17ARAvTMAKC/ht0Fks0Or0Vt5OCz0fm3BUJrpQCeM8zE 81BeEo8scun4qECHwhkfUDE= =q+q1 -----END PGP SIGNATURE----- --==_Exmh_1292352152_5019P--