pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory Stark <stark@enterprisedb.com>
To: Joshua D. Drake <jd@commandprompt.com>
Cc: Jonathan Ellis <jonathan@utahpython.org>
Cc: smiley2211 <smiley2211@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: How to ENABLE SQL capturing???
Date: Mon, 13 Aug 2007 17:02:41 +0100
Message-ID: <87vebjqv6m.fsf@oxford.xeocode.com> (raw)
In-Reply-To: <46C07BFA.8000500@commandprompt.com>
References: <12060736.post@talk.nabble.com>
	<20070808203612.GA26143@uio.no>
	<bd8531800708081357i4f14b41axb0f19e444dc47a6e@mail.gmail.com>
	<12096180.post@talk.nabble.com>
	<Pine.LNX.4.64.0708101309230.1940@discord.home.frostconsultingllc.com>
	<12099590.post@talk.nabble.com>
	<46BCDDAA.3060703@commandprompt.com>
	<e06563880708130804i5f9277f1pe62e85c6c1e69df@mail.gmail.com>
	<46C07BFA.8000500@commandprompt.com>

"Joshua D. Drake" <jd@commandprompt.com> writes:

> If I recall correctly, it is because syslog is blocking.

Are you sure it isn't just that syslog fsyncs its log files after every log
message? I don't think the individual syslogs are synchronous but if syslog
falls behind the buffer will fill and throttle the sender.

If your Postgres data is on the same device as the syslogs those fsyncs will
probably cause a big slowdown directly on Postgres's I/O as well.

You can turn off the fsyncs in syslog by putting a - before the filename.

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com



view thread (11+ messages)  latest in thread

Message-ID: <87vebjqv6m.fsf@oxford.xeocode.com>
Permalink:  ../87vebjqv6m.fsf@oxford.xeocode.com/
Also on:    postgresql.org/message-id/87vebjqv6m.fsf@oxford.xeocode.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: stark@enterprisedb.com, jd@commandprompt.com, jonathan@utahpython.org, smiley2211@yahoo.com
  Subject: Re: How to ENABLE SQL capturing???
  In-Reply-To: <87vebjqv6m.fsf@oxford.xeocode.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