[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Linux spin lock enhancement on xen
On Tue, 17 Aug 2010 08:34:49 -0600 "Ky Srinivasan" <ksrinivasan@xxxxxxxxxx> wrote: .. > While I agree that a directed yield is a useful construct, I am not > sure how this protocol would deal with ticket spin locks as you would > want to implement some form of priority inheritance - if the vcpu you > are yielding to is currently blocked on another (ticket) spin lock, > you would want to yield to the owner of that other spin lock. > Clearly, this dependency information is only available in the guest > and that is where we would need to implement this logic. I think > Jan's "enlightened" spin locks implemented this kind of logic. Frankly, I'm opposed to ticket spin locks. IMO, starvation and fairness are schedular problems and not of spin locks. If a vcpu has higher priority, it is for a reason, and I'd like it to get prioritized. Imagine a cluster stack in a 128 vcpu environment, the thread doing heartbeat definitely needs the prirority it deserves. Having said that, my proposal can be enhanced to take into consideration ticket spin locks by having unlock make sure next vcpu in line has temporary priority boost. thanks, Mukesh _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |