Re: ZFS & disk cache

From: Greg Smith <gsmith(at)gregsmith(dot)com>
To: Scara Maccai <m_lists(at)yahoo(dot)it>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: ZFS & disk cache
Date: 2009-06-01 13:34:58
Message-ID: alpine.GSO.2.01.0906010926160.15642@westnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 1 Jun 2009, Scara Maccai wrote:

> "The Solaris ZFS file system is safe with disk write-cache enabled because it issues its own disk cache flush commands"
> Could someone explain?

There are discussion of this with more information at:

http://www.solarisinternals.com/wiki/index.php/ZFS_Evil_Tuning_Guide#Cache_Flushes
http://milek.blogspot.com/2008/02/2530-array-and-zfs.html
http://blogs.digitar.com/jjww/2006/12/shenanigans-with-zfs-flushing-and-intelligent-arrays/

The only situation I'm aware of where ZFS may not be able to turn off the
unsafe write cache inside a disk is with some of the newer SSD devices.
For example, Jignesh Shah from Sun reported at the last PG East that
Solaris wasn't doing the right thing to disable the write cache inside the
Intel SSD devices he tested, which means they're doing write caching
without a battery that could lead to database corruption. See page 13 of
the presentation for
http://blogs.sun.com/jkshah/entry/effects_of_flash_ssd_on for his quick
note on that topic.

--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2009-06-01 13:57:49 Re: ruby connect
Previous Message Justin Carrera 2009-06-01 13:29:30 ruby connect