Re: performance on new linux box

From: Ben Chobot <bench(at)silentmedia(dot)com>
To: Scott Carey <scott(at)richrelevance(dot)com>
Cc: Craig James <craig_james(at)emolecules(dot)com>, Timothy(dot)Noonan(at)emc(dot)com, PostgreSQL - Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: performance on new linux box
Date: 2010-07-15 19:35:16
Message-ID: 6A7F9A16-F50B-43AE-B349-174726564292@silentmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Jul 15, 2010, at 9:30 AM, Scott Carey wrote:

>> Many raid controllers are smart enough to always turn off write caching on the drives, and also disable the feature on their own buffer without a BBU. Add a BBU, and the cache on the controller starts getting used, but *not* the cache on the drives.
>
> This does not make sense.
> Write caching on all hard drives in the last decade are safe because they support a write cache flush command properly. If the card is "smart" it would issue the drive's write cache flush command to fulfill an fsync() or barrier request with no BBU.

You're missing the point. If the power dies suddenly, there's no time to flush any cache anywhere. That's the entire point of the BBU - it keeps the RAM powered up on the raid card. It doesn't keep the disks spinning long enough to flush caches.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Ben Chobot 2010-07-15 19:49:38 Re: performance on new linux box
Previous Message Patrick Donlin 2010-07-15 18:48:04 Re: Identical query slower on 8.4 vs 8.3