From owner-dev-commits-src-all@freebsd.org Fri Jun 18 16:49:49 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 283F4649E07; Fri, 18 Jun 2021 16:49:49 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G64f50jtfz50Tb; Fri, 18 Jun 2021 16:49:49 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro.local (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 6EC342D520; Fri, 18 Jun 2021 16:49:48 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: Re: git: 4c0bc591466f - main - man9: add hz(9) and hardclock(9) To: Eugene Grosbein , Warner Losh , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202106181443.15IEhn4t010735@gitrepo.freebsd.org> <10df4ab6-bee0-58f5-7d42-92850d526e01@FreeBSD.org> <7c4c7acc-1fe4-28e4-4e1c-c08912eb0f99@grosbein.net> From: John Baldwin Message-ID: Date: Fri, 18 Jun 2021 09:49:46 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <7c4c7acc-1fe4-28e4-4e1c-c08912eb0f99@grosbein.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 16:49:49 -0000 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'. -- John Baldwin