mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>
Cc: ulrich.windl@rz.uni-regensburg.de, linux-kernel@vger.kernel.org
Subject: Re: 2.4.21 on Itanium2: floating-point assist fault at ip 400000000062ada1, isr 0000020000000008
Date: Wed, 31 Mar 2004 10:06:00 -0800	[thread overview]
Message-ID: <16491.2184.253165.545651@napali.hpl.hp.com> (raw)
In-Reply-To: <200403311900.17293.vda@port.imtp.ilyichevsk.odessa.ua>

>>>>> On Wed, 31 Mar 2004 19:00:17 +0200, Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> said:

  Denis> kernel says that you have them too frequently, which probably
  Denis> impairs efficiency. It's a hint to programmer.

Close: the kernel limits the frequency of the printing to avoid
flooding the log files.  Even if you do get the faults frequently, it
won't print more than 5 warning messages every 5 seconds.  The
floating-point software-assist (fpswa) faults are harmless in the
sense that they don't affect correctness of the program, but if you do
get them _very_ frequently (which is quite rare), they could impair
performance.  FPSWA faults occur only for corner-cases of
floating-point arithmetic, such as operations on denormals or
non-finite numbers.  Many programs don't need denormal support at all
and for those, you can link the program with -ffast-math (GCC) or -ftz
(Intel compiler).  This will turn on "flush-to-zero" mode and avoid
any FPSWA-faults due to denormals (in x86-speak, this is equivalent to
the "flush-to-zero" mode that SSE offers).

If the messages appear with a frequency of less than 5 messages/5
seconds, then there is certainly no performance issue and you may want
to just turn off the messages.  This can be done via the prctl(2)
system-call or with the prctl command.  With the latter:

	prctl --fp-emul=silent

will fork a new shell and disable the printing of the FPSWA-messages
in the shell and all its children.  There is also "--unaligned=silent"
which will turn off a similar message for unaligned access emulation
done by the kernel.

	--david

  reply	other threads:[~2004-03-31 18:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-31 13:16 Ulrich Windl
2004-03-31 17:00 ` Denis Vlasenko
2004-03-31 18:06   ` David Mosberger [this message]
2004-03-31 18:23     ` Alex Williamson
2004-03-31 18:37       ` David Mosberger
2004-03-31 18:53       ` Richard B. Johnson
2004-03-31 19:10         ` David Mosberger
2004-03-31 20:13           ` Richard B. Johnson
2004-03-31 21:27             ` David Mosberger
2004-03-31 20:15   ` Helge Deller
2004-04-01  7:04   ` Ulrich Windl

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=16491.2184.253165.545651@napali.hpl.hp.com \
    --to=davidm@napali.hpl.hp.com \
    --cc=davidm@hpl.hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ulrich.windl@rz.uni-regensburg.de \
    --cc=vda@port.imtp.ilyichevsk.odessa.ua \
    /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

all inboxes | Powered by JetHome®