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

Liu Yuan namei.unix at gmail.com
Tue Jul 17 09:44:06 CEST 2012


On 07/17/2012 03:35 PM, HaiTing Yao wrote:
> I think we can use a fixed number of RX/TX threads. We can also make
> the threads can be spawned/removed like pdflush threads. I will try to
> implement this. Let's make things simple. The threads do not have
> binding relation to connections, but one rx threds pool and one tx
> threads pool.


The simplest thread implementation is use current short threads, as
mentioned beforehand, I think we can afford one more thread creation and
destruction for every request serving.

But I am open to the more sophisticated thread implementation that aims
to be more efficient, given that provide the same scalability of short
threads, if anyone can provide numbers that we get real better
performance from it.

Thanks,
Yuan



More information about the sheepdog mailing list