pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sean Chittenden <sean@chittenden.org>
To: Peter Schmidt <peterjs@home.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: FreeBSD upgrade causes performance degredation
Date: Mon, 29 Oct 2001 13:46:04 -0800
Message-ID: <20011029134604.C92062@ninja1.internal> (raw)
In-Reply-To: <NEBBJGEFMKLFIKBKBDIDAEOPCNAA.peterjs@home.com>
References: <20011029123055.B89061@ninja1.internal>
	<NEBBJGEFMKLFIKBKBDIDAEOPCNAA.peterjs@home.com>

> We run BSD upgrade on 4.1 ...boot from the CD and select upgrade
> during the install. I haven't done anything to tune the postgres
> config...what is recommended?

Tons, but turning off fsync is the biggest/easiest win you can get.
Check out the online docs regarding performance tuning, they're quite
good.

You'll also probably want to turn on soft-updates.  Type 'mount' and
see if anything similar to:

/dev/da0s1f on /opt (ufs, NFS exported, local, soft-updates)

If not, then you'll want to turn on soft-updates via the command
'tunefs -n enable /fs/mount/point'.  This is something you can read
about in the tuning(7) man page (EXCELLENT read that I recommend
everyone read through if you use FreeBSD).

> Eveything has been running fine out of the box up to this
> point. Further analysis indicates this could be a problem with the
> BSD upgrade, as performance seems to have improved after a clean
> install of FreeBSD 4.4.

That's odd...  If you get a chance and are savvy with using cvsup,
check out the -STABLE branch because it has some new DIRPERF code that
gives at least a 3x speed up to doing a cvs update for a local copy of
FreeBSD and is probably going to have a significant increase in
performance for database operations as well (very disk IO intensive).
The DIRPERF code was MFC'ed 5 days after 4.4 was released.  The other
tid-bit of code that may be useful is the DIRUHASH code (optional that
you'll have to compile into your kernel) which speeds up routines for
large number of files per directory.  -sc



view thread (8+ messages)  latest in thread

Message-ID: <20011029134604.C92062@ninja1.internal>
Permalink:  ../20011029134604.C92062@ninja1.internal/
Also on:    postgresql.org/message-id/20011029134604.C92062@ninja1.internal

 · 

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-admin@postgresql.org
  Cc: sean@chittenden.org, peterjs@home.com
  Subject: Re: FreeBSD upgrade causes performance degredation
  In-Reply-To: <20011029134604.C92062@ninja1.internal>
  References: <20011029123055.B89061@ninja1.internal> <NEBBJGEFMKLFIKBKBDIDAEOPCNAA.peterjs@home.com> <20011029134604.C92062@ninja1.internal>

* 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