From owner-dev-commits-src-all@freebsd.org Thu Jun 17 16:11:27 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 ADB9D65525F for ; Thu, 17 Jun 2021 16:11:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) (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 4G5RrH46hrz3HSV for ; Thu, 17 Jun 2021 16:11:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-pl1-x633.google.com with SMTP id x10so3199311plg.3 for ; Thu, 17 Jun 2021 09:11:27 -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=BV3gFTSi6yrodSnYoJ+KrqJkpkTXqWyJPVnJkXXC41c=; b=dMcX63mbmLhGVpcRmv9YtB6PkmE57nCMlHGUy6GRm43RfzD1zsOgomCJ34AbJ/rFrt kkxuPvfnkEWUyGA1ZFUeKM83KlJyNzfVADsau7t4JNbNMoZR1cxXAeXjK7gaVEV58BTa 6hJNWfmhMRbX9srip70SuuPAaJqzQOnHwtbNNoJQ3qZtU8DKXLesFjBYurkMKGVS8Npc SLK9XJ/OqM3efOL48N3SUD6uS2FszOxVr6ipCKJXMYn7ija2wXaU8/aht+XANEdr+967 QirD4sVAOzJhcoWxDoahcal5BIszBJhouB1vpnGeG0HbAp5/cSszfzpFtEzjLrgbckMi n05g== 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=BV3gFTSi6yrodSnYoJ+KrqJkpkTXqWyJPVnJkXXC41c=; b=rdodt1xUph82oQpXbD3Sdo9CyJT313xFy69vcNqQkwI9AOoBl+VfJq8ETz1LUwQtDq YUXyQ7CXPFtMe7xaSPwJBbm1zoAxnWlqzywfVHE7U8Z/w25b8BPaHZimlAsEwEjaDV4r G2WQ33iNDt1duuudYUONLh1vC0f7ZWxELuqhA+W3tO7vB9+kMfsNuCCXQ+vnfMWyVNs9 YmNwVrptu8uojMdNQLetM7c+eljE72zlSRWx49J0yBtt2CMHtifWMBWGnE7jOmLAQ9Zp ENTlWyumQ0SlitNxpcdL89Ean7zEYqXFZT0gsHhKbZVctHIrpJHm4vyXndprFIMag226 2ajQ== X-Gm-Message-State: AOAM530FmBlmT4QgiEkZyMBv18yCCEmCDzTbQZJ1HlmTz9V2z/13imJ0 g367xl7cFrHv4B/n44eSwVM2ag== X-Google-Smtp-Source: ABdhPJxseODrdKRzNTAkF0nA0bMCXKWKJbrzG6thpFC7/Q7fQLYLgj2GvkEosqQ9I1/Dx1rliE6efg== X-Received: by 2002:a17:90b:502:: with SMTP id r2mr17471497pjz.18.1623946285992; Thu, 17 Jun 2021 09:11:25 -0700 (PDT) Received: from ?IPv6:2603:300b:6:5100:55a0:964e:987c:81fb? ([2603:300b:6:5100:55a0:964e:987c:81fb]) by smtp.gmail.com with ESMTPSA id d20sm3344739pfn.219.2021.06.17.09.11.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jun 2021 09:11:25 -0700 (PDT) From: Warner Losh Message-Id: <64D62F0A-A7CA-4D4F-92E8-D4FF173F7870@bsdimp.com> Content-Type: multipart/signed; boundary="Apple-Mail=_B90A1E55-6D79-490D-9D72-C146A3F586B5"; 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: 0a99422970d7 - main - Move mips and arm to 1000Hz by default. Date: Thu, 17 Jun 2021 10:11:23 -0600 In-Reply-To: <20210617093111.5a537750@ernst.home> Cc: Alexey Dokuchaev , Warner Losh , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org To: Gary Jennejohn References: <202106170201.15H215Z6078742@gitrepo.freebsd.org> <20210617093111.5a537750@ernst.home> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4G5RrH46hrz3HSV 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: Thu, 17 Jun 2021 16:11:27 -0000 --Apple-Mail=_B90A1E55-6D79-490D-9D72-C146A3F586B5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 17, 2021, at 3:31 AM, Gary Jennejohn = wrote: >=20 > On Thu, 17 Jun 2021 09:20:46 +0000 > Alexey Dokuchaev wrote: >=20 >> On Thu, Jun 17, 2021 at 02:01:05AM +0000, Warner Losh wrote: >>> commit 0a99422970d7fbdb1e17724339a8dc37082f3431 >>>=20 >>> Move mips and arm to 1000Hz by default. >>>=20 >>> armv6 and armv7 systems already were 1000Hz. The other armv5 were = a >>> mix of 100 and 1000. This changes them to 1000. Should there be >>> issues, we can add options HZ=3D100 to the systems that have bad >>> performance at the drop of a hat. >>=20 >> Do we have this 1000Hz vs. 100Hz thing documented somewhere for those >> who are thinking about tuning it? There are various "optimization" >> howto's floating on the Internet here and there which recommend this >> change, so it would be nice to have some definitive documentation on >> the subject, e.g. in our Handbook or Wiki. >>=20 >=20 > It's discussed in /sys/conf/NOTES, but most users probably wouldn't > think about looking there. An entry in the Handbook or Wiki could > be useful. I=E2=80=99ve brought over NetBSD=E2=80=99s hz(9) and hardclock(9) man = pages in https://reviews.freebsd.org/D30802 with adjustments for = FreeBSD. I mention the kern.hz tunable and the fact that it default to = 100 for VM guests. This should cover people=E2=80=99s curiosity as well = as plug the hole in our docs. All this stuff was from 4.4BSD, so = NetBSD=E2=80=99s man pages were a good place to start. The HZ kernel option is something almost nobody should be adjusting. = I=E2=80=99ve updated the text slightly in NOTES in = https://reviews.freebsd.org/D30804 if people want to tweak it further = before I commit. Wiki is terrible for this stuff, since it goes stale = too quickly, but I=E2=80=99d be happy to review someone else=E2=80=99s = changes to the handbook for tuning this value (though honestly, it = should almost never be frobbed). kern.hz likely shouldn=E2=80=99t be = adjusted either, but it=E2=80=99s a much easier knob to turn than = rebuilding the kernel with a new HZ and there=E2=80=99s more cases where = it can be useful (though tests I=E2=80=99ve done in the past suggest = values > 10,000-50,000 might not be that useful). Finally, NetBSD has an option(4). We=E2=80=99re long past the time where = we should consider it. I=E2=80=99d love to review changes for that too. = Most of a first cut on text can be stolen from NOTES, if someone is = looking for an easy project (it need not be complete to be useful, at = least initially) Warner --Apple-Mail=_B90A1E55-6D79-490D-9D72-C146A3F586B5 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 iQIzBAEBCgAdFiEEIDX4lLAKo898zeG3bBzRKH2wEQAFAmDLdCsACgkQbBzRKH2w EQDsRhAAzi5FLrUlwBp1+CEsizCnUR2YSlycuvEwX5szj1QXYE7WLxiSyYPWWLFR 5OtSRCUJnCH+hF17g+A9FAlR9zEefOcc9qqhAsKELH7zLZFzhCT+3PtYrHPp5oY4 WSlR55vmJJvHCyenrFN/jY4XqsLMLeuwJFXx8ZgzPYr/YUJ5O/nmOMXfSnotGCjm rOQNBMX4ig2618KgLn0yQfvkQDyUt/vn/yEMiOJu+6qZ+tipANHq7dWscDAODEkv gwktkyZP3kFW3e06Rl9td846FMwNxS7kthJLfIXcJ6fzFBTMQcCM9SIwg36mj2UZ lrI6JKW0oIVEVQ88AHBayTb4a7zTLZWfgOXVRMZmWZu8IriW+ch7fs/INCvNlGzT CAjvIb/j21LJnmPXuOp9RJAPCNIA4Kp+7fOuD+aQBHNi8j0Mfg8o3OerQRHpnTMk Cokh57YeGcq3Y/MeWil+c74CCUJA3xBWQ0ALIAtjIINuCkGgmgn1wBzdZMO1F1y9 tD1WQrAYZ5NIgvcAAmRjJwYj+1s2acs0Lr9yNwkZXjKgVzCvf2J6AGms19JXduBc zFE7j9VKXq+3QqUfTO2fbaOasi9h+ovaajBuHVo9K7FyErSKgGAsh/8sC8N8+2jD 1uqMXkmMjaYvwVQ4X21eX8Dv+PoP1CnjS9JUCLn+dmc92BJ2eDM= =ymi/ -----END PGP SIGNATURE----- --Apple-Mail=_B90A1E55-6D79-490D-9D72-C146A3F586B5--