[sheepdog] [RFC PATCH] sdnet: threading tx/rx process

Christoph Hellwig hch at infradead.org
Mon Jul 16 08:09:32 CEST 2012


On Mon, Jul 16, 2012 at 10:32:11AM +0800, Liu Yuan wrote:
> On 07/14/2012 03:44 PM, Christoph Hellwig wrote:
> > True.  I still like the idea of doing the epoll in the actual threads
> > instead of doing constant context switching and/or thread creation and
> > destruction.
> 
> I am using threaded tr/tx to overlap requests, constant context has
> nothing to do with threaded tx/rx, it is the issue of threading
> implementation. We can have static threads pool to heal this, but, I
> don't think context switching will be that costy because threads will do
> disk IO.

The threads doing the non-blocking network I/O won't do disk I/O, or do
I misread the code?




More information about the sheepdog mailing list