pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Growing pg_xlog
4+ messages / 3 participants
[nested] [flat]

* Growing pg_xlog
@ 2003-07-14 16:15 Florian Weimer <fw@deneb.enyo.de>
  2003-07-14 16:55 ` Re: Growing pg_xlog Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Florian Weimer @ 2003-07-14 16:15 UTC (permalink / raw)
  To: pgsql-admin

I seem to have some obscure problem with the WAL logs (AFAIK that's what
is stored in the pg_xlog directory):

63G     /var/lib/postgres/data/pg_xlog

This is a bit too much wasted space for my taste. 8-/

egrep -i 'wal|checkpoint' /etc/postgresql/postgresql.conf | grep -v ^#
returns:

wal_buffers = 64                # min 4, typically 8KB each
checkpoint_segments = 8 # in logfile segments, min 1, 16MB each

The machine is running version 7.3.2r1-5 of the Debian package.

Any suggestions?



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Growing pg_xlog
  2003-07-14 16:15 Growing pg_xlog Florian Weimer <fw@deneb.enyo.de>
@ 2003-07-14 16:55 ` Tom Lane <tgl@sss.pgh.pa.us>
  2003-07-14 17:12   ` Re: Growing pg_xlog Florian Weimer <fw@deneb.enyo.de>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2003-07-14 16:55 UTC (permalink / raw)
  To: Florian Weimer <fw@deneb.enyo.de>; +Cc: pgsql-admin

Florian Weimer <fw@deneb.enyo.de> writes:
> I seem to have some obscure problem with the WAL logs (AFAIK that's what
> is stored in the pg_xlog directory):

> 63G     /var/lib/postgres/data/pg_xlog

> This is a bit too much wasted space for my taste. 8-/

The only theory that comes to mind is that the automatically issued
checkpoint operations are failing before they get to the stage of
truncating the WAL.  Is there anything suspicious looking in the
postmaster log?

You could also try a manual CHECKPOINT and see if it fails.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Growing pg_xlog
  2003-07-14 16:15 Growing pg_xlog Florian Weimer <fw@deneb.enyo.de>
  2003-07-14 16:55 ` Re: Growing pg_xlog Tom Lane <tgl@sss.pgh.pa.us>
@ 2003-07-14 17:12   ` Florian Weimer <fw@deneb.enyo.de>
  2003-07-15 07:41     ` Re: Growing pg_xlog E. Lefty Kreouzis <lefty@internet.gr>
  0 siblings, 1 reply; 4+ messages in thread

From: Florian Weimer @ 2003-07-14 17:12 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin

On Mon, Jul 14, 2003 at 12:55:19PM -0400, Tom Lane wrote:

> Florian Weimer <fw@deneb.enyo.de> writes:
> > I seem to have some obscure problem with the WAL logs (AFAIK that's what
> > is stored in the pg_xlog directory):
> 
> > 63G     /var/lib/postgres/data/pg_xlog
> 
> > This is a bit too much wasted space for my taste. 8-/
> 
> The only theory that comes to mind is that the automatically issued
> checkpoint operations are failing before they get to the stage of
> truncating the WAL.  Is there anything suspicious looking in the
> postmaster log?

No, I'm afraid.  However, the checkpoint subprocess was stuck in the "T"
state (meaning that it had received SIGSTOP). 8-/

> You could also try a manual CHECKPOINT and see if it fails.

Sending SIGCONT, restarting the database and issuing a CHECKPOINT
command seems to have fixed it (CHECKPOINT removed the gigabytes at an
amazing rate 8-).

Thanks for pushing me into the right direction.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Growing pg_xlog
  2003-07-14 16:15 Growing pg_xlog Florian Weimer <fw@deneb.enyo.de>
  2003-07-14 16:55 ` Re: Growing pg_xlog Tom Lane <tgl@sss.pgh.pa.us>
  2003-07-14 17:12   ` Re: Growing pg_xlog Florian Weimer <fw@deneb.enyo.de>
@ 2003-07-15 07:41     ` E. Lefty Kreouzis <lefty@internet.gr>
  0 siblings, 0 replies; 4+ messages in thread

From: E. Lefty Kreouzis @ 2003-07-15 07:41 UTC (permalink / raw)
  To: Florian Weimer <fw@deneb.enyo.de>; +Cc: pgsql-admin

Florian Weimer wrote:

>On Mon, Jul 14, 2003 at 12:55:19PM -0400, Tom Lane wrote:
>
>  
>
>>Florian Weimer <fw@deneb.enyo.de> writes:
>>    
>>
>>>I seem to have some obscure problem with the WAL logs (AFAIK that's what
>>>is stored in the pg_xlog directory):
>>>      
>>>
>>>63G     /var/lib/postgres/data/pg_xlog
>>>      
>>>
>>>This is a bit too much wasted space for my taste. 8-/
>>>      
>>>
>>The only theory that comes to mind is that the automatically issued
>>checkpoint operations are failing before they get to the stage of
>>truncating the WAL.  Is there anything suspicious looking in the
>>postmaster log?
>>    
>>
>
>No, I'm afraid.  However, the checkpoint subprocess was stuck in the "T"
>state (meaning that it had received SIGSTOP). 8-/
>
>  
>

Ah, running on linux 2.4 I suppose. There is a known bug if someone 
'strace's a process and the kills the strace process the traced process 
is stuck in the  T state and needs kill -SIGCONT to continue

Lefty




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2003-07-15 07:41 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-14 16:15 Growing pg_xlog Florian Weimer <fw@deneb.enyo.de>
2003-07-14 16:55 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-07-14 17:12   ` Florian Weimer <fw@deneb.enyo.de>
2003-07-15 07:41     ` E. Lefty Kreouzis <lefty@internet.gr>

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