Re: Block_Size on NTFS - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Block_Size on NTFS
Date
Msg-id 200906091158.n59BwkG06270@momjian.us
Whole thread Raw
In response to Block_Size on NTFS  (postgresqlgeneral.domain.thewild_codata@spamgourmet.com)
Responses Re: Block_Size on NTFS  (Craig Ringer <craig@postnewspapers.com.au>)
Re: Block_Size on NTFS  (postgresqlgeneral.domain.thewild_codata@spamgourmet.com)
List pgsql-general
postgresqlgeneral.domain.thewild_codata@spamgourmet.com wrote:
> Hi all !
>
> Reading through the list of settings returned by "SHOW ALL", I noticed
> the "block_size" variable, which defaults to 8192.
>
> Running on Windows Server, my data directory is on an NTFS partition.
> Running CHKDSK on this partition tells me that there are "4096 bytes in
> each allocation unit."
>
> Are these allocation units the same as the "block_size", or does this
> only have to do with disk geometry ?
> If they are the same, is it important that they match ?

It is not necessary they match.  It just means that Postgres extends
files in 8k chunks while your file system extends them in 4k chunks.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Text search without dictionary ?
Next
From: Martin Gainty
Date:
Subject: Re: Sum of multiplied deltas