Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1225318
| From | Waiman Long <waiman.long@hpe.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v6 6/6] locking/pvqspinlock: Queue node adaptive spinning |
| Date | 2015-09-15 17:40 +0200 |
| Message-ID | <q90uR-xv-3@gated-at.bofh.it> (permalink) |
| References | <q7BoS-1rn-5@gated-at.bofh.it> <q7BoS-1rn-23@gated-at.bofh.it> <q8CLU-b7-19@gated-at.bofh.it> <q8HLA-7lZ-15@gated-at.bofh.it> <q8TWq-7VB-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 09/15/2015 04:38 AM, Peter Zijlstra wrote: > On Mon, Sep 14, 2015 at 03:37:32PM -0400, Waiman Long wrote: >> BTW, the queue head vCPU at pv_wait_head_and_lock() doesn't wait early, it >> will spin the full threshold as there is no way for it to figure out if the >> lock holder is running or not. > We can know its cpu id, right? Surely we should then be able to figure > out if its active or not, I'm thinking the KVM/Xen know these things > somewhere. We can make a guess of the lock holder cpu id by peeking at previous MCS node. However, if the current lock holder got the lock without entering the queue or it got the lock by stealing, we won't have information of what CPU it is. Cheers, Longman -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v6 6/6] locking/pvqspinlock: Queue node adaptive spinning Waiman Long <Waiman.Long@hpe.com> - 2015-09-11 20:40 +0200
Re: [PATCH v6 6/6] locking/pvqspinlock: Queue node adaptive spinning Peter Zijlstra <peterz@infradead.org> - 2015-09-14 16:20 +0200
Re: [PATCH v6 6/6] locking/pvqspinlock: Queue node adaptive spinning Waiman Long <waiman.long@hpe.com> - 2015-09-14 21:40 +0200
Re: [PATCH v6 6/6] locking/pvqspinlock: Queue node adaptive spinning Peter Zijlstra <peterz@infradead.org> - 2015-09-15 10:40 +0200
Re: [PATCH v6 6/6] locking/pvqspinlock: Queue node adaptive spinning Waiman Long <waiman.long@hpe.com> - 2015-09-15 17:40 +0200
Re: [PATCH v6 6/6] locking/pvqspinlock: Queue node adaptive spinning Peter Zijlstra <peterz@infradead.org> - 2015-09-16 17:10 +0200
csiph-web