From: | Jayashankar K B <Jayashankar(dot)KB(at)lnties(dot)com> |
---|---|
To: | Claudio Freire <klaussfreire(at)gmail(dot)com>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
Cc: | 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 17:21:18 |
Message-ID: | 1365276B7BDA4C40A519F0B4088230B3096F3D78@POCITMSEXMB03.LntUniverse.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Hi,
I downloaded the source code and cross compiled it into a relocatable package and copied it to the device.
LTIB was the cross-compile tool chain that was used. Controller is coldfire MCF54418 CPU.
Here is the configure options I used.
./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?
Thanks and Regards
Jayashankar
-----Original Message-----
From: Claudio Freire [mailto:klaussfreire(at)gmail(dot)com]
Sent: Saturday, January 28, 2012 7:54 AM
To: Heikki Linnakangas
Cc: Jayashankar K B; Andy Colson; pgsql-performance(at)postgresql(dot)org
Subject: Re: [PERFORM] Postgress is taking lot of CPU on our embedded hardware.
On Fri, Jan 27, 2012 at 4:56 PM, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
> I don't think there's anything particular in postgres that would make
> it a poor choice on a small system, as far as CPU usage is concerned
> anyway. But inserting rows in a database is certainly slower than,
> say, writing them into a flat file.
How did you install postgres?
Did you build it?
Which configure flags did you use?
Exactly which m68k cpu is it? (it does matter)
For instance...
wiki: "However, a significant difference is that the 68060 FPU is not pipelined and is therefore up to three times slower than the Pentium in floating point applications"
This means, if you don't configure the build correctly, you will get really sub-optimal code. Modern versions are optimized for modern cpus.
Of utmost importance, I would imagine, is the binary format chosen for pg data types (floating types especially, if you use them).
Larsen & Toubro Limited
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
From | Date | Subject | |
---|---|---|---|
Next Message | Deron | 2012-01-28 17:56:54 | Re: Postgress is taking lot of CPU on our embedded hardware. |
Previous Message | Jayashankar K B | 2012-01-28 17:11:53 | Re: Postgress is taking lot of CPU on our embedded hardware. |