Re: Postmaster using only 4-5% CPU

From: Guillaume Cottenceau <gc(at)mnc(dot)ch>
To: Edoardo Serra <osdevel(at)webrainstorm(dot)it>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Postmaster using only 4-5% CPU
Date: 2006-03-21 14:34:48
Message-ID: 87slpbkgs7.fsf@meuh.mnc.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Edoardo Serra <osdevel 'at' webrainstorm.it> writes:

> Hi all,
> I'm having a very strange performance problems on a fresh
> install of postgres 8.1.3
> I've just installed it with default option and --enable-thread-safety
> without tweaking config files yet.
>
> The import of a small SQL files into the DB (6 tables with 166.500
> total records, INSERT syntax)
> took me more than 18 minutes as shown below (output of "time ./psql
> benchmarks < dump.sql")
>
> real 18m33.062s
> user 0m10.386s
> sys 0m7.707s
>
> The server is an
> - Intel(R) Xeon(TM) CPU 3.60GHz - 1MB L2
> - 1 GB RAM
> - 2x HDD SCSI U320 RAID 1 Hardware (HP 6i controller)

I have seen similar very low performance for INSERTs, although
using SCSI 320 disk, controlled by LSI Logic 53C1030 (using
Fusion MPT SCSI Host driver 3.01.18 on Linux 2.6.11). Something
like tens of INSERTs per second into a small table, no more.
"iostat" reports very large figures in the "await" field compared
to other servers using raid1 controllers, that's my best guess,
but I was unable to find why and how to fix (and the vendor has
been very helpless until now). I'm wondering if we don't have an
issue with the driver but have no more clue.

--
Guillaume Cottenceau

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Luke Lonergan 2006-03-21 15:25:07 Re: Best OS & Configuration for Dual Xeon w/4GB &
Previous Message Merlin Moncure 2006-03-21 14:12:08 Re: update == delete + insert?