pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Smith <gsmith@gregsmith.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Direct I/O issues
Date: Thu, 23 Nov 2006 11:45:42 -0500
Message-ID: <14171.1164300342@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.GSO.4.64.0611230013550.26031@westnet.com>
References: <Pine.GSO.4.64.0611230013550.26031@westnet.com>

Greg Smith <gsmith@gregsmith.com> writes:
> The results I get now look fishy.

There are at least two things wrong with this program:

* It does not respect the alignment requirement for O_DIRECT buffers
  (reportedly either 512 or 4096 bytes depending on filesystem).

* It does not check for errors (if it had, you might have realized the
  other problem).

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <14171.1164300342@sss.pgh.pa.us>
Permalink:  ../14171.1164300342@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14171.1164300342@sss.pgh.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gsmith@gregsmith.com
  Subject: Re: Direct I/O issues
  In-Reply-To: <14171.1164300342@sss.pgh.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