Re: [patch 1/19] writeback tunables

Russell King (rmk@arm.linux.org.uk)
Mon, 17 Jun 2002 11:49:57 +0100


On Mon, Jun 17, 2002 at 12:33:18PM +0200, Martin Dalecki wrote:
>
> > + * The interval between `kupdate'-style writebacks.
> > + */
> > +int dirty_writeback_centisecs = 5 * 100;
> > +
> > +/*
> > + * The largest amount of time for which data is allowed to remain dirty
> > + */
> > +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.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/