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

Liu Yuan namei.unix at gmail.com
Mon Jul 16 04:32:11 CEST 2012


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.

If you stick to your idea, I am not against it if you can solve the too
many connection problems. Well, even with this change, we can easily
modify the threaded tr/rx to adopt to the new design too.

Thanks,
Yuan




More information about the sheepdog mailing list