[PATCH] get 2% or more performance improved by reducing spin_lock race

2013-06-07 Thread Qinchuanyu
the wake_up_process func is included by spin_lock/unlock in vhost_work_queue, but it could be done outside the spin_lock. I have test it with kernel 3.0.27 and guest suse11-sp2 using iperf, the num as below. orignal modified thread_num tp(Gbps) vhost(%) |

Re: [PATCH] get 2% or more performance improved by reducing spin_lock race

2013-06-07 Thread Jason Wang
On 06/07/2013 03:31 PM, Qinchuanyu wrote: the wake_up_process func is included by spin_lock/unlock in vhost_work_queue, but it could be done outside the spin_lock. I have test it with kernel 3.0.27 and guest suse11-sp2 using iperf, the num as below. orignal

Re: [PATCH] get 2% or more performance improved by reducing spin_lock race

2013-06-07 Thread Sergei Shtylyov
Hello. On 07-06-2013 11:31, Qinchuanyu wrote: the wake_up_process func is included by spin_lock/unlock in vhost_work_queue, but it could be done outside the spin_lock. I have test it with kernel 3.0.27 and guest suse11-sp2 using iperf, the num as below. orignal