<html><head></head><body bgcolor="#FFFFFF"><div>Does fsync block any VM scheduler? Or is it executed within async thread?</div><div>Or none of them :-)</div><div><br></div><div>I do not think that flush log is required for majority of Web systems. I believe this is a TeleCo legacy... Should it be configurable at least build time?</div>
<div><br>Best Regards,<div>Dmitry >-|-|-*></div><div><br></div></div><div><br>On 26.7.2012, at 9.10, Damienuk Davis <<a href="mailto:damienuk@ymail.com">damienuk@ymail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite">
<div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">Hi all,</div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div><div><div><font face="'times new roman', 'new york', times, serif">In one of my projects I used run_erl to launch Erlang VM in daemon mode, rotate logs, etc.</font></div>
<div><font face="'times new roman', 'new york', times, serif">But I discovered unexpected performance problem running production application with run_erl. Application caused high iowait.</font></div><div><font face="'times new roman', 'new york', times, serif">After some investigation I found that run_erl does fsync on every log entry, causing disk IO load. Do we need fsync on every log entry.</font></div>
<div><font face="'times new roman', 'new york', times,
serif">Appreciate your valuable comments.</font></div></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
Thanks</div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">Damien</div></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br>
<span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br>
</div></blockquote></body></html>