Re: import performance

From: David Lang <david(at)lang(dot)hm>
To: Chris <dmagick(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Frank Wiles <frank(at)wiles(dot)org>, pgsql-performance(at)postgresql(dot)org
Subject: Re: import performance
Date: 2006-03-14 06:13:53
Message-ID: Pine.LNX.4.62.0603132210440.23148@qnivq.ynat.uz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, 14 Mar 2006, Chris wrote:

> The only other thing I can see is the old server is ext2:
> /dev/hda4 on / type ext2 (rw,errors=remount-ro)
>
> the new one is ext3:
> /dev/hda2 on / type ext3 (rw)

this is actually a fairly significant difference.

with ext3 most of your data actually gets written twice, once to the
journal and a second time to the spot on the disk it's actually going to
live.

in addition there are significant differences in how things are arranged
on disk between the two filesystems, (overridable at mount, but only
changes future new files). the ext3 layout is supposed to be better for a
general purpose filesystem, but I've found common cases (lots of files and
directories) where it's significantly slower, and I think postgres will
fall into those layouts.

try makeing a xfs filesystem for your postgres data and see what sort of
performance you get on it.

David Lang

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Chris 2006-03-14 06:28:34 Re: import performance
Previous Message Chris 2006-03-14 02:27:28 Re: import performance