From: | david(at)lang(dot)hm |
---|---|
To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
Cc: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, Ron <rjpeace(at)earthlink(dot)net>, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: understanding postgres issues/bottlenecks |
Date: | 2009-01-10 19:48:35 |
Message-ID: | alpine.DEB.1.10.0901101140370.31038@asgard.lang.hm |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Sat, 10 Jan 2009, Gregory Stark wrote:
>>> ...and of course, those lucky few with bigger budgets can use SSD's and not
>>> care what fsync is set to.
>>
>> Would that prevent any corruption if the writes got out of order
>> because of lack of fsync? Or partial writes? Or wouldn't fsync still
>> need to be turned on to keep the data safe.
>
> I think the idea is that with SSDs or a RAID with a battery backed cache you
> can leave fsync on and not have any significant performance hit since the seek
> times are very fast for SSD. They have limited bandwidth but bandwidth to the
> WAL is rarely an issue -- just latency.
I don't think that this is true, even if your SSD is battery backed RAM
(as opposed to the flash based devices that have slower writes than
high-end hard drives) you can complete 'writes' to the system RAM faster
than the OS can get the data to the drive, so if you don't do a fsync you
can still loose a lot in a power outage.
raid controllers with battery backed ram cache will make the fsyncs very
cheap (until the cache fills up anyway)
with SSDs having extremely good read speeds, but poor (at least by
comparison) write speeds I wonder if any of the RAID controllers are going
to get a mode where they cache writes, but don't cache reads, leaving all
ofyour cache to handle writes.
David Lang
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Stark | 2009-01-10 21:19:23 | Re: understanding postgres issues/bottlenecks |
Previous Message | Scott Marlowe | 2009-01-10 19:10:44 | Re: understanding postgres issues/bottlenecks |