Re: [PATCH 16/35] writeback: increase min pause time on concurrent dirtiers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2010-12-14 at 13:42 -0500, Valdis.Kletnieks@xxxxxx wrote:
> 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?

10*HZ = 10 seconds
(10*HZ) / 1024 ~= 10 milliseconds
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux