lkml.org 
[lkml]   [2014]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v2] powerpc ticket locks
    From
    Date
    On Tue, 2014-02-11 at 12:30 -0600, Scott Wood wrote:
    > > It's something very special to IBM pSeries: the hypervisor can assign
    > > fractions of physical CPUs to guests. Sometimes a guest with 4 quarter
    > > CPUs will be faster than 1 monoprocessor. (correct me if I'm wrong).
    > >
    > > The directed yield resolves the silly situation when holder and waiter
    > > reside on the same physical CPU, as I understand it.
    > >
    > > x86 has nothing comparable.
    >
    > How is this different from the very ordinary case of an SMP KVM guest
    > whose vcpus are not bound to host cpus, and thus you could have multiple
    > vcpus running on the same host cpu?

    It's not really ... though I can see drawbacks with the scheme as well
    and I think in KVM we should be careful to only confer if the owner
    vcpu last scheduled on the same physical cpu where the waiter is, other
    wise, there's too much chances of us bouncing things around the machine
    for minor contention cases.

    Paul, what's your policy today ?

    Cheers,
    Ben.




    \
     
     \ /
      Last update: 2014-02-11 22:01    [W:5.245 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site