Re: HZ=1024 for CPU >= 586?

Christoph Lameter (christoph@lameter.com)
Mon, 18 Jan 1999 03:42:33 -0800 (PST)


On Mon, 18 Jan 1999, Erik Corry wrote:

> In article <19990118083931.D10800@knt.terra.vein.hu> you wrote:
> > On Fri, Jan 15, 1999 at 11:01:09PM -0800, Christoph Lameter wrote:
> >> I recompiled 2.2.0pre7ac4 with HZ=1024 and the responsiveness of the
> >> Mousecursor under X is significantly improved. Lagging keyboard input etc
> >> etc have all been reduced.
>
> Sounds like a bug. It shouldn't make much difference.

It should and does make a difference since timeslices with HZ=100 might be
relatively long.

> >> Could we have the kernel increase the HZ for the modern faster CPUs?
> >> F.e. leave it at 100 HZ for 386 486. Switch to 1024 for 586 and higher.
>
> Note that Linus has said that HZ is 100 to user processes
> now and forever, so anywhere where the user space can see
> what HZ is (some things in /proc, a few ioctls, etc.) it
> should stay at 100. Internally you can use higher values.

For alpha cpus Linux already uses 1024. User processes like top see the
increase in HZ. And top shows wrong values...

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