From nobody Sat Oct 09 05:53:08 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8A6E112D6252; Sat, 9 Oct 2021 05:53:16 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HRDkM6Lgmz3RFm; Sat, 9 Oct 2021 05:53:15 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.16.1/8.16.1) with ESMTPS id 1995r8Z0000921 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 9 Oct 2021 08:53:11 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 1995r8Z0000921 Received: (from kostik@localhost) by tom.home (8.16.1/8.16.1/Submit) id 1995r84Q000920; Sat, 9 Oct 2021 08:53:08 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 9 Oct 2021 08:53:08 +0300 From: Konstantin Belousov To: Piotr Pawel Stefaniak Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: bf8f6ffcb66a - main - Mention kern.timecounter.alloweddeviation in nanosleep.1 Message-ID: References: <202110081509.198F94HG022514@gitrepo.freebsd.org> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202110081509.198F94HG022514@gitrepo.freebsd.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on tom.home X-Rspamd-Queue-Id: 4HRDkM6Lgmz3RFm X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Oct 08, 2021 at 03:09:04PM +0000, Piotr Pawel Stefaniak wrote: > The branch main has been updated by pstef: > > URL: https://cgit.FreeBSD.org/src/commit/?id=bf8f6ffcb66a27f498a18e520758ea0d18a6d2de > > commit bf8f6ffcb66a27f498a18e520758ea0d18a6d2de > Author: Piotr Pawel Stefaniak > AuthorDate: 2021-10-07 19:14:27 +0000 > Commit: Piotr Pawel Stefaniak > CommitDate: 2021-10-08 15:07:50 +0000 > > Mention kern.timecounter.alloweddeviation in nanosleep.1 > > PR: 224837 > Reported by: Aleksander Derevianko > --- > lib/libc/sys/nanosleep.2 | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2 > index 19ffcf1b7026..12758a974f7f 100644 > --- a/lib/libc/sys/nanosleep.2 > +++ b/lib/libc/sys/nanosleep.2 > @@ -30,7 +30,7 @@ > .\" @(#)sleep.3 8.1 (Berkeley) 6/4/93 > .\" $FreeBSD$ > .\" > -.Dd March 17, 2017 > +.Dd October 7, 2021 > .Dt NANOSLEEP 2 > .Os > .Sh NAME > @@ -93,6 +93,8 @@ returns immediately and the calling thread is not suspended. > .Pp > The suspension time may be longer than requested due to the > scheduling of other activity by the system. > +It is also subject to the allowed time interval deviation > +specified by the sysctl kern.timecounter.alloweddeviation. This should be like .Xr sysctl 3 .Dv kern.timecounter.alloweddeviation And then, it is missing a description what exactly is allowed by deviation, for instance, what units this sysctl is? > An unmasked signal will terminate the sleep early, regardless of the > .Dv SA_RESTART > value on the interrupting signal.