[GENERAL] fsync performance impact - Mailing list pgsql-general

From Ed Loehr
Subject [GENERAL] fsync performance impact
Date
Msg-id 38614845.A012B24@austin.rr.com
Whole thread Raw
In response to Re: [GENERAL] Getting value of SERIAL column after insert from libpq?  (Howie <caffeine@toodarkpark.org>)
List pgsql-general
Thought some would like to see a little quatitative data on the impact of running
with the -F flag...

Test case:  Using psql via stdin to load 5,238 inserts of the following form:

    INSERT INTO exchange_rate
    ( from_currency_id, to_currency_id, rate, start_time)
    VALUES
    (150,164, 6.01500000, '09/04/1999');

Platform:  RH6.1, 2.2.12-20smp, dual P3 600Mhz, 1 Gb RAM, 3 10K rpm scsi drives
in software raid.

Without -F, it loaded in 228 seconds (~23 inserts/sec).
With -F, it loaded in 10 seconds (~524 inserts/sec).

2200% boost...

Remember this performance boost comes at the expense of increased risk of data
loss in the event of a system crash.

Cheers,
Ed Loehr


pgsql-general by date:

Previous
From: Steve
Date:
Subject: Re: newbie needs help setting up pgsql on linux
Next
From: Ed Loehr
Date:
Subject: Re: [GENERAL] Index pg_proc_prosrc_index: NUMBER OF INDEX' TUPLES (1071)ISNOT THE SAME AS HEAP' (1070)