git: 4c0bc591466f - main - man9: add hz(9) and hardclock(9)

Warner Losh wlosh at bsdimp.com
Fri Jun 18 17:38:23 UTC 2021



> On Jun 18, 2021, at 10:49 AM, John Baldwin <jhb at FreeBSD.org> wrote:
> 
> On 6/18/21 8:32 AM, Eugene Grosbein wrote:
>> 18.06.2021 22:18, John Baldwin wrote:
>>> OTOH, it's
>>> also true that there's no real reason for anything outside of the actual timer
>>> code to use stathz (or even profhz) unlike 'hz' which is still used to set
>>> timeout tick values.
>> Not agreed: how do I get reliable per-CPU load stats in userland without sysctl kern.cp_times
>> that exports incrementing raw "stathz-tick" counters? I need them to draw per-CPU graphs.
> 
> Hmm, I guess userland needs the resolution of the values in the sysctls, yes.
> To be clear, I was not at all saying that cp_times should be removed, only that
> very little code in the kernel needs to use the literal C symbol 'stathz' compared
> to the C symbol 'hz’.

There is some code, so I’ll leave it in the man page, but remove the deprecated comment.

I’ve told jhb@ this  already, but I’ve started https://reviews.freebsd.org/D30815 to fix things.

Warner


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 874 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/dev-commits-src-all/attachments/20210618/a2b6427b/attachment.sig>


More information about the dev-commits-src-all mailing list