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

Re: Unknown HZ value! (0) Assume 100.



>
> in this case, I guess the kernel found HZ=100 is defined in the config file
> but actually the HZ value in the system was 0. Hence it complained.
>
> It seems to be a harmless message, but very annoying. Is there any reason
> why the kernel maintainers keep to print the message since it is not really
> harmful? Why not send to syslog or somewhere else?

Oops! This is not the linux kernel problem, but the "procps" package problem.
This is probably a work-around:

1. $ apt-get source procps
2. $ cd procps-VERSION
3. edit proc/sysinfo.c
165c165
<     fprintf(stderr, "Unknown HZ value! (%ld) Assume %ld.\n", h, Hertz);
---
>     /* fprintf(stderr, "Unknown HZ value! (%ld) Assume %ld.\n", h, Hertz); 
*/

4. $ fakeroot debian/rules binary
5. # dpkg -i ../procps_VERSION_i386.deb
6. # dpkg -i ../libproc-dev_VERSION_i386.deb


Hope this helps!


-- 
Patrick Hsieh<pahud@ezplay.tv>
GnuPG Pubilc Key at http://www.ezplay.tv/~pahud/pahudatezplay.pubkey
MD5 checksum: b948362c94655b74b33e859d58b8de91



Reply to: