From owner-dev-commits-src-all@freebsd.org Fri Jun 18 15:14:20 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 D325F6481AC; Fri, 18 Jun 2021 15:14:20 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 4G62Ww591Sz4lr1; Fri, 18 Jun 2021 15:14:20 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x32d.google.com with SMTP id m3so5882516wms.4; Fri, 18 Jun 2021 08:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=f5zUwiH1vP6pNCH6lw9P/JLkl26ZnW3gt9VUc7mHKbQ=; b=ke0nFcRp+CvY3/NKKf0+OuQ/Eda6FKCpI3CRjGLZBvtOumNYvhAjnbStZPZ0z+SvDc JuB+yIEfnHi/y/9nrqpZtYPR8COsxtWtiYLh8Nw+2NJ7Y6c1cR0DN43IQpjzm4K+jUZg +9vQcZ6CQo5KQLzUAHGsy6iDTqi3dQeI0ulCbheUwCCGoSPtIh3Rny/GpJ3BBsfsbGpk LNkyKhd3jE3qb5PlrNJlz3VMtlDSRv/Qw2U4g9pnx87fsFm5/Pwh1ZtduKzu0qoKX/u8 KkGUB82hSGAlO8mKa5A3iYir5dL2MGsv8KPuvStLoSL9qT/xQS8N8zdfFlwtoGbvzQqe 71QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=f5zUwiH1vP6pNCH6lw9P/JLkl26ZnW3gt9VUc7mHKbQ=; b=m2Hzcb1VHgFB42VCfCHYuxUraNwM87QU84uN6vO5DhKABmxNDMqH6n/NW+1NQBDM2r KcOOeJ5GqHQMMeRnTWyOxkYHen2VniCuiEii2BvY9ML465dWnBlwQnm6nztx+1Fqx3ue qt1Ygyeb0V0okVleoGQCwDE1QfCkKsHt/LsnWEm7KCeseiQjsi3vu9H0Au6CJV9/F8oi fVHfpkQRfQnlIKwIrP7xBMoRZW/ZfRXDEsShI6+B0Bj/WAW18m/EfJw42rsjFFoWlDlQ fMVi1Gn8EV603v8Uc1v4/ibpKxbX95fV3+6X5lSToJTLBA/T/TY8IBNM1igXKpYGnhsc UcfQ== X-Gm-Message-State: AOAM5306TzCwmropuVb2Wxm6V7x3mmPGz5uOmaBJqfwutOMym8lKqwy1 AmpFsa5CH7ZL3/Bbqn9POcH3zUiuVig= X-Google-Smtp-Source: ABdhPJx76wlj8NWmjwkskdUQ7jX/2mprREtsaNpNUwm/dhY+8ecacTBEnSkk02Me3uaRyfPj4TUGiA== X-Received: by 2002:a7b:ca43:: with SMTP id m3mr12092861wml.74.1624029259262; Fri, 18 Jun 2021 08:14:19 -0700 (PDT) Received: from ernst.home (pd9e2360f.dip0.t-ipconnect.de. [217.226.54.15]) by smtp.gmail.com with ESMTPSA id s21sm9118791wmh.9.2021.06.18.08.14.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 08:14:18 -0700 (PDT) Date: Fri, 18 Jun 2021 17:14:15 +0200 From: Gary Jennejohn To: Warner Losh Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 0f882bb14a0e - main - NOTES: Update the HZ entry with latest advice. Message-ID: <20210618151415.6c28e706@ernst.home> In-Reply-To: <202106181443.15IEhm3h010711@gitrepo.freebsd.org> References: <202106181443.15IEhm3h010711@gitrepo.freebsd.org> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4G62Ww591Sz4lr1 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:14:20 -0000 On Fri, 18 Jun 2021 14:43:48 GMT Warner Losh wrote: > The branch main has been updated by imp: > > URL: https://cgit.FreeBSD.org/src/commit/?id=0f882bb14a0e772bf901b1a3e40d028a4165fbd9 > > commit 0f882bb14a0e772bf901b1a3e40d028a4165fbd9 > Author: Warner Losh > AuthorDate: 2021-06-18 14:39:18 +0000 > Commit: Warner Losh > CommitDate: 2021-06-18 14:41:56 +0000 > > NOTES: Update the HZ entry with latest advice. > > Sponsored by: Netflix > Differential Revision: https://reviews.freebsd.org/D30804 > --- > sys/conf/NOTES | 16 ++++++---------- > 1 file changed, 6 insertions(+), 10 deletions(-) > > diff --git a/sys/conf/NOTES b/sys/conf/NOTES > index 40063c09382f..89dd572986bc 100644 > --- a/sys/conf/NOTES > +++ b/sys/conf/NOTES > @@ -1047,8 +1047,7 @@ options TCP_SIGNATURE #include support for RFC 2385 > > # DUMMYNET enables the "dummynet" bandwidth limiter. You need IPFIREWALL > # as well. See dummynet(4) and ipfw(8) for more info. When you run > -# DUMMYNET it is advisable to also have at least "options HZ=1000" to achieve > -# a smooth scheduling of the traffic. > +# DUMMYNET, HZ/kern.hz should be at least 1000 for adequate response. > options DUMMYNET > > # The DEBUGNET option enables a basic debug/panic-time networking API. It > @@ -1237,14 +1236,11 @@ options CAPABILITY_MODE # sandboxes with no global namespace access > ##################################################################### > # CLOCK OPTIONS > > -# The granularity of operation is controlled by the kernel option HZ whose > -# default value (1000 on most architectures) means a granularity of 1ms > -# (1s/HZ). Historically, the default was 100, but finer granularity is > -# required for DUMMYNET and other systems on modern hardware. There are > -# reasonable arguments that HZ should, in fact, be 100 still; consider, > -# that reducing the granularity too much might cause excessive overhead in > -# clock interrupt processing, potentially causing ticks to be missed and thus > -# actually reducing the accuracy of operation. > +# The granularity of operation is controlled by the kernel option HZ (default > +# 1000 or 1ms). Virtual machines guests default to an HZ value of 100. Lower > +# values produce less overhead at the expense of reduce accuracy in delivery of reduce should be reduced > +# kernel timeouts. With the adaptive tick code, lower values produce less > +# benefit than in the past. > > options HZ=100 > > _______________________________________________ > dev-commits-src-all@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all > To unsubscribe, send any mail to "dev-commits-src-all-unsubscribe@freebsd.org" -- Gary Jennejohn