[Bug 264867] kevent EVFILT_TIMER, timer expiration with twice the period

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 28 Jun 2022 00:56:46 UTC

--- Comment #3 from Mark Johnston <markj@FreeBSD.org> ---
I'm able to reproduce what looks like a similar problem on a different test
system.  In my case, the extra delay is always close to a multiple of 20ms (the
kqueue timer period).  Usually 40ms or 60ms.  It often occurs soon after the
program starts up.  It happens with or without setting the scheduling policy.

I suspect the problem is related to some kind of race in the EVFILT_TIMER code.
 If I add EV_ONESHOT to the event, the problem is not reproducible anymore.  In
the test case, when kevent() returns the timer is still armed, and it's
supposed to be reconfigured by the next kevent() call.

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