Re: Postgress is taking lot of CPU on our embedded hardware.

From: Claudio Freire <klaussfreire(at)gmail(dot)com>
To: Jayashankar K B <Jayashankar(dot)KB(at)lnties(dot)com>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Andy Colson <andy(at)squeakycode(dot)net>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Postgress is taking lot of CPU on our embedded hardware.
Date: 2012-01-28 19:37:14
Message-ID: CAGTBQpZSNqR+__+aEFmrtTK22O39cCDL0N6SNBDkiZ-baN0rHQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Sat, Jan 28, 2012 at 2:21 PM, Jayashankar K B
<Jayashankar(dot)KB(at)lnties(dot)com> wrote:
>
> ./configure CC=/opt/freescale/usr/local/gcc-4.4.54-eglibc-2.10.54/m68k-linux/bin/m68k-linux-gnu-gcc CFLAGS='-fmessage-length=0 -fpack-struct -mcpu=54418 -msoft-float' --host=i686-pc-linux-gnu --target=m68k-linux-gnu --prefix=/home/jayashankar/databases/Postgre_8.4.9_relocatable/
>
> Any other special flags that could be of help to us?

Well, it's a tough issue, because you'll have to test every change to
see if it really makes a difference or not.
But you might try --disable-float8-byval, --disable-spinlocks. On the
compiler front (CFLAGS), you should have -mtune=54418 (or perhaps
-mtune=cfv4) (-march and -mcpu don't imply -mtune), and even perhaps
-O2 or -O3.

I also see you're specifying -msoft-float. So that's probably your
problem, any floating point arithmetic you're doing is killing you.
But without access to the software in order to change the data types,
you're out of luck in that department.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Mark Kirkwood 2012-01-28 23:58:04 Re: Postgress is taking lot of CPU on our embedded hardware.
Previous Message Jeff Janes 2012-01-28 18:16:27 Re: Postgress is taking lot of CPU on our embedded hardware.