[sheepdog] [RFC PATCH] sdnet: threading tx/rx process
Liu Yuan
namei.unix at gmail.com
Thu Jul 12 09:20:29 CEST 2012
On 07/12/2012 02:18 PM, HaiTing Yao wrote:
> 1, Can not guarantee I/O sequence of VDI. Many tx/rx threads, many io
> threds. If two requests r/w the same sector of same VDI, data will be
> corrupted.
>
I think we will never get two requests R/W the same sector, because VM's
kernel should(might) guarantee this, at least for linux.
> 2, I did not test the performance of this patch, but I think it will
> not be better than before. The time for creating/destroing threads may
> be longer than the time for data translation.
Yes, short threads for this tx/rx would be the performance bottleneck. I
benchmark the write performance with my patch, seems that no noticeable
boost.
Thanks
Yuan
More information about the sheepdog
mailing list