Re: postgres block size alignment with filesystem block size

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mike Broers <mbroers(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: postgres block size alignment with filesystem block size
Date: 2012-06-06 16:24:35
Message-ID: 11681.1338999875@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Mike Broers <mbroers(at)gmail(dot)com> writes:
> Hello, I am setting up a new postgres production server in a managed
> hosting environment. I dont have much insight into the underlying disk
> architecture but the filesystem I have been presented with has a 4k block
> size. Postgres defaults to 8k block size; would it be beneficial to repave
> the filesystem at an 8k block size or problematic to leave it at 4k?

I doubt it's worth the trouble to change it. Most filesystems default
to 4k or smaller block sizes, so that's what PG is accustomed to run on.
I think it would only really be an issue if PG's block size weren't a
multiple of the filesystem block.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2012-06-06 16:38:35 Re: Data split -- Creating a copy of database without outage
Previous Message Manoj Govindassamy 2012-06-06 16:16:16 Re: Postgres 9.1 Synchronous Replication and stuck queries during sync repl setup