Re: full_page_writes on SSD?

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: full_page_writes on SSD?
Date: 2015-11-24 19:40:22
Message-ID: 5654BD26.9020202@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/24/2015 10:48 AM, Marcin Mańk wrote:
> I saw this:
> http://blog.pgaddict.com/posts/postgresql-on-ssd-4kb-or-8kB-pages
>
> It made me wonder: if SSDs have 4kB/8kB sectors, and we'd make the
> Postgres page size equal to the SSD page size, do we still need
> full_page_writes?

an SSD's actual write block is much much larger than that. they
emulate 512 or 4k sectors, but they are not actually written in sector
order, rather new writes are accumulated in a buffer on the drive, then
written out to a whole block, and a sector mapping table is maintained
by the drive.

--
john r pierce, recycling bits in santa cruz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2015-11-24 20:04:12 Re: Problems with pg_upgrade after change of unix user running db.
Previous Message Andres Freund 2015-11-24 19:14:46 Re: full_page_writes on SSD?