Skip site navigation (1) Skip section navigation (2)

survey of WAL blocksize changes

From: Mark Wong <markwkm(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: survey of WAL blocksize changes
Date: 2009-05-27 02:51:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Hi all,

A long long time ago (in 2004) I ran a series of tests surveying the
results of changing BLCKSZ when it was used for both the WAL logs and
the rest of the database system:

Now more than 5 years later and now being able to set the WAL log and
the rest of the database to different block sizes, I have a set of
test results with DBT-2 showing the effects of changing the WAL log
block size on OLTP transaction throughput on ext2, ranging from 1KB to

BS notpm % Change from default
-- ----- ----------
 1 14673 -4.8%
 2 15864 2.9%
 4 15774 2.3%
 8 15413 (default)
16 16118 4.6%
32 16051 4.1%
64 14874 -3.5%

Pointers to raw data:

BS url
-- ---

It appears for this workload using a 16KB or 32KB gets more than 4%
throughput improvement, but some of that could be noise.  Nothing
quite jaw dropping yet.  It'll be interesting to see if the
combination of changing the table block size can further improve the
performance.  It will probably be interesting to try different
filesystems and filesystem blocksizes too.

Mark Wong


pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2009-05-27 02:53:00
Subject: Re: commitfest management webapp
Previous:From: Greg SmithDate: 2009-05-27 02:15:58
Subject: Re: [HACKERS] commitfest management webapp

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group