Re: Hardware recommendations to scale to silly load

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Matt Clark <matt(at)ymogen(dot)net>
Cc: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>, PgSQL Performance ML <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Hardware recommendations to scale to silly load
Date: 2003-09-10 03:25:23
Message-ID: 200309100325.h8A3PNU07656@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

Matt Clark wrote:
> > Just a data point, but on my Dual Xeon 2.4Gig machine with a 10k SCSI
> > drive I can do 4k inserts/second if I turn fsync off. If you have a
> > battery-backed controller, you should be able to do the same. (You will
> > not need to turn fsync off --- fsync will just be fast because of the
> > disk drive RAM).
> >
> > Am I missing something?
>
> I think Ron asked this, but I will too, is that 4k inserts in
> one transaction or 4k transactions each with one insert?
>
> fsync is very much faster (as are all random writes) with the
> write-back cache, but I'd hazard a guess that it's still not
> nearly as fast as turning fsync off altogether. I'll do a test
> perhaps...

Sorry to be replying late. Here is what I found.

fsync on
Inserts all in one transaction 3700 inserts/second
Inserts in separate transactions 870 inserts/second

fsync off
Inserts all in one transaction 3700 inserts/second
Inserts all in one transaction 2500 inserts/second

ECPG test program attached.

--

Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 1.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-09-10 04:11:08 Re: Unixware Patch (Was: Re: Beta2 Tag'd and Bundled ...)
Previous Message Philip Yarra 2003-09-10 03:01:50 Re: Unixware Patch (Was: Re: Beta2 Tag'd and Bundled ...)

Browse pgsql-performance by date

  From Date Subject
Next Message Chris Huston 2003-09-10 07:37:02 Re: Reading data in bulk - help?
Previous Message Matt Clark 2003-09-10 00:22:09 Re: slow plan for min/max