In versions earlier than Linux kernel 2.6.17, the Linux kernel sets a periodic clock interrupt for each CPU, and it processes some cron jobs during the interruption, such as thread scheduling. As a result, even if the CPU does not need the timer, many clock interrupts are generated, which wastes resources. The NOHZ mechanism is introduced in Linux kernel 2.6.17. This mechanism allows you to edit each clock interrupt, reducing unnecessary clock interrupts. Therefore, you are advised to enable it.
Procedure (CentOS is used as an example):
1. In the /boot directory, run the find -name grub.cfg command to obtain the configuration file of the boot parameters.
2. Remove nohz=off from the configuration file.
3. Use reboot to restart the server.