public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] Remove rwsem limitation of 32k waiters
Date: Mon, 22 Aug 2005 19:29:48 +0000	[thread overview]
Message-ID: <20050822192948.GA3150@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.62.0508221215370.7633@schroedinger.engr.sgi.com>

On Mon, Aug 22, 2005 at 12:20:13PM -0700, Christoph Lameter wrote:
> We ran into the limit with the maximum number of waiters at one of our sites.
> 
> This patch increases the number of possible waiters from 2^15 to 2^31 by using
> a long for the counter in struct rw_semaphore.

Why not just change the BIAS value to 0x0010000?  As long as you don't
have more than 1024 processors trying to simultaneously acquire the same
write lock (and if you do, you have other problems ...), this won't fail
and gives you 2^19 waiters.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

  reply	other threads:[~2005-08-22 19:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-22 19:20 [PATCH] Remove rwsem limitation of 32k waiters Christoph Lameter
2005-08-22 19:29 ` Matthew Wilcox [this message]
2005-08-22 19:38 ` Christoph Lameter
2005-08-22 20:18 ` Matthew Wilcox
2005-08-22 20:26 ` Christoph Lameter
2005-08-22 20:31 ` Matthew Wilcox
2005-08-22 20:33 ` Christoph Lameter
2005-08-23  7:05 ` Chen, Kenneth W
2005-08-23 13:39 ` Christoph Lameter
2005-08-23 17:14 ` Chen, Kenneth W

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=20050822192948.GA3150@parcelfarce.linux.theplanet.co.uk \
    --to=matthew@wil.cx \
    --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