9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Venkatesh Srinivas <me@endeavour.zapto.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] LOCK XADD for i386 incref/decref
Date: Wed, 28 Apr 2010 15:16:28 -0400	[thread overview]
Message-ID: <u2vf75780241004281216q98cedf0bpa528b406a4f833ff@mail.gmail.com> (raw)
In-Reply-To: <r2zf75780241004281003ua9c23045xc4831f3735477989@mail.gmail.com>

Hi,

A few months ago, I added a patch to inferno-npe to use LOCK XADD
instead of the current lock/add/unlock sequence for incref and decref:
(http://code.google.com/p/inferno-npe/source/detail?r=b83540e1e77e62a19cbd21d2eb54d43d338716a5
and http://code.google.com/p/inferno-npe/source/detail?r=82f13e6755218ecb7dec0f1392b2eb8bfe0bb2c7).
On a 2.66 GHz Core 2 Duo, we noticed a full 14% reduction in runtime
(9.6s vs 11.2s) of the thread-ring test. Similar performance gains
were noticed on a Core i7 machine, but I no longer have the numbers
handy.

Perhaps this change is interesting for Plan 9...

-- vs



       reply	other threads:[~2010-04-28 19:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <r2zf75780241004281003ua9c23045xc4831f3735477989@mail.gmail.com>
2010-04-28 19:16 ` Venkatesh Srinivas [this message]
2010-04-29  2:39   ` Federico G. Benavento
2010-04-29  2:46     ` Federico G. Benavento
2010-09-07 19:48   ` erik quanstrom

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=u2vf75780241004281216q98cedf0bpa528b406a4f833ff@mail.gmail.com \
    --to=me@endeavour.zapto.org \
    --cc=9fans@9fans.net \
    /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;
as well as URLs for NNTP newsgroup(s).