All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: David Daney <ddaney@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] MIPS: Optimize spinlocks.
Date: Wed, 24 Feb 2010 16:54:24 +0100	[thread overview]
Message-ID: <20100224155424.GA24316@linux-mips.org> (raw)
In-Reply-To: <20100224155336.GA5130@linux-mips.org>

On Wed, Feb 24, 2010 at 04:53:36PM +0100, Ralf Baechle wrote:

> And in your benchmarking patch you wrote:
> 
> > 		  spin_single	spin_multi
> > base		  106885	247941
> > spinlock_patch  75194		219465
> 
> I did some benchmarking on an IP27 (180MHz, 2 CPU, needs LL/SC workaround):
> 
> 		spin_single	spin_multi
> base		229341		3505690
> spinlock_patch	177847		3615326
> 
> So about 22% speedup for spin_single but 3% slowdown for spin_multi.
> 
> Disabling the R10k LL/SC workaround btw. gives another 23% speedup for
> spin_single and marginal 0.3% for spin_multi; the latter may well be
> statistical noise.

And I forgot the most important - patch queued for 2.6.34.

Thanks!

  Ralf

  reply	other threads:[~2010-02-24 15:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-04 19:31 [PATCH] MIPS: Optimize spinlocks David Daney
2010-02-24 15:53 ` Ralf Baechle
2010-02-24 15:54   ` Ralf Baechle [this message]
2010-02-24 16:55   ` David Daney
2010-02-25 14:15     ` Ralf Baechle
2010-02-25 17:31       ` David Daney

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=20100224155424.GA24316@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=ddaney@caviumnetworks.com \
    --cc=linux-mips@linux-mips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.