Re: changing HZ value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 19, 2001 at 07:09:44PM +0200, Bohdan Vlasyuk wrote:

> Hello.
> 
> I recall there were articles (HOWTOs or what?) about changing HZ value
> in kernel. Could anyone point me to anything regarding it, or at least
> describe it in some detail.

Used to be difficult, now, I think HZ are fully standardized around the kernel,
you might find some broken drivers though.. *sigh*

> P.s.: I'd like change HZ value to be able to measure process execution
> time with, say, 0.001s precision. Could this be done is any other way?

gettimeofday() has micro-second precision on 586+'s (uses rdtsc) Maybe you could
do something with that.

> P.p.s.: This should matter, I plan to use my modified kernel on
> Celeron300+ class CPU, which would carry no other critical duties,
> yet, will serve as low-loaded internet server.

Should work fine, tbh I don't know why if you don't specify that you have over a
pentium processor, it sets HZ to something lower, the processor can handle it...

-- 

Mark Zealey (aka JALH on irc.openprojects.net: #zealos and many more)
mark@zealos.org
mark@itsolve.co.uk

UL++++>$ G!>(GCM/GCS/GS/GM) dpu? s:-@ a16! C++++>$ P++++>+++++$ L+++>+++++$
!E---? W+++>$ N- !o? !w--- O? !M? !V? !PS !PE--@ PGP+? r++ !t---?@ !X---?
!R- b+ !tv b+ DI+ D+? G+++ e>+++++ !h++* r!-- y--

(www.geekcode.com)
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux