From owner-dev-commits-src-all@freebsd.org Fri Jun 18 15:35:52 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DE60F6484DB for ; Fri, 18 Jun 2021 15:35:52 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G630m5QTbz4nJJ for ; Fri, 18 Jun 2021 15:35:52 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-pl1-x631.google.com with SMTP id m17so1677471plx.7 for ; Fri, 18 Jun 2021 08:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=4LI2ysUppKNIK7HLb023Op7UHR0/q6ddAw24qxf69xI=; b=JItw+aKietyfDP3cyEmwXhc+oPz4VTdyAgxBlUYJy6jY73MVutj2F5sG4U8DyMqUi/ Hqxq8Jmwpu/gPbsHxr+DXC4dZC0JvxD8jXim6RrJaEXo5JbaTuD1Myudinty1/La8zHJ Pob3y6qavEnGsYk7o2sjqhyHZyQm8rFvPamVyzNcHmqf4Ol6mzVhU37lkzZ0IZxgLiNx a7UUOa8zTSOpmdVGQTpwgLsmR1rpnCKPZNcVPEBI6cD2LP+8uiTaoOyiep2eBBk1a4dQ R0Tz37KJKl9lxMAgwyPMmC9aXRnhlHo72LHeuqgGAUr/ATla0auj5xZrvAo664qA02KG nhRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=4LI2ysUppKNIK7HLb023Op7UHR0/q6ddAw24qxf69xI=; b=f4zANgy9hBJYE34oQd3k1ZgqJ0I3eb3jnmsNTaOLzxLY6tXyxOOXDCptioK0ws6hUk zKzz/LBF5AtAfsYScoYNdRXkJ0AT20kUVcO9+ohmlCwcnDSZ7BHbE+lp2NVpsMDydrBC e1gyq0/GEOTLWcOnO5Rypy9kzrJxgbf35beK1KWxWHzxd6MXPS1LLBcphNXvGhGrY0m6 n5DkZbbX/E4M5HSsg29JlMR/NSDEjiuCQ+nEq+AT3WnpBHEoXD4hvv55gDsbbpnPjpk5 S5q11AhzN7qRxkLquvJrQRpK8akF/dEzgtPVE9t634460EurmfEcFxSGfLut/cJZPkJY wmxw== X-Gm-Message-State: AOAM532dr5Vdp5RglO4FGLU3SX1lJweo9dPPqt17pMEHfdAUVrOTGbnE aHzVxqiGf+qfcI4XWLmssZEZtA== X-Google-Smtp-Source: ABdhPJxuAoep9kY7JlmCfAHTRYP5hMMGGVp1yi38mDg5TXxCMbj6sC5DY4375ULLIx/BVjYV8ah2WA== X-Received: by 2002:a17:90a:db98:: with SMTP id h24mr8522776pjv.62.1624030550907; Fri, 18 Jun 2021 08:35:50 -0700 (PDT) Received: from ?IPv6:2603:300b:6:5100:65b4:c20:23f8:202e? ([2603:300b:6:5100:65b4:c20:23f8:202e]) by smtp.gmail.com with ESMTPSA id u11sm5141177pjf.46.2021.06.18.08.35.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jun 2021 08:35:50 -0700 (PDT) From: Warner Losh Message-Id: <2F567BC6-94CC-400C-B214-0EDAA2C07557@bsdimp.com> Content-Type: multipart/signed; boundary="Apple-Mail=_9212D75F-A6BB-4A77-AC89-07227C83FE92"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: git: 4c0bc591466f - main - man9: add hz(9) and hardclock(9) Date: Fri, 18 Jun 2021 09:35:48 -0600 In-Reply-To: <10df4ab6-bee0-58f5-7d42-92850d526e01@FreeBSD.org> Cc: Warner Losh , "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" To: John Baldwin References: <202106181443.15IEhn4t010735@gitrepo.freebsd.org> <10df4ab6-bee0-58f5-7d42-92850d526e01@FreeBSD.org> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4G630m5QTbz4nJJ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2021 15:35:52 -0000 --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 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 >> AuthorDate: 2021-06-18 14:39:42 +0000 >> Commit: Warner Losh >> 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--