Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Jan 2018 11:50:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 224837] Extremly unaccurate nanosleep() called to sleep for 0.6 seconds actually sleeps up to 0.640 seconds
Message-ID:  <bug-224837-8-3owM5ghy8r@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-224837-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-224837-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224837

Aleksander Derevianko <aeder@list.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Product|Base System                 |Documentation
                 CC|                            |aeder@list.ru
            Version|11.0-RELEASE                |Latest
          Component|kern                        |Documentation
           Severity|Affects Many People         |Affects Some People

--- Comment #2 from Aleksander Derevianko <aeder@list.ru> ---
(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 refere=
nces
to it, but before that googling for "nanosleep + freebsd" return nothing
useful.

May be, adding it in nanosleep(2) man page?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224837-8-3owM5ghy8r>