public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Russell King <rmk@arm.linux.org.uk>
Cc: Martin Dalecki <dalecki@evision-ventures.com>,
	Linus Torvalds <torvalds@transmeta.com>,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: [patch 1/19] writeback tunables
Date: Mon, 17 Jun 2002 14:21:33 -0700	[thread overview]
Message-ID: <3D0E52DD.4CE57058@zip.com.au> (raw)
In-Reply-To: 20020617114957.A4130@flint.arm.linux.org.uk

Russell King wrote:
> 
> On Mon, Jun 17, 2002 at 12:33:18PM +0200, Martin Dalecki wrote:
> ...
> > > +int dirty_expire_centisecs = 30 * 100;
> > > +
> >
> > Blind guess - didn't the 100 wan't to be HZ?!
> 
> The units are centiseconds (as the name suggests). 5 * 100 centiseconds = 5
> seconds, so the dirty writeback timeout is 5 seconds.  Check the code a
> little further and you'll see HZ gets factored into them on use.
> 

Yup.  Sorry about the "_centisecs" thing.  That's a bit anal, but
I tend to think that it's best to be really explicit about the
units, make it a bit easier to use.  I don't know how many times
I've had to peer in fs/buffer.c to remember what those dang numbers do.

Possibly, "seconds" may be sufficiently high resolution for
these things.  But I wasn't sure - maybe someone wants to
run the kupdate function five times per second?  Dunno.

There are some departures from 2.4 tradition which are worth
mentioning here:

- There is no range checking on the settings.  (But a divide-by
  zero isn't possible, so I think that's OK)

- Unlike the 2.4 bdflush settings, these parameters are not
  updated in a single hit.  So if you modify them by a large
  amount while the system is under heavy writeback load, perhaps
  some whacky things will happen if you create an irrational
  intermediate state.  But that's quite unlikely.

- Unlike 2.4, the settings are scaled by HZ.  So that bdflush
  tuning tool whose name I forget will no longer make kupdate
  run ten times too fast on Alphas.

-

  reply	other threads:[~2002-06-17 21:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-17  6:51 [patch 1/19] writeback tunables Andrew Morton
2002-06-17 10:33 ` Martin Dalecki
2002-06-17 10:49   ` Russell King
2002-06-17 21:21     ` Andrew Morton [this message]
2002-06-18 14:30       ` Oliver Xymoron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D0E52DD.4CE57058@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=dalecki@evision-ventures.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox