pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bjoern Metzdorf <bm@turtle-entertainment.de>
To: Pgsql-Admin (E-mail) <pgsql-admin@postgresql.org>
Subject: statistics buffer is full
Date: Wed, 08 Dec 2004 22:15:44 +0100
Message-ID: <41B76F00.3010804@turtle-entertainment.de> (raw)

Hi,

just wanted to share some experience with the curious log message: 
"statistics buffer is full".

Some time ago we suffered from bad performance on our database server. 
We were running 7.4.x. I saw this strange log message and Tom told me a 
way to raise this specific buffer. After raising it the box worked fine.

Now we are running 7.4.6 and I still have to patch the source, as I had 
to do with all 7.4.x versions.

See attached patch for details. We began raising from 1024 to 2048 then 
to 4096. After a while the messages appeared again and now we are at 
16384 and the messages have gone again.

Tom: Do you know of any other bad impact this raising might have?

All: If you suffer from bad performance, check your logs and raise this 
buffer.

Our specs:

Debian Woody, Kernel 2.6
Postgresql 7.4.6
Dual Xeon 3.2 with HT enabled
Mylex eXtremeRAID 2000 with 4 drives RAID 10

Regards,
Bjoern

Attachments:

pg_buffers_full-7.4.6.patch.txt (text/plain, 396B) download --- src/include/pgstat.h~ 2004-12-08 16:28:12.000000000 +0100 +++ src/include/pgstat.h 2004-12-08 16:28:12.000000000 +0100 @@ -65,7 +65,7 @@ * Amount of space reserved in pgstat_recvbuffer(). * ---------- */ -#define PGSTAT_RECVBUFFERSZ ((int) (1024 * sizeof(PgStat_Msg))) +#define PGSTAT_RECVBUFFERSZ ((int) (16384 * sizeof(PgStat_Msg))) /* ----------

view thread (14+ messages)  latest in thread

Message-ID: <41B76F00.3010804@turtle-entertainment.de>
Permalink:  ../41B76F00.3010804@turtle-entertainment.de/
Also on:    postgresql.org/message-id/41B76F00.3010804@turtle-entertainment.de

 · 

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: bm@turtle-entertainment.de
  Subject: Re: statistics buffer is full
  In-Reply-To: <41B76F00.3010804@turtle-entertainment.de>
  References: <41B76F00.3010804@turtle-entertainment.de>

* 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