Re: HZ value

Matti Aarnio (matti.aarnio@zmailer.org)
Tue, 6 Nov 2001 17:17:56 +0200


On Tue, Nov 06, 2001 at 04:15:25PM +0200, Yoav Etsion wrote:
> Hi,
>
> Does anyone know why the HZ (asm/param.h) value on the Alpha (1000) is
> different than on any architecture (100)?

It is 1024.

Why should it be anything in particular ?

It being 1024 gives nice properties in certain obscure
internal time functions. 100 or 1000 can not use same
tricks as 1024 when a division is needed...

The 100 is usual UNIX tradition, although other values
were present in earlier times. Alpha on the other
hand has always been a rather fast beast, and there
a faster timer tick is somewhat justified.

That 100 is tough for a 386/20MHz, but 1024 is no problem
for a Pentium-IV/1.5GHz.

> Thanks,
> Yoav Etsion

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