nanosleep returning early
Brian Fundakowski Feldman
green at freebsd.org
Wed Jul 21 03:26:24 PDT 2004
On Wed, Jul 21, 2004 at 06:13:10PM +1000, John Birrell wrote:
>
> Today I increased HZ in a current kernel to 1000 when adding dummynet.
> Now I find that nanosleep regularly comes back a little early.
> Can anyone explain why?
>
> I would have expected that the *overrun* beyond the required time to vary,
> but never that it would come back early.
Is this a difference from clock_gettime(CLOCK_MONOTONIC)? You really
shouldn't be using gettimeofday() foor internal timing since the
system clock can be adjusted by NTP.
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green at FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
More information about the freebsd-current
mailing list