From: | Mark Lewis <mark(dot)lewis(at)mir3(dot)com> |
---|---|
To: | carlosreimer(at)terra(dot)com(dot)br |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Initial database loading and IDE x SCSI |
Date: | 2006-06-02 18:41:27 |
Message-ID: | 1149273687.20798.91.camel@archimedes |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Fri, 2006-06-02 at 15:25 -0300, carlosreimer(at)terra(dot)com(dot)br wrote:
> Hi,
>
> I would like to know if my supposition is right.
>
> Considering an environment with only one hard disk attached to a server, an
> initial loading of the database probably is much faster using an IDE/ATA
> interface with write-back on than using an SCSI interface. That´s because of
> the SCSI command interface overhead.
No, it's because the SCSI drive is honoring the database's request to
make sure the data is safe.
> Then main advantage of SCSI interfaces, the multiuser environment is lost in
> this scenery.
>
> Am I right? Am I missing something here?
>
> Even if I´m right, is something that could be done too improove SCSI loading
> performance in this scenery?
You can perform the initial load in large transactions. The extra
overhead for ensuring that data is safely written to disk will only be
incurred once per transaction, so try to minimize the number of
transactions.
You could optionally set fsync=off in postgresql.conf, which means that
the SCSI drive will operate with no more safety than an IDE drive. But
you should only do that if you're willing to deal with catastrophic data
corruption. But if this is for a desktop application where you need to
support IDE drives, you'll need to deal with that anyway.
> Thanks in advance!
>
> Reimer
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-06-02 18:43:00 | Re: Initial database loading and IDE x SCSI |
Previous Message | Scott Marlowe | 2006-06-02 18:40:11 | Re: Initial database loading and IDE x SCSI |