Re: [PATCH 2/2] locking/osq: Drop the overload of osq_lock()

2016-06-26 Thread panxinhui
> 在 2016年6月26日,18:41,Pan Xinhui 写道: > > An over-committed guest with more vCPUs than pCPUs has a heavy overload > in osq_lock(). > > This is because vCPU A hold the osq lock and yield out, vCPU B wait > per_cpu node->locked to be set. IOW, vCPU B wait vCPU A to run and > unlock the osq lock. >

[PATCH 2/2] locking/osq: Drop the overload of osq_lock()

2016-06-25 Thread Pan Xinhui
An over-committed guest with more vCPUs than pCPUs has a heavy overload in osq_lock(). This is because vCPU A hold the osq lock and yield out, vCPU B wait per_cpu node->locked to be set. IOW, vCPU B wait vCPU A to run and unlock the osq lock. So lets also use neet_yield_to() to detect if we need