Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2021 11:38:18 -0600
From:      Warner Losh <wlosh@bsdimp.com>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Eugene Grosbein <eugen@grosbein.net>, Warner Losh <imp@FreeBSD.org>, "src-committers@freebsd.org" <src-committers@FreeBSD.org>, "dev-commits-src-all@freebsd.org" <dev-commits-src-all@FreeBSD.org>, "dev-commits-src-main@freebsd.org" <dev-commits-src-main@FreeBSD.org>
Subject:   Re: git: 4c0bc591466f - main - man9: add hz(9) and hardclock(9)
Message-ID:  <F06C8FE9-5DE0-461B-84BB-5E6FBE0F1FCB@bsdimp.com>
In-Reply-To: <c8676c23-f2f3-6430-3a48-8696485b591c@FreeBSD.org>
References:  <202106181443.15IEhn4t010735@gitrepo.freebsd.org> <10df4ab6-bee0-58f5-7d42-92850d526e01@FreeBSD.org> <7c4c7acc-1fe4-28e4-4e1c-c08912eb0f99@grosbein.net> <c8676c23-f2f3-6430-3a48-8696485b591c@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]


> On Jun 18, 2021, at 10:49 AM, John Baldwin <jhb@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



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIzBAEBCgAdFiEEIDX4lLAKo898zeG3bBzRKH2wEQAFAmDM2goACgkQbBzRKH2w
EQCdsQ//WTwkB7aCzMgOH1IZIpZ/416QkKWmq1C9seRnNBrB5c0PdFlpaPtEqRCx
rZklA58HtL+meWvb9chrBH1CK3+LHDATPc1LeiVnjYAlci7rKqtQfUo7TFhwrEaH
l7x/S/t1Rj+i1DcgYITY8DdVhoT0ZlAMW82jXcgrO1DxWlkaEmCDkt8sN8wZmVzb
Cf8Z+VtdRzV9CwSYyObZiluG51kSW/IhJXl6eLEAPkMEWEFdDTxxGbMk++AWhu+v
APkSFyFrAm1+giXHe+GUPn7bl/dZj0kkf4sXgugkznA4CFMJeEOcKaguNF+0NaPo
6B4gz7EkyeTRpR5HnxGl61zDZ7scgzXqI9BTu9C4JT/2AnpZBo+pogKvyZXnuuPP
tqdOAGA/yrNJwrqj/dmrQ9FE7dZ20UWLLcOe239mwfV44rcE/prixoVvD7DBlmLc
GpdGiyHsVES3wFNcb1IBLmvknF6u3OI765sh+1bCAtsszg1CjxP34lP8KkLa11DT
8onTdKyapjEpY/K8YByot8GVQJ8W+wy+wcYogvCmP0SCMGw14RvJDCGfXdtkBlSu
Hm/1nsTkpvY1HqG8+Aoufb4wcUZHG+uV55NrJ2InBiTcThb9LJ/VmhxFdN4MJuxj
NA/XZWP3/sA9IiX64LfiXy8RveDjKKPAF1SYc3SXCG8LaS8tfDM=
=IDbK
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F06C8FE9-5DE0-461B-84BB-5E6FBE0F1FCB>