How to change CONFIG_HZ parameter for Linux Kernel

If we want to change the tick time for Linux Kernel, we need to change CONFIG_HZ parameter in Linux Kernel. Do we have other better ways to change it rather than compiling Linux Kernel. Please ignore the way to add 'divider=10' in grub config file because it is limited only for RH/CentOS distros.

asked Sep 18, 2016 by harryxiyou (5,830 points)

Zhiqiang, please answer this question if you know it. I cannot find the answer after Google for a long time. Thank you.

commented Sep 18, 2016 by harryxiyou (5,830 points)

1 Answer

Best answer

The HZ variable is extensively used as a macro, such as in

This is likely for performance.

This may make it compile-time configurable only.

answered Sep 19, 2016 by Eric Z Ma (44,280 points)
selected Sep 19, 2016 by harryxiyou

So it can only be changed by compiling a new Kernel.

commented Sep 19, 2016 by harryxiyou (5,830 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost