From: Carsten Langgaard <carstenl@mips.com>
To: Ralf Baechle <ralf@oss.sgi.com>
Cc: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>,
wgowcher@yahoo.com, linux-mips@oss.sgi.com
Subject: Re: Benchmark performance
Date: Thu, 16 Aug 2001 13:07:28 +0200 [thread overview]
Message-ID: <3B7BA970.56192BB8@mips.com> (raw)
In-Reply-To: 20010816111803.A17469@bacchus.dhis.org
Ralf Baechle wrote:
> On Thu, Aug 16, 2001 at 12:56:52PM +0900, Atsushi Nemoto wrote:
>
> > >>>>> On Mon, 13 Aug 2001 10:34:46 -0700 (PDT), Wayne Gowcher <wgowcher@yahoo.com> said:
> > wgowcher> a 23 % reduction in the Floating Point Index benchmark
> >
> > Current CVS kernel uses FPU emulator unconditionally. If one floating
> > point intruction causes a 'Unimplemented' exception (denormalized
> > result, etc.) following floating point instructions are also handle by
> > FPU emulator (not only the instruction which raise the exception).
> >
> > I do not know this is really desired behavior, but here is a patch to
> > change this. If Unimplemented exception had been occured during the
> > benchmark, aplying this patch may result better performance.
>
> This is a know problem with the emulator. It may be used to keep the
> emulator in kernel for a long time or even maliciously to keep the
> CPU in the kernel for an unbounded time.
>
> Here's my suggested fix:
>
> Index: arch/mips/math-emu/cp1emu.c
> ===================================================================
> RCS file: /home/pub/cvs/linux/arch/mips/math-emu/cp1emu.c,v
> retrieving revision 1.7
> diff -u -r1.7 cp1emu.c
> --- arch/mips/math-emu/cp1emu.c 2001/08/02 21:55:26 1.7
> +++ arch/mips/math-emu/cp1emu.c 2001/08/16 09:06:55
> @@ -1672,6 +1672,9 @@
>
> oldepc = xcp->cp0_epc;
> do {
> + if (current->need_resched)
> + break;
> +
> prevepc = xcp->cp0_epc;
> insn = mips_get_word(xcp, REG_TO_VA(xcp->cp0_epc), &err);
> if (err) {
>
> Ralf
What is probably needed too, but I still think we need the check for real FPU, so we only
emulate one instruction at a time, if we got a real FPU.
--
_ _ ____ ___ Carsten Langgaard Mailto:carstenl@mips.com
|\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527
| \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555
TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556
Denmark http://www.mips.com
next prev parent reply other threads:[~2001-08-16 11:09 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-09 15:35 Problem with PMAD-AA / DECStation 5000/200 Armin F. Gnosa
2001-08-09 15:35 ` Armin F. Gnosa
2001-08-09 15:51 ` Florian Lohoff
2001-08-09 16:20 ` Jan-Benedict Glaw
2001-08-09 16:22 ` Martin Schulze
2001-08-09 16:35 ` Jan-Benedict Glaw
2001-08-10 9:00 ` Maciej W. Rozycki
2001-08-10 9:10 ` Jan-Benedict Glaw
2001-08-10 9:11 ` Maciej W. Rozycki
2001-08-10 13:32 ` Armin F. Gnosa
2001-08-10 13:32 ` Armin F. Gnosa
2001-08-13 11:30 ` Maciej W. Rozycki
2001-08-10 0:29 ` Problems mounting RedHat 7.0 or 7.1 from oss.sgi site Wayne Gowcher
2001-08-10 4:55 ` H . J . Lu
2001-08-13 17:34 ` Benchmark performance Wayne Gowcher
2001-08-13 17:34 ` Wayne Gowcher
2001-08-14 7:51 ` Ralf Baechle
2001-08-14 15:29 ` Wayne Gowcher
2001-08-16 3:56 ` Atsushi Nemoto
2001-08-16 7:43 ` Carsten Langgaard
2001-08-16 9:11 ` Kevin D. Kissell
2001-08-16 9:11 ` Kevin D. Kissell
2001-08-16 11:06 ` Ralf Baechle
2001-08-16 11:15 ` Atsushi Nemoto
2001-08-16 9:18 ` Ralf Baechle
2001-08-16 11:07 ` Carsten Langgaard [this message]
2001-08-16 11:14 ` Ralf Baechle
2001-08-24 9:06 ` Atsushi Nemoto
2001-08-24 18:27 ` Ralf Baechle
2001-08-10 8:54 ` Problem with PMAD-AA / DECStation 5000/200 Armin F. Gnosa
2001-08-10 8:54 ` Armin F. Gnosa
2001-08-10 10:33 ` Florian Lohoff
2001-08-12 20:32 ` Ralf Baechle
2001-08-12 20:40 ` Armin F. Gnosa
2001-08-12 20:40 ` Armin F. Gnosa
2001-08-12 20:41 ` Jan-Benedict Glaw
2001-08-13 9:58 ` Ralf Baechle
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=3B7BA970.56192BB8@mips.com \
--to=carstenl@mips.com \
--cc=linux-mips@oss.sgi.com \
--cc=nemoto@toshiba-tops.co.jp \
--cc=ralf@oss.sgi.com \
--cc=wgowcher@yahoo.com \
/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