From: Kyle McMartin <kyle@mcmartin.ca>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] User space locks -- what's wrong
Date: Mon, 5 Jun 2006 10:40:33 -0400 [thread overview]
Message-ID: <20060605144033.GD1335@skunkworks.cabal.ca> (raw)
In-Reply-To: <200606042355.k54Ntw0R026812@hiauly1.hia.nrc.ca>
On Sun, Jun 04, 2006 at 07:55:58PM -0400, John David Anglin wrote:
> I'm about to throw the following change to the garbage heap since it
> doesn't work as expected, particularly with SMP kernels.
>
> The problem is I still see occasional libstdc++ and libjava testsuite
> failures in pthread process intensive tests. In particular, I'm getting
> timeouts on tests that didn't timeout before.
>
I don't suppose we could test this using locks based on Carlos'
light-weight-syscalls? This would have the added
> The enclosed change is based on ideas presented in the paper,
> "Implementing Spinlocks on the Intel Itanium Architecture and PA-RISC".
>
The changes look fine to me.
> The main issue that the change tries to address is that spinning
> indefinitely in user space on a UP kernel just burns cycles. So, the
> change is to spin awhile and then sleep. This seemed to work with
> the test application in the paper, but in practice it seems to cause
> more test failures that just spinning, particularly on SMP kernels.
> I suspect that on SMP kernels we sometimes end up with all threads
> sleeping.
>
That's absolutely bizarre. Can you include steps for us toolchain
newbies to reproduce this? I'd love to try and trace down why this is
occuring. It could be a problem indicative of something very funky
occuring in our kernel.
> I've tried various sleep routines including sched_yield, and other
> optimizations, but they don't seem to make a difference. The trick
> to dirty the cacheline presented in the paper didn't help performance
> as measured by the Appendix F program. I also didn't see
> and difference in performance using the ",co" completer. Possibly,
> this is because I only tested on coherent PA 2.0 machines.
>
I suspect a majority of this is because we aren't running
optimally as it is. I suspect if we were performing as well as HPUX
the minor details would make more of a difference.
Cheers,
Kyle
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
next prev parent reply other threads:[~2006-06-05 14:40 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-04 23:55 [parisc-linux] User space locks -- what's wrong John David Anglin
2006-06-05 14:40 ` Kyle McMartin [this message]
2006-06-05 16:49 ` John David Anglin
2006-06-05 17:40 ` James Bottomley
2006-06-07 1:30 ` Carlos O'Donell
2006-06-07 4:09 ` John David Anglin
2006-06-07 12:25 ` Michael S. Zick
2006-06-10 17:41 ` Michael S. Zick
2006-06-11 21:56 ` John David Anglin
2006-06-11 23:20 ` Carlos O'Donell
2006-06-11 23:57 ` John David Anglin
2006-06-12 0:34 ` Carlos O'Donell
2006-06-12 0:54 ` John David Anglin
2006-06-12 2:27 ` Carlos O'Donell
2006-06-12 1:55 ` John David Anglin
2006-06-12 3:09 ` Carlos O'Donell
[not found] <no.id>
2006-06-09 0:56 ` John David Anglin
[not found] <119aab440606111942o1be5e11bw6ede4fa941f01778@mail.gmail.com>
2006-06-12 3:03 ` John David Anglin
2006-06-12 3:13 ` Carlos O'Donell
2006-06-12 3:19 ` John David Anglin
2006-06-12 6:01 ` Grant Grundler
2006-06-12 15:31 ` Carlos O'Donell
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=20060605144033.GD1335@skunkworks.cabal.ca \
--to=kyle@mcmartin.ca \
--cc=dave@hiauly1.hia.nrc.ca \
--cc=parisc-linux@lists.parisc-linux.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