Re: [PATCHES] COPY FROM performance improvements

From: "Luke Lonergan" <llonergan(at)greenplum(dot)com>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, "Mark Wong" <markw(at)osdl(dot)org>
Cc: "Patrick Welche" <prlw1(at)newn(dot)cam(dot)ac(dot)uk>, pgsql-performance(at)postgresql(dot)org, maryedie(at)osdl(dot)org
Subject: Re: [PATCHES] COPY FROM performance improvements
Date: 2005-07-29 04:03:20
Message-ID: BF0EF898.A360%llonergan@greenplum.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches pgsql-performance

>>> Can you post the "time dd if=/dev/zero of=bigfile bs=8k count=500000"
>>> results? Also do the reverse (read the file) with "time dd if=bigfile
>>> of=/dev/null bs=8k".
>
> I didn't see this come across before... here ya go:
>
> time dd if=/dev/zero of=bigfile bs=8k count=500000
>
> 500000+0 records in
> 500000+0 records out
>
> real 1m52.738s
> user 0m0.310s
> sys 0m36.590s

So, that's 35MB/s, or 1/2 of a single disk drive.

> time dd if=bigfile of=/dev/null bs=8k
>
> time dd if=bigfile of=/dev/null bs=8k
> 500000+0 records in
> 500000+0 records out
>
> real 4m38.742s
> user 0m0.320s
> sys 0m27.870s

And that's 14MB/s, or < 1/4 of a single disk drive.

> FYI on your hardware raid comment... I easily get 50 megs a second on my
> 3ware controllers and faster on my LSI SATA controllers.

Then you are almost getting one disk worth of bandwidth.

By comparison, we get this using Linux software RAID on Xeon or Opteron:

$ time dd if=/dev/zero of=bigfile bs=8k count=500000
500000+0 records in
500000+0 records out

real 0m26.927s
user 0m0.074s
sys 0m8.769s

$ time dd if=bigfile of=/dev/null bs=8k
500000+0 records in
500000+0 records out

real 0m28.190s
user 0m0.039s
sys 0m8.349s

with less CPU usage than HW SCSI RAID controllers.

- Luke

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Luke Lonergan 2005-07-29 04:07:12 Re: [PATCHES] COPY FROM performance improvements
Previous Message Michael Fuhr 2005-07-29 03:53:04 Re: BUG #1794: inheritance removes permissions from the parent table

Browse pgsql-performance by date

  From Date Subject
Next Message Gnanavel S 2005-07-29 04:05:40 Re: Left joining against two empty tables makes a query SLOW
Previous Message Gavin Sherry 2005-07-29 03:57:15 Re: Performance problems testing with Spamassassin 3.1.0