[lkml]   [2001]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: increasing HZ in Linux kernel
"Antonios G. Danalis" wrote:
> Hello,
> I want to increase the frequency of the clock interrupt up
> to ~10000 to run some experiments.
> In the kernel I'm using (2.4.2-2) I've noticed that
> if you increase HZ above 1536 you get a conflict with
> .../include/linux/timex.h:75-77
> and if you add some lines there, you get a problem with
> .../include/net/tcp.h:377
> when HZ is above 4096.
> Is there an easy way to increase clock interrupt freq, or
> do I have to mess with the whole kernel ?
The approach we are taking in the high-res-timers project
( is to leave HZ alone
and schedule timer interrupts as needed between the 1/HZ ticks. I have
an kernel with most of the infrastructure ready to put on the
sourceforge site (today I hope), that you may want to look at. Be
aware, however, it is not really a simple change. You may also want to
look at the UTIME patch from the University of Kansas, which, to some
extent, is where I started. We both leave HZ alone and schedule timer
ticks as needed to get high resolution.

As you have noted, changing HZ impacts other sub systems. There is also
an issue of jiffie rollover which affects the longest time you can set
timers for. Currently with HZ =100 and 32-bit integers, this is about
248.55 days. If you move HZ to 1000, this moves to 24.855 days, and the
10,000 you want moves it to 2.4855 days which will give problems with at
least the cron sub system and probably a lot of others.

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

 \ /
  Last update: 2005-03-22 13:17    [W:0.052 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site