From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Najib Abi Fadel <nabifadel(at)yahoo(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postgresql Page Layout details |
Date: | 2008-03-06 09:17:38 |
Message-ID: | 47CFB6B2.6000609@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Najib Abi Fadel wrote:
> Concerning the 8KB page size, as i understood postgres
> Page Size is different from the file system Block
> size.
> If the system block size is 4kB are there any
> mechanism that guaranties that a postgres page is
> stored on 2 adjacent file system blocks ?
That's the job of the filesystem, and is a problem that could affect any
file that's 5KB or larger.
> Cause otherwise performance may suffer since accessing
> 1 page in postgres may require reading 2 distant
> blocks!
Yes. And how many users would a filesystem have if it did that on a
regular basis :-)
> According to my understanding of how file system
> works, a file system block is the unit of exchange
> between the hard disk and the main memory.
Yes. Well, it's the unit of exchange between the filesystem and the
disk. Otherwise you couldn't have different filesystem block sizes. And
you could probably argue that a multi-disk RAID setup's stripe-size is a
more logical unit to work with.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Achmad Nizar Hidayanto | 2008-03-06 10:40:00 | Ask ctid |
Previous Message | Najib Abi Fadel | 2008-03-06 09:08:01 | Re: Postgresql Page Layout details |