You ever wonder what the most optimal block size for a database system on a spindle drive or SSD was?

ANSWER: In every case, regardless of drive type, filesystem block size or underlying filesystem it looks to be: 4KB

In every test of PostgreSQL executed on 24 different filesystem configurations (BTFS, XFS, EXT2, EXT3, etc.) all with varying filesystem block sizes, the PostgreSQL configurations using 4KB blocks to read/write table data always performed the fastest.

http://goo.gl/cfYpD

UPDATE: Use this link if you are having 414 problems (click Check All, then Compare at bottom):
http://www.fuzzy.cz/bench/index.php?type=pgbench
Shared publiclyView activity