linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Hollis Blanchard <hollisb@us.ibm.com>
Cc: Mikolaj Krzewicki <mkrzewicki@lycos.nl>,
	linuxppc-dev list <linuxppc-dev@lists.linuxppc.org>
Subject: Re: benh performance problem
Date: Sun, 08 Feb 2004 08:16:43 +1100	[thread overview]
Message-ID: <1076188588.27930.57.camel@gaston> (raw)
In-Reply-To: <A3B443AA-58B8-11D8-884B-000A95A0560C@us.ibm.com>


> pbbuttons is loading the machine? What about all those extra
> decrementer ticks? I assume benchmarks showed no performance
> degradation on some class of ppc32; what was the slowest system tested?
> For that matter, couldn't this hurt 4xx, 8xx(x), as well?

Heh, well, I did see any obvious degradation on my powerbook but
I didn't benchmark much actually. Maybe I should, or make kernel HZ
a config option.

> Perhaps HZ should be user-configurable? Although that doesn't help
> distributions who'd like one kernel to work everywhere... How does
> Linux handle increased HZ on old i386 anyways?

I don't know :)

> > Not sure if I can fix any of this at this point without doing a
> > major rewrite of the exception handling code, I suspect those
> > CPUs don't like running in real mode and our exception handling
> > happens mostly in that mode in ppc32...
>
> I didn't realize CPUs go slower in real mode..?

It is the case with 970's and I think with IBM G3s, I'm not sure
about Motorola G4s and other CPUs. In real mode, all memory is
treated like it has the G bit set, preventing speculation (among
others, I suppose prefetch gets killed too).

I's very visible on lmbench with a G5: The null syscall overhead
of the ppc64 kernel is lower than the one of the ppc32 kernel
despite actually running more code and saving more & bigger registers.

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2004-02-07 21:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-03 17:58 benh performance problem Mikolaj Krzewicki
2004-02-03 22:24 ` Benjamin Herrenschmidt
2004-02-05 21:50   ` Mikolaj Krzewicki
     [not found]   ` <40221664.70208@lycos.nl>
2004-02-06  5:14     ` Benjamin Herrenschmidt
2004-02-06 15:25       ` Hollis Blanchard
2004-02-07 21:16         ` Benjamin Herrenschmidt [this message]
2004-02-07  9:17   ` Gabriel Paubert

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=1076188588.27930.57.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=hollisb@us.ibm.com \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=mkrzewicki@lycos.nl \
    /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).