Hi Ori,<div>Can you be a bit more specific how it hurts your performance? Is there only one process responsible for creating timers? What does your app do in the first place?<br><br><div class="gmail_quote">On Tue, Nov 22, 2011 at 2:32 AM, ori brost <span dir="ltr"><<a href="mailto:oribrost@gmail.com">oribrost@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I tried hibernation alone and it did not help, only<br>
hibernationcombined with reducing timer amount did the trick<br>
<div class="HOEnZb"><div class="h5">On Mon, Nov 21, 2011 at 9:25 PM, Joel Reymont <<a href="mailto:joelr1@gmail.com">joelr1@gmail.com</a>> wrote:<br>
> Are you sure that creating these timers is what's hurting performance?<br>
><br>
> My bet is on your processes, try hibernating them.<br>
><br>
> Let us know if that helps.<br>
><br>
> On Nov 21, 2011, at 7:22 PM, ori brost wrote:<br>
><br>
>> We have an erlang program which creates many (300000) timers using<br>
>> erlang:start_timer. We have noticed in tests that creating these<br>
>> timers hurts our performance. For each such timer we have a process<br>
>> that gets a message from it once every 25 seconds, except for waiting<br>
>> for these messages, the processes are mostly idle. We are working on<br>
>> reducing the number of timers, but we would also like to know whether<br>
>> these timers may hurt performance less if the processes would<br>
>> hibernate until they get a message. Furthermore, is there any<br>
>> documentation explaining why creating many timers can hurt erlang<br>
>> performance?<br>
><br>
> --------------------------------------------------------------------------<br>
> - for hire: mac osx device driver ninja, kernel extensions and usb drivers<br>
> ---------------------+------------+---------------------------------------<br>
> <a href="http://wagerlabs.com" target="_blank">http://wagerlabs.com</a> | @wagerlabs | <a href="http://www.linkedin.com/in/joelreymont" target="_blank">http://www.linkedin.com/in/joelreymont</a><br>
> ---------------------+------------+---------------------------------------<br>
><br>
><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<br>- Ahmed Omar<div><a href="http://nl.linkedin.com/in/adiaa" target="_blank">http://nl.linkedin.com/in/adiaa</a></div><div>Follow me on twitter</div>
<div><a href="http://twitter.com/#!/spawn_think" target="_blank">@spawn_think</a></div><br>
</div>