pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: Sean Chittenden <sean@chittenden.org>
Cc: Bill Moran <wmoran@potentialtech.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: The results of my PostgreSQL/filesystem performance tests
Date: Fri, 29 Aug 2003 22:32:38 -0400 (EDT)
Message-ID: <200308300232.h7U2WcS11913@candle.pha.pa.us> (raw)
In-Reply-To: <082e01c36dd1$3bf1f150$2800a8c0@mars>

Christopher Kings-Lynne wrote:
> > I'm likely going to make this the default for PostgreSQL on FreeBSD
> > starting with 7.4 (just posted something to -hackers about this)f.  If
> > you'd like to do this in your testing, just apply the following patch.
> >
> > Right now PostgreSQL defaults to 8K blocks, but FreeBSD uses 16K
> > blocks which means that currently, reading two blocks of data in PG is
> > two read calls to the OS, one reads 16K of data off disk and returns
> > the 1st page, the 2nd call pulls the 2nd block from the FS cache.  In
> > making things 16K, it avoids the need for the 2nd system call which is
> > where the performance difference is coming from, afaikt.  -sc
> 
> Are you _sure_ this won't cause any atomicity problems?  Can FreeBSD write
> 16k as an atomic unit?

We pre-modified page images to WAL before modifying the page.  The disks
are only 512-byte blocks, so we don't rely on file system atomicity
anymore anyway.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (26+ messages)  latest in thread

Message-ID: <200308300232.h7U2WcS11913@candle.pha.pa.us>
Permalink:  ../200308300232.h7U2WcS11913@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200308300232.h7U2WcS11913@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: pgman@candle.pha.pa.us, chriskl@familyhealth.com.au, sean@chittenden.org, wmoran@potentialtech.com
  Subject: Re: The results of my PostgreSQL/filesystem performance tests
  In-Reply-To: <200308300232.h7U2WcS11913@candle.pha.pa.us>
  References: <082e01c36dd1$3bf1f150$2800a8c0@mars> <200308300232.h7U2WcS11913@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox