Re: Direct I/O

From: "Jignesh K(dot) Shah" <J(dot)K(dot)Shah(at)Sun(dot)COM>
To: lai yoke hman <lllhman(at)hotmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Direct I/O
Date: 2007-07-06 16:03:12
Message-ID: 468E67C0.60405@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Solaris you just look at the mount options on the file system and see
if there is a forcedirectio option enabled. Generally since PostgreSQL
doesn't use any special options for enabling directio that's a known way
to figure it out on Solaris. Atleast on Solaris the performance over
buffered filesystem is better for many workloads but not always. Plus
you typically see a small reduction in CPU usage (system) and ofcourse
memory.

However depending on workload, you may see increased latency in writes
but generally that's not the problem in many workloads since its the
multiple writes to the same file which is better using concurrentio
(modified directio) in Solaris.

As for Linux I will leave that to other experts ..

-Jignesh

lai yoke hman wrote:
> Hello,
> How can I know my PostgreSQL 8 is using direct I/O or buffered I/O? If using buffered I/O, how can I enable direct I/O? What is the performance difference of them?
> This is urgent, Thanks.
> _________________________________________________________________
> Windows Live Spaces is here! It’s easy to create your own personal Web site.
> http://spaces.live.com/?mkt=en-my
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

In response to

  • Direct I/O at 2007-07-06 02:28:49 from lai yoke hman

Browse pgsql-performance by date

  From Date Subject
Next Message Heikki Linnakangas 2007-07-06 16:18:53 Re: Advice about how to delete
Previous Message Arnau 2007-07-06 15:56:21 Re: Advice about how to delete