pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>
Cc: pgsql-performance@postgresql.org
Subject: Re: PG Logging is Slow
Date: Sun, 19 Dec 2004 23:31:24 -0500 (EST)
Message-ID: <200412200431.iBK4VOd03148@candle.pha.pa.us> (raw)
In-Reply-To: <16C0CF355FA04944A69E5A4F5299D30B110EAA@ganesh.au.lpint.net>

Theo Galanakis wrote:
> Under postgres 7.3 logging is incredibly slow!
> 
> I have applied the following settings:
> 
> syslog = 2
> syslog_facility = 'LOCAL0'
> syslog_ident = 'postgres'
>  
>  log_connections =  true 
> log_duration =  true 
> log_pid =  true 
> log_statement =  true 
> log_timestamp =  true 
>  
> This severely impacted the performance of our production system, a search
> page which took 1-3 seconds now takes over 30, is this normal?
>  
> I need to get some performance indicators from our production db, however I
> cant turn on logging with such performance degradation.

Linux syslog has this bad behavior of fsync'ing all log writes.  See the
syslog manual page for a way to turn off the fsync.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (7+ messages)  latest in thread

Message-ID: <200412200431.iBK4VOd03148@candle.pha.pa.us>
Permalink:  ../200412200431.iBK4VOd03148@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200412200431.iBK4VOd03148@candle.pha.pa.us

 · 

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: pgman@candle.pha.pa.us, Theo.Galanakis@lonelyplanet.com.au
  Subject: Re: PG Logging is Slow
  In-Reply-To: <200412200431.iBK4VOd03148@candle.pha.pa.us>

* 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