pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Luke Lonergan <llonergan@greenplum.com>
To: Worky Workerson <worky.workerson@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Best COPY Performance
Date: Tue, 31 Oct 2006 12:16:24 -0800
Message-ID: <C16CEF18.58CF%llonergan@greenplum.com> (raw)
In-Reply-To: <ce4072df0610311211i3944344dx69a4be966cb548c0@mail.gmail.com>

Worky (!),

On 10/31/06 12:11 PM, "Worky Workerson" <worky.workerson@gmail.com> wrote:

> Any recommendations on what to
> look at to find a fix?  One thing which I never mentioned was that I
> am using ext3 mounted with noatime,data=writeback.

You can try setting the max readahead like this:
  /sbin/blockdev --setra 16384 /dev/sd[a-z]

It will set the max readahead to 16MB for whatever devices are in
/dev/sd[a-z] for the booted machine.  You'd need to put the line(s) in
/etc/rc.d/rc.local to have the setting persist on reboot.

- Luke





view thread (52+ messages)  latest in thread

Message-ID: <C16CEF18.58CF%llonergan@greenplum.com>
Permalink:  ../C16CEF18.58CF%25llonergan@greenplum.com/
Also on:    postgresql.org/message-id/C16CEF18.58CF%llonergan@greenplum.com

 · 

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: llonergan@greenplum.com, worky.workerson@gmail.com
  Subject: Re: Best COPY Performance
  In-Reply-To: <C16CEF18.58CF%llonergan@greenplum.com>

* 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