pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgresql on itanium server
7+ messages / 5 participants
[nested] [flat]
* Postgresql on itanium server
@ 2011-06-09 09:20 muthu krishnan <muthu.krishnan.linux@gmail.com>
2011-06-09 09:30 ` Re: Postgresql on itanium server Jochen Erwied <jochen@pgsql-performance.erwied.eu>
0 siblings, 1 reply; 7+ messages in thread
From: muthu krishnan @ 2011-06-09 09:20 UTC (permalink / raw)
To: pgsql-performance
Hi,
We have installed postgresql on itanium server (HP rx7640), only on this
server we are getting the following error in /var/log/messages and also the
postgres performance is very slow.
Error:
*Jun 9 04:45:42 kernel: postmaster(31965): floating-point assist fault at
ip 40000000003dad71, isr 0000020000000008*
Server details:
Database - Postgresql 8.3.9
OS - SUSE Linux 11 SP1
Itanium CPU ( ia64 bit architecture)
kindly let me know your valuable suggestions to resolve this issue.
Regards,
Muthu
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Postgresql on itanium server
2011-06-09 09:20 Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
@ 2011-06-09 09:30 ` Jochen Erwied <jochen@pgsql-performance.erwied.eu>
2011-06-09 10:03 ` Re: Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
0 siblings, 1 reply; 7+ messages in thread
From: Jochen Erwied @ 2011-06-09 09:30 UTC (permalink / raw)
To: muthu krishnan <muthu.krishnan.linux@gmail.com>; +Cc: pgsql-performance; pgsql-performance
Thursday, June 9, 2011, 11:20:33 AM you wrote:
> *Jun 9 04:45:42 kernel: postmaster(31965): floating-point assist fault at
> ip 40000000003dad71, isr 0000020000000008*
A quick search for 'floating-point assist fault' reveals this article:
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=62080055ab...
In short: The message is harmless, and should not have any influence on
postgres performance, except if you're getting millions of them...
--
Jochen Erwied | home: jochen@erwied.eu +49-208-38800-18, FAX: -19
Sauerbruchstr. 17 | work: joe@mbs-software.de +49-2151-7294-24, FAX: -50
D-45470 Muelheim | mobile: jochen.erwied@vodafone.de +49-173-5404164
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Postgresql on itanium server
2011-06-09 09:20 Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
2011-06-09 09:30 ` Re: Postgresql on itanium server Jochen Erwied <jochen@pgsql-performance.erwied.eu>
@ 2011-06-09 10:03 ` muthu krishnan <muthu.krishnan.linux@gmail.com>
2011-06-09 10:45 ` Re: Postgresql on itanium server Marti Raudsepp <marti@juffo.org>
2011-06-09 10:46 ` Re: Postgresql on itanium server Jochen Erwied <jochen@pgsql-performance.erwied.eu>
0 siblings, 2 replies; 7+ messages in thread
From: muthu krishnan @ 2011-06-09 10:03 UTC (permalink / raw)
To: Jochen Erwied <jochen@pgsql-performance.erwied.eu>; +Cc: pgsql-performance
Dear Jochen,
Thank you for suggesting the valuable URL, we are getting 3 "floating point
assist fault" error for every second, will it impact the performance for
postgresql?
Is there any option to turn on "flush to zero mode" in itanium cpu while
compiling postgresql from source?
Thank you for your valuable time to read this.
Regards,
Muthu
On Thu, Jun 9, 2011 at 3:00 PM, Jochen Erwied <
jochen@pgsql-performance.erwied.eu> wrote:
> Thursday, June 9, 2011, 11:20:33 AM you wrote:
>
> > *Jun 9 04:45:42 kernel: postmaster(31965): floating-point assist fault
> at
> > ip 40000000003dad71, isr 0000020000000008*
>
> A quick search for 'floating-point assist fault' reveals this article:
>
>
> http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=62080055ab...
>
> In short: The message is harmless, and should not have any influence on
> postgres performance, except if you're getting millions of them...
>
> --
> Jochen Erwied | home: jochen@erwied.eu +49-208-38800-18, FAX:
> -19
> Sauerbruchstr. 17 | work: joe@mbs-software.de +49-2151-7294-24, FAX:
> -50
> D-45470 Muelheim | mobile: jochen.erwied@vodafone.de
> +49-173-5404164
>
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Postgresql on itanium server
2011-06-09 09:20 Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
2011-06-09 09:30 ` Re: Postgresql on itanium server Jochen Erwied <jochen@pgsql-performance.erwied.eu>
2011-06-09 10:03 ` Re: Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
@ 2011-06-09 10:45 ` Marti Raudsepp <marti@juffo.org>
2011-06-09 10:53 ` Re: Postgresql on itanium server Jochen Erwied <jochen@erwied.eu>
1 sibling, 1 reply; 7+ messages in thread
From: Marti Raudsepp @ 2011-06-09 10:45 UTC (permalink / raw)
To: muthu krishnan <muthu.krishnan.linux@gmail.com>; +Cc: Jochen Erwied <jochen@pgsql-performance.erwied.eu>; pgsql-performance
On Thu, Jun 9, 2011 at 13:03, muthu krishnan
<muthu.krishnan.linux@gmail.com> wrote:
> Thank you for suggesting the valuable URL, we are getting 3 "floating point
> assist fault" error for every second, will it impact the performance for
> postgresql?
Probably.
The kernel throttles these messages, so you're probably performing
many more of these calculations than the number of messages.
> Is there any option to turn on "flush to zero mode" in itanium cpu while
> compiling postgresql from source?
As the URL mentions, you can build with CFLAGS=-ffast-math, that
should work for PostgreSQL too.
But since you know you're operating with denormal numbers, you WILL
get different results to queries. Whether that's a problem for you
depends on your application. You could start getting division by zero
errors for instance.
Regards,
Marti
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Postgresql on itanium server
2011-06-09 09:20 Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
2011-06-09 09:30 ` Re: Postgresql on itanium server Jochen Erwied <jochen@pgsql-performance.erwied.eu>
2011-06-09 10:03 ` Re: Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
2011-06-09 10:45 ` Re: Postgresql on itanium server Marti Raudsepp <marti@juffo.org>
@ 2011-06-09 10:53 ` Jochen Erwied <jochen@erwied.eu>
2011-06-09 16:20 ` Re: Postgresql on itanium server Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 7+ messages in thread
From: Jochen Erwied @ 2011-06-09 10:53 UTC (permalink / raw)
To: Marti Raudsepp <marti@juffo.org>; +Cc: muthu krishnan <muthu.krishnan.linux@gmail.com>; Jochen Erwied <jochen@pgsql-performance.erwied.eu>; pgsql-performance
Thursday, June 9, 2011, 12:45:06 PM you wrote:
> As the URL mentions, you can build with CFLAGS=-ffast-math, that
> should work for PostgreSQL too.
I just tried this with the source for 9.0.4, at least with this version the
build will not complete since there is a check in
src/backend/utils/adt/date.c throwing an error if FAST_MATH is active.
--
Jochen Erwied | home: jochen@erwied.eu +49-208-38800-18, FAX: -19
Sauerbruchstr. 17 | work: joe@mbs-software.de +49-2151-7294-24, FAX: -50
D-45470 Muelheim | mobile: jochen.erwied@vodafone.de +49-173-5404164
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Postgresql on itanium server
2011-06-09 09:20 Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
2011-06-09 09:30 ` Re: Postgresql on itanium server Jochen Erwied <jochen@pgsql-performance.erwied.eu>
2011-06-09 10:03 ` Re: Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
2011-06-09 10:45 ` Re: Postgresql on itanium server Marti Raudsepp <marti@juffo.org>
2011-06-09 10:53 ` Re: Postgresql on itanium server Jochen Erwied <jochen@erwied.eu>
@ 2011-06-09 16:20 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2011-06-09 16:20 UTC (permalink / raw)
To: Jochen Erwied <jochen@erwied.eu>; +Cc: Marti Raudsepp <marti@juffo.org>; muthu krishnan <muthu.krishnan.linux@gmail.com>; Jochen Erwied <jochen@pgsql-performance.erwied.eu>; pgsql-performance
Jochen Erwied <jochen@erwied.eu> writes:
> Thursday, June 9, 2011, 12:45:06 PM you wrote:
>> As the URL mentions, you can build with CFLAGS=-ffast-math, that
>> should work for PostgreSQL too.
> I just tried this with the source for 9.0.4, at least with this version the
> build will not complete since there is a check in
> src/backend/utils/adt/date.c throwing an error if FAST_MATH is active.
Yeah. See
http://archives.postgresql.org/pgsql-bugs/2002-09/msg00169.php
and following discussions, which eventually led to adding the #error.
Now this was all done in regards to PG's original floating-point
timestamp implementation. It's possible that in an integer-datetimes
build (which is now the default) we don't need to forbid -ffast-math to
prevent strange datetime results. But nobody's done the work to prove
that, because there isn't any particularly good reason to enable
-ffast-math in a database in the first place. (Other than coping with
brain-dead platforms, I guess.)
However ... I'm not sure I believe that this is related to the OP's
problem anyway. Postgres doesn't normally work with any denormalized
numbers, so the messages he's seeing probably stem from some other sort
of shortcoming in the hardware FP support. It would be interesting to
see specific examples of SQL operations that trigger the kernel message.
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Postgresql on itanium server
2011-06-09 09:20 Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
2011-06-09 09:30 ` Re: Postgresql on itanium server Jochen Erwied <jochen@pgsql-performance.erwied.eu>
2011-06-09 10:03 ` Re: Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
@ 2011-06-09 10:46 ` Jochen Erwied <jochen@pgsql-performance.erwied.eu>
1 sibling, 0 replies; 7+ messages in thread
From: Jochen Erwied @ 2011-06-09 10:46 UTC (permalink / raw)
To: muthu krishnan <muthu.krishnan.linux@gmail.com>; +Cc: pgsql-performance; pgsql-performance
Thursday, June 9, 2011, 12:03:12 PM you wrote:
> Is there any option to turn on "flush to zero mode" in itanium cpu while
> compiling postgresql from source?
configure will complain when specifying './configure CFLAGS=-ffast-math'.
make won't, so a 'make CFLAGS='-O2 -Wall -ffast-math' after doing a normal
'./configure' should do the trick.
But maybe one of the experts should explain if this will in fact work...
--
Jochen Erwied | home: jochen@erwied.eu +49-208-38800-18, FAX: -19
Sauerbruchstr. 17 | work: joe@mbs-software.de +49-2151-7294-24, FAX: -50
D-45470 Muelheim | mobile: jochen.erwied@vodafone.de +49-173-5404164
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2011-06-09 16:20 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-06-09 09:20 Postgresql on itanium server muthu krishnan <muthu.krishnan.linux@gmail.com>
2011-06-09 09:30 ` Jochen Erwied <jochen@pgsql-performance.erwied.eu>
2011-06-09 10:03 ` muthu krishnan <muthu.krishnan.linux@gmail.com>
2011-06-09 10:45 ` Marti Raudsepp <marti@juffo.org>
2011-06-09 10:53 ` Jochen Erwied <jochen@erwied.eu>
2011-06-09 16:20 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-06-09 10:46 ` Jochen Erwied <jochen@pgsql-performance.erwied.eu>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox