public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: linux-ia64@vger.kernel.org
Subject: Re: [RFC] Convert ia64 spinlocks to use "tickets"
Date: Sat, 12 Sep 2009 21:23:52 +0000	[thread overview]
Message-ID: <87ab0zhn6f.fsf@basil.nowhere.org> (raw)
In-Reply-To: <4aa9e16649286264@agluck-desktop.sc.intel.com>

"Luck, Tony" <tony.luck@intel.com> writes:
>
> But the patch went in because the ticket locks were only very slightly
> slower in the uncontended case, and they did solve a real problem
> for a common two socket platform where the lack of fairness allowed the

It was a eight socket platform. I'm not aware of any unfair two socket
platforms.

> cores on one socket to freeze out the cores on the other socket for
> extremely long periods.

Very long as a minute in extreme corner cases. So the motivation was more
to limit the worst case than to tune a common case.

BTW the main problem of ticket locks is that they tend to cooperate
badly with hypervisors, they can run into bad convoying issues with
the vcpu scheduler. So you probably should have a way to turn them
off.

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only.

  parent reply	other threads:[~2009-09-12 21:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-11  5:34 [RFC] Convert ia64 spinlocks to use "tickets" Luck, Tony
2009-09-11 16:47 ` Rick Jones
2009-09-11 22:22 ` Luck, Tony
2009-09-12  7:59 ` Robin Holt
2009-09-12 21:23 ` Andi Kleen [this message]
2009-09-12 23:24 ` Luck, Tony
2009-09-12 23:39 ` Luck, Tony

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ab0zhn6f.fsf@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox