[erlang-patches] [patch] fix excessive CPU consumption of timer_server

Björn Gustavsson bgustavsson@REDACTED
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?

/Bjorn



On Fri, Apr 5, 2013 at 8:33 PM, Aliaksey Kandratsenka <
alkondratenko@REDACTED> wrote:

> Hi.
>
> 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
>
>
> https://github.com/alk/otp/compare/erlang:maint...fix-cpu-overhead-of-timer-server
>
> https://github.com/alk/otp/compare/erlang:maint...fix-cpu-overhead-of-timer-server.patch
>
> Please apply. Thanks.
> _______________________________________________
> erlang-patches mailing list
> erlang-patches@REDACTED
> http://erlang.org/mailman/listinfo/erlang-patches
>



-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130408/c007466d/attachment.htm>


More information about the erlang-patches mailing list