Hi Thomas, <br><br>please find the inlined comments.<br><br><div class="gmail_quote">On Wed, Apr 1, 2009 at 11:29 PM, Thomas Conway-Poulsen <span dir="ltr">&lt;<a href="mailto:tconway@adpepper.com">tconway@adpepper.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi guys,<br>
<br>
I have been pondering about the threads translator and where to put it, at the top just below the physical disk or at the buttom as the exporter..<br>
<br>
On the server, what happens if all other translators like iocache, locks and writebehind are threaded - do I have to calculate the memory consumption times the count of threads, and if so - what about object uniqueness,  if one thread is cached but the other dont know about it ?</blockquote>
<div><br>Memory consumption remains same irrespective of the number of threads. caching is not done on per thread basis.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Maybe, there is no need to to use the threads translator just above protocol level. If the server only has one CPU, but it would still make sense to use it before the physical disk so that scsi queueing could be used properly to get the most IOPS out of them..<br>

<br>
Any idea in using the threads at both protocol and disk level maybe ?</blockquote><div><br>for 2.0 releases, io-threads is not needed at protocol in a single cpu system. But io-threads would still be needed on top of posix/posix-locks since operations to/from physical disk might be blocking.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
>From what I have understood, on the server-side - put the iothreads just after locks. On the client side, just before the protocol...</blockquote><div><br>io-threads is not needed  on top of protocol/client.<br> <br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
A lot of questions, maybe you can just supply me with a best practice when using the non-blocking translator ?<br>
<br>
Best regards,<br>
<br>
Thomas.<br>
<br>
<br>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org" target="_blank">Gluster-devel@nongnu.org</a><br>
<a href="http://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">http://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Raghavendra G<br><br>