Re: Increasing HZ (patch for HZ > 1000)

Martin J. Bligh
2003-12-11T07:07:25Z

> I think this may be of interest to some people. I've attached a patch
> that makes it possible to increase HZ up to 10000. The patch adds some
> HZ-related defines (e.g. SHIFT_HZ) for higher HZ values. It also removes
> some shift by negative number and divide by zero (e.g. in bogomips
> computation) and prevents some overflows. I'm not sure I fixed
> everything, but right now it seems to work with HZ=10000. The only thing
> I'm seeing are messages such as: "orinoco_lock() called with
> hw_unavailable (dev=f75c8000)" and "eth1: IRQ handler is looping too
> much! Resetting.".

Why would you want to *increase* HZ? I'd say 1000 is already too high
personally, but I'm curious what you'd want to do with it? Embedded
real-time stuff?

M.