From: Zoltan Menyhart <Zoltan.Menyhart_AT_bull.net@nospam.org>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Who owns those locks ?
Date: Tue, 08 Jun 2004 10:03:20 +0200 [thread overview]
Message-ID: <40C572C8.20B13640@nospam.org> (raw)
In-Reply-To: 200406070906.54132.bjorn.helgaas@hp.com
Bjorn Helgaas wrote:
>
> There are a couple issues I was thinking of when
> I wrote "clean it up, pull the bits together...":
>
> 1) Tony Luck's question about what happens when
> "shr.u r30 = r13, 12" yields zero in the 32-bit
> lock value. I'm not the 2.6 maintainer, but I'd
> sure like to see some solution for this. It would
> be a nightmare to debug a system where one random
> task didn't release locks correctly. Since other
> arches use a trick like this, I'm hoping they've
> figured out something we can copy (I haven't looked).
Sure, I did not want to make an error like saying:
"640 K ought to be enough for everyone".
I'm afraid, there is no perfect solution.
- We do not want to change the lock size to 64 bits, do we ?
-- Couple of new alignment problems.
- You keep my code, it is correct for a memory size up to 16 Tbytes.
- You shift by PAGE_SHIFT, rather than by 12 (using page size of
16 Kbytes) => up to 64 Tbytes.
-- Not that much human readable lock values.
- You move to PAGE_SIZE = 64 K, you get human readable lock values
up to 256 Tbytes.
- You could store the "PID | miraculous bit" (to avoid PID = 0
problem).
-- Somewhat longer code.
I expect the main stream IA64 kernel to move to PAGE_SIZE = 64 K by
the time there will be machines with more than 16 Tbytes of memory
(as the processors have got just a very limited number of
translation look aside buffer entries, and the ever growing
application / memory sizes result in higher TLB miss rate unless the
page size increases).
Regards,
Zoltán
next prev parent reply other threads:[~2004-06-08 8:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-12 9:56 Who owns those locks ? Zoltan Menyhart
2004-05-13 18:43 ` Anton Blanchard
2004-06-03 17:39 ` Bjorn Helgaas
2004-06-07 8:58 ` Zoltan Menyhart
2004-06-07 15:06 ` Bjorn Helgaas
2004-06-08 8:03 ` Zoltan Menyhart [this message]
2004-06-08 15:05 ` Bjorn Helgaas
2004-06-08 15:38 ` Zoltan Menyhart
-- strict thread matches above, loose matches on Subject: below --
2004-05-12 10:25 Luck, Tony
2004-05-12 11:06 ` Zoltan Menyhart
2004-05-12 11:43 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=40C572C8.20B13640@nospam.org \
--to=zoltan.menyhart_at_bull.net@nospam.org \
--cc=Zoltan.Menyhart@bull.net \
--cc=bjorn.helgaas@hp.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@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