[erlang-patches] [patch] fix excessive CPU consumption of timer_server
Mon Apr 8 16:04:02 CEST 2013
Thanks for the bug report and patch!
The patch, however, is not acceptable since
it replaces a call to erlang:now/0 with a call to
os:timestamp/0. os:timestamp/0 does no
time correction while erlang:now/0 does, so there
will be trouble if time correction is being done.
Did you have any particular reason to use
os:timestamp/0? It seems to me that using
erlang:now/0 should work just as well.
How did you find the bug? Do you have a
test case or a program to provoke the bug?
On Fri, Apr 5, 2013 at 8:33 PM, Aliaksey Kandratsenka <
> I've recently found that timer_server actually does busy waits
> sometimes. Patch can be found here:
> git fetch git://github.com/alk/otp.git fix-cpu-overhead-of-timer-server
> Please apply. Thanks.
> erlang-patches mailing list
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-patches