Date: Fri, 18 Jun 2021 09:35:48 -0600 From: Warner Losh <wlosh@bsdimp.com> To: John Baldwin <jhb@FreeBSD.org> Cc: 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: <2F567BC6-94CC-400C-B214-0EDAA2C07557@bsdimp.com> In-Reply-To: <10df4ab6-bee0-58f5-7d42-92850d526e01@FreeBSD.org> References: <202106181443.15IEhn4t010735@gitrepo.freebsd.org> <10df4ab6-bee0-58f5-7d42-92850d526e01@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_9212D75F-A6BB-4A77-AC89-07227C83FE92 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 18, 2021, at 9:18 AM, John Baldwin <jhb@FreeBSD.org> wrote: >=20 > On 6/18/21 7:43 AM, Warner Losh wrote: >> The branch main has been updated by imp: >> URL: = https://cgit.FreeBSD.org/src/commit/?id=3D4c0bc591466fd2731ba892269260b7da= b74cfbad >> commit 4c0bc591466fd2731ba892269260b7dab74cfbad >> Author: Warner Losh <imp@FreeBSD.org> >> AuthorDate: 2021-06-18 14:39:42 +0000 >> Commit: Warner Losh <imp@FreeBSD.org> >> CommitDate: 2021-06-18 14:42:51 +0000 >> man9: add hz(9) and hardclock(9) >> Document aspects of system time keeping. Hz is the nominal = rate that we >> interrupt the system and is known and the 'tick' period of 1 / = hz. >> hardclock is the routine that does various bits of timekeeping. = stathz >> and profhz are documented as historical relics that are = deprecated >> and replaced by hwpmc.4 and others. >> Reviewed by: phk@, mav@ and gnn@ (previous = version) >> Obtained from: hardclock.9 from NetBSD (with FreeBSD = adjustments) >> Sponsored by: Netflix >> Differential Revision: https://reviews.freebsd.org/D30802 >=20 > The comments about stathz are wrong. While profhz is obsolete and = replaced by > hwpmc, statclock is not. statclock is used to implement getrusage(), = %CPU in > ps(1), and kern.cp_time (global and per-CPU stats for CPU usage = breakdown you > see in top(1) for example). hwpmc doesn't replace any of those. = 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. Thanks. All that had been blotted out of my mind somehow :(. I=E2=80=99ll update and include you on the review. Warner --Apple-Mail=_9212D75F-A6BB-4A77-AC89-07227C83FE92 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIzBAEBCgAdFiEEIDX4lLAKo898zeG3bBzRKH2wEQAFAmDMvVQACgkQbBzRKH2w EQBj6BAA43MSlLBi+jRAkl2zpD6/UkOwOFYPUOp8kQmsuxkZ/DSU8CYrS5LFtDVo NfhY5kyioAxbyidq2TVrOe1kf7NLDxKJUZMA6Zlu1j95WeTetoRHpyi8PjNoUWnZ aRraGg9bTKFHHduHH65JxGjoMtTlf8XQusnjBin5qiBVodP0Z9FNL8hK/cP6UHCG B1BieHKubvcWPGeJYiuzre8oNzHCTaTU1mrK2/8UqeLcRhsxxm63Z0NlqrmQhAWJ kliMoPbxYagW4ddyAGf+oFJ8NmMpCF3qGjt7vL9FYeXdR/erRdifUUa2fS39h0/r Q6GA2wMhSsz8+ofVPCKMS/tx/0qaeVNgIde21c2YbR1O52keeqP3AATUmrY9bZGI R2yZgdqpmK29VJw7C1ZQyDVivpln4KvNpMd6dxzUaEfheUsI81ukV/4CisHG3UU0 S6jf+bYmCGiysZ+RTWwCQ8u+mv8AZ0uGslwrqFhBeYxF7RABBbeljfp8/6JdCqod U5LEy1epE3b+JDDteRmuSmuVNT5MoGdvTVPGiMoPYTB+RrW9swYTiDXZirTkl40a VN+eoE5vM/MIHDkuqFB3bTI25FR9EpEJsk4Ks8/9QCkawWqNX7TrEFMZ0G+4nB6h Nkyj8BJ1IO5ZaWPVau2R3ue+YRTVmra1A7QKe1GIGI2yE17cLlQ= =m3Sf -----END PGP SIGNATURE----- --Apple-Mail=_9212D75F-A6BB-4A77-AC89-07227C83FE92--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2F567BC6-94CC-400C-B214-0EDAA2C07557>