From: | "Aaron Werman" <awerman2(at)hotmail(dot)com> |
---|---|
To: | |
Cc: | <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: good pc but bad performance,why? |
Date: | 2004-04-07 14:36:48 |
Message-ID: | LAW10-OE60bddQzCjEC00019080@hotmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
fsync I'm thinking 50 inserts, if autocommiting is 50TPS = ~100 IO per
second (50 WAL + checkpoint IO) = roughly the I/O rate of a single drive.
Huang - Are you using a single drive for pg? If so, there is a safety
problem of both the data and logs used for recovery on the same drive. If
the drive crashes, there is nothing left for recovery.
Also, there is a big contention issue, since the log is a fast sequential
write, and checkpointing is random. If the log is on a separate drive,
you'll probably see insert speed at disk sequential write speed, since the
other drive(s) should hopefully be able to keep up when checkpointing. If
they share the same drive, you'll see an initial burst of inserts, then a
order of magnitude performance drop-off as soon as you checkpoint - because
the disk is interleaving the log and data writes.
fsync off is only appropriate for externally recoverable processes, such as
loading an empty server from a file.
/Aaron
----- Original Message -----
From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "huang yaqin" <hyq(at)gthome(dot)com>; "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-performance(at)postgresql(dot)org>
Sent: Wednesday, April 07, 2004 4:33 AM
Subject: Re: [PERFORM] good pc but bad performance,why?
On Wednesday 07 April 2004 05:00, huang yaqin wrote:
> hello!
>
> Thanks, you are right.
> I use "postmaster -o "-F" " to start my PG,and performance improved
> greatly.
I don't think Tom was recommending turning fsync off. If you have a system
crash/power glitch then the database can become corrupted.
If you are happy the possibility if losing your data, write performance will
improve noticably.
--
Richard Huxton
Archonet Ltd
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2004-04-07 16:09:16 | Re: [PERFORM] Raw devices vs. Filesystems |
Previous Message | Harald Fuchs | 2004-04-07 13:05:55 | Re: Raw devices vs. Filesystems |