Re: #define HZ 1024 -- negative effects?

From: Rik van Riel (
Date: Thu Apr 26 2001 - 13:31:20 EST

On Thu, 26 Apr 2001, Adam J. Richter wrote:

> I have not tried it, but I would think that setting HZ to 1024
> should make a big improvement in responsiveness.
> Currently, the time slice allocated to a standard Linux
> process is 5*HZ, or 50ms when HZ is 100. That means that you
> will notice keystrokes being echoed slowly in X when you have
> just one or two running processes,

Rubbish. Whenever a higher-priority thread than the current
thread becomes runnable the current thread will get preempted,
regardless of whether its timeslices is over or not.

And please, DO try things before proposing a radical change
to the kernel ;)



Linux MM bugzilla:

Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose...

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Apr 30 2001 - 21:00:16 EST