<br><div class="gmail_quote">On Tue, Oct 23, 2012 at 9:19 PM, Avi Bahra <span dir="ltr">&lt;<a href="mailto:avibahra@googlemail.com" target="_blank">avibahra@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Currently I has a single threaded server based on boost ASIO.<br>
This works correctly most of the time.<br>
However on systems where i know that the disk&#39;s are slow.<br>
, the server grinds to a halt, when dealing with the blocking<br>
disk IO.<br>
<br>
I could not find any examples or documentation in ASIO, in<br>
how to get round these issues. It appears that ASIO does<br>
not provide any support for async&#39; disk IO.<br>
<br>
So I assume this is handled by use of threads ?<br>
Are there any examples of using ASIO with threaded disk IO,<br>
since this must be very common use case ?<br>
<br>
Is the strand functionality appropriate for handing disk IO,<br>
in an async&#39; manner.<br>
<br>
Any recommendations/advice on this issues would be<br>
greatly appreciated.<br>
<br>
Best regards,<br>
Ta,<br>
    Avi<br>
_______________________________________________<br>
Boost-users mailing list<br>
<a href="mailto:Boost-users@lists.boost.org">Boost-users@lists.boost.org</a><br>
<a href="http://listarchives.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://listarchives.boost.org/mailman/listinfo.cgi/boost-users</a><br>
</blockquote></div><div><br></div><div>Hi Avi,</div><div><br></div><div>If your server performs short read/writ frequently and data to be transfer to network depend on these operations, then multi-threading does not help a lot here. I would suggest you to recheck your I/O strategies and make sure they are optimized. e.g. buffering, cache, .. etc. If they are perfect but performance still bother you, then consider to use memory mapped file or libaio.</div>
<div><br></div><div>Best,</div><div>Acer.</div>

