Re: The "best" value of HZ

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

 



On Fri, Oct 28, 2005 at 01:18:41AM +0200, Claudio Scordino wrote:

> Hi,

Hi Claudio,

>     during the last years there has been a lot of discussion about the "best" 
> value of HZ... On i386 was 100, then became 1000, and finally was set to 250.
> I'm thinking to do an evaluation of this parameter using different 
> architectures.
> 
> Has anybody thought to give the possibility to modify the value of HZ at boot 
> time instead of at compile time ? This would allow to easily test different 
> values on different machines and create a table containing the "best" value 
> for each architecture...  At this moment, instead, we have to recompile the 
> kernel for each different value :(
> 
> Do you think there would be much work to do that ? 
> Do you think it would be a desired feature the knowledge of the best value for 
> each architecture with more precision ?

the best value for HZ is not architecture specific, it depends on the 
usage pattern.

The rule is roughly:
- low HZ for computations
- high HZ for interactive usage

Making HZ selectable at boot time wouldn't be hard, but I doubt it's 
worth it because it would make the kernel both bigger and slower.

> Thanks,
> 
>       Claudio

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


--
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