Summary: | Describe kern.timecounter.alloweddeviation sysctl() (and probable more) in nanosleep(2) man page. | ||
---|---|---|---|
Product: | Documentation | Reporter: | Aleksander Derevianko <aeder> |
Component: | Manual Pages | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | aeder, cem, doc, eugen |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Aleksander Derevianko
2018-01-02 10:56:50 UTC
Try tuning down kern.timecounter.alloweddeviation to zero. (In reply to Conrad Meyer from comment #1) Thanks, it works like a charm! Now precision is pretty good. Sleeping for 600 ms, real sleep is 600.081164 Sleeping for 600 ms, real sleep is 600.062304 Sleeping for 600 ms, real sleep is 600.063774 Sleeping for 600 ms, real sleep is 600.101515 Sleeping for 600 ms, real sleep is 600.088049 Sleeping for 600 ms, real sleep is 600.066452 Sleeping for 600 ms, real sleep is 600.062314 Sleeping for 600 ms, real sleep is 600.084151 Sleeping for 600 ms, real sleep is 600.059051 Sleeping for 600 ms, real sleep is 600.062662 Sleeping for 600 ms, real sleep is 600.064423 Now I can google kern.timecounter.alloweddeviation and find a lot of references to it, but before that googling for "nanosleep + freebsd" return nothing useful. May be, adding it in nanosleep(2) man page? A commit references this bug: Author: mandree Date: Sun Apr 19 08:18:44 UTC 2020 New revision: 532086 URL: https://svnweb.freebsd.org/changeset/ports/532086 Log: multimedia/librtmp, rtmpdump: Update to 20190330. PR: 224836 PR: 224837 Submitted by: daniel.engberg.lists@pyret.net Approved by: maintainer timeout (hrs@, 35 d) Changes: head/multimedia/librtmp/Makefile head/multimedia/librtmp/distinfo head/multimedia/rtmpdump/Makefile head/multimedia/rtmpdump/distinfo A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=bf8f6ffcb66a27f498a18e520758ea0d18a6d2de commit bf8f6ffcb66a27f498a18e520758ea0d18a6d2de Author: Piotr Pawel Stefaniak <pstef@FreeBSD.org> AuthorDate: 2021-10-07 19:14:27 +0000 Commit: Piotr Pawel Stefaniak <pstef@FreeBSD.org> 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(-) A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=6018f775cebf15df4309e9544e33123c54d8ef89 commit 6018f775cebf15df4309e9544e33123c54d8ef89 Author: Piotr Pawel Stefaniak <pstef@FreeBSD.org> AuthorDate: 2021-10-07 19:14:27 +0000 Commit: Piotr Pawel Stefaniak <pstef@FreeBSD.org> CommitDate: 2022-03-26 13:34:20 +0000 Mention kern.timecounter.alloweddeviation in nanosleep.2 PR: 224837 Reported by: Aleksander Derevianko (cherry picked from commit bf8f6ffcb66a27f498a18e520758ea0d18a6d2de) (cherry picked from commit 4f556830dec19ec8821b2ff939ab181192ea4dfc) lib/libc/sys/nanosleep.2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) |