Re: [PATCH] x86: Reduce the default HZ value

From: Alok Kataria
Date: Tue May 05 2009 - 18:10:10 EST



On Tue, 2009-05-05 at 14:44 -0700, Alan Cox wrote:
> > What is the benefit of this?
>
> I believe the "benefit" is that a certain posters proprietary
> virtualisation product works better.

Hi Alan,

I posted numbers that I had, and I don't think that the problem is
limited just to virtualization or our platform.

> > I can see at least one immediate downside: some timeout values in the
> > kernel are still maintained in units of HZ (like poll, I believe), and
> > so with a lower HZ value we'll have higher roundoff errors.
>
> And HZ=100 actually causes real problems for some video work (not in
> Europe where its just peachy). We switched to 1000Hz a very long time ago
> because it improved desktop feel and responsiveness. We switched to
> tickless to keep that behaviour with good power and idle behaviour.

IMO, one of the main motives of HRT implementation apart from getting
higher precision timers was that we now don't necessarily need to rely
on a high timer frequency. If you see problems with Desktop feel and
responsiveness don't you think there would be other problem which might
be causing that ? Your argument about the "desktop feel and
responsiveness" doesn't explain what actual problem did you see.
Also there are lots of distribution kernels which ship with a lower HZ
value anyway, so I don't see why is HZ=1000 such a big requirement for
your desktop use case.

Alok

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