Re: changing HZ on 2.6 kernels - newbie

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

 



On 8/17/05, John Que <qwejohn@xxxxxxxxx> wrote:
> Hello,
> My question is :   I want ot know wether changing HZ on 2.6 kernels is
> possible only
> throgh changing HZ in include/asm/param.h, or it can be
> done in run time by changing something under /proc  ?

No, you cannot just change it in param.h and hope it works. It is far
more complicated than that. If you are using a recent 2.6 (since .12,
I believe), CONFIG_HZ exists, which allows you, at compile-time, to
select between 100, 250 or 1000 as the HZ value. There is currently no
interface, or attempt at an interface to make HZ run-time
configurable. Dynamic-tick allows the kernel to modify the timer rate
internally, you may try that out (not in mainline, find the patch on
LKML). Allowing a user to change HZ at run-time would require some
massive changes to the kernel, IMHO.

Thanks,
Nish

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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