pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Greg Spiegelberg <gspiegelberg@cranel.com>
To: PgSQL Performance ML <pgsql-performance@postgresql.org>
To: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: [PERFORM] syslog slowing the database?
Date: Tue, 9 Mar 2004 21:34:35 +0000
Message-ID: <200403092134.35905.dev@archonet.com> (raw)
In-Reply-To: <404E2937.4060604@cranel.com>
References: <404E2937.4060604@cranel.com>

On Tuesday 09 March 2004 20:29, Greg Spiegelberg wrote:

> iostat reported ~2000 blocks written every 2
> seconds to the DB file system.
>
> I turned syslog off to see if it was blocking anything and in the
> past couple minutes 1GB has been restored and iostat reports ~35,000
> blocks written every 2 seconds to the DB file system.

> Can anyone confirm this for me?

If syslog is set to sync after every line and you're logging too much then it 
could slow things down as the disk heads shift back and fore between two 
areas of disk. How many disks do you have and in what configuration?

Also - was PG logging a lot of info, or is some other application the culprit?

Tip: put a minus "-" in front of the file-path in your syslog.conf and it 
won't sync to disk after every entry.

-- 
  Richard Huxton
  Archonet Ltd



view thread (19+ messages)  latest in thread

Message-ID: <200403092134.35905.dev@archonet.com>
Permalink:  ../200403092134.35905.dev@archonet.com/
Also on:    postgresql.org/message-id/200403092134.35905.dev@archonet.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: dev@archonet.com, gspiegelberg@cranel.com, pgsql-admin@postgresql.org
  Subject: Re: [PERFORM] syslog slowing the database?
  In-Reply-To: <200403092134.35905.dev@archonet.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