Unix Technical Forum

Re: configure option for XLOG_BLCKSZ

This is a discussion on Re: configure option for XLOG_BLCKSZ within the Pgsql Patches forums, part of the PostgreSQL category; --> Simon Riggs <simon@2ndquadrant.com> writes: > We already hit that issue and fixed it early in the 8.3 cycle. It ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 05-05-2008, 06:53 AM
Tom Lane
 
Posts: n/a
Default Re: configure option for XLOG_BLCKSZ

Simon Riggs <simon@2ndquadrant.com> writes:
> We already hit that issue and fixed it early in the 8.3 cycle. It was
> more of a problem than the checkpoint issue because it caused hard
> lock-outs while the file switches occurred. It didn't show up unless you
> looked at the very detailed transaction result data because on fast
> systems we are file switching every few seconds.


> Not seen any gains from varying the WAL file size since then...


I think the use-case for varying the WAL segment size is unrelated to
performance of the master server, but would instead be concerned with
adjusting the granularity of WAL log shipping.

regards, tom lane

--
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 05-05-2008, 06:53 AM
Andreas 'ads' Scherbaum
 
Posts: n/a
Default Re: configure option for XLOG_BLCKSZ

On Sat, 03 May 2008 13:14:35 -0400 Tom Lane wrote:

> Simon Riggs <simon@2ndquadrant.com> writes:
>
> > Not seen any gains from varying the WAL file size since then...

>
> I think the use-case for varying the WAL segment size is unrelated to
> performance of the master server, but would instead be concerned with
> adjusting the granularity of WAL log shipping.


*nod* I heard this argument several times. Simon: there was a discussion
about this topic in Prato last year. Since WAL logfiles are usually
binary stuff, the files can't be compressed much so a smaller logfile
size on a not-so-much-used system would save a noticeable amount of
bandwith (and cpu cycles for compression).


Kind regards

--
Andreas 'ads' Scherbaum
German PostgreSQL User Group

--
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 05-07-2008, 11:18 AM
Alvaro Herrera
 
Posts: n/a
Default Re: configure option for XLOG_BLCKSZ

Andreas 'ads' Scherbaum wrote:
> On Sat, 03 May 2008 13:14:35 -0400 Tom Lane wrote:
>
> > Simon Riggs <simon@2ndquadrant.com> writes:
> >
> > > Not seen any gains from varying the WAL file size since then...

> >
> > I think the use-case for varying the WAL segment size is unrelated to
> > performance of the master server, but would instead be concerned with
> > adjusting the granularity of WAL log shipping.

>
> *nod* I heard this argument several times. Simon: there was a discussion
> about this topic in Prato last year. Since WAL logfiles are usually
> binary stuff, the files can't be compressed much so a smaller logfile
> size on a not-so-much-used system would save a noticeable amount of
> bandwith (and cpu cycles for compression).


Seems the stuff to zero out the unused segment tail would be more useful
here.

Kevin sent me the source file some time ago -- he didn't want to upload
them to pgfoundry because he was missing a Makefile. I built one for
him, but last time I looked he hadn't uploaded anything.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

--
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 05-07-2008, 11:18 AM
Andreas 'ads' Scherbaum
 
Posts: n/a
Default Re: configure option for XLOG_BLCKSZ

On Mon, 5 May 2008 11:09:32 -0400 Alvaro Herrera wrote:

> Andreas 'ads' Scherbaum wrote:
> > On Sat, 03 May 2008 13:14:35 -0400 Tom Lane wrote:
> >
> > > Simon Riggs <simon@2ndquadrant.com> writes:
> > >
> > > > Not seen any gains from varying the WAL file size since then...
> > >
> > > I think the use-case for varying the WAL segment size is unrelated to
> > > performance of the master server, but would instead be concerned with
> > > adjusting the granularity of WAL log shipping.

> >
> > *nod* I heard this argument several times. Simon: there was a discussion
> > about this topic in Prato last year. Since WAL logfiles are usually
> > binary stuff, the files can't be compressed much so a smaller logfile
> > size on a not-so-much-used system would save a noticeable amount of
> > bandwith (and cpu cycles for compression).

>
> Seems the stuff to zero out the unused segment tail would be more useful
> here.


Yeah, that was the original question, if i remember correctly.
If the WAL logfile is zeroed out just before start using it and PG only
needs a small part of this logfile, the remaining zeroes are easily
compressable. Useful for PITR and good for backups/rsync/scp.


Kind regards

--
Andreas 'ads' Scherbaum
German PostgreSQL User Group

--
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 05-07-2008, 11:18 AM
Tom Lane
 
Posts: n/a
Default Re: configure option for XLOG_BLCKSZ

Alvaro Herrera <alvherre@commandprompt.com> writes:
>> On Sat, 03 May 2008 13:14:35 -0400 Tom Lane wrote:
>>> I think the use-case for varying the WAL segment size is unrelated to
>>> performance of the master server, but would instead be concerned with
>>> adjusting the granularity of WAL log shipping.


> Seems the stuff to zero out the unused segment tail would be more useful
> here.


Well, that's also useful, but it hardly seems like a substitute for
picking a more optimal segment size in the first place.

regards, tom lane

--
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 05-07-2008, 11:18 AM
Simon Riggs
 
Posts: n/a
Default Re: configure option for XLOG_BLCKSZ

On Mon, 2008-05-05 at 13:06 -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> >> On Sat, 03 May 2008 13:14:35 -0400 Tom Lane wrote:
> >>> I think the use-case for varying the WAL segment size is unrelated to
> >>> performance of the master server, but would instead be concerned with
> >>> adjusting the granularity of WAL log shipping.

>
> > Seems the stuff to zero out the unused segment tail would be more useful
> > here.

>
> Well, that's also useful, but it hardly seems like a substitute for
> picking a more optimal segment size in the first place.


I can't imagine having separately compiled executables depending upon
the write rate of different applications. What would you do if the write
rate increases over time (like it usually does)? How would you manage a
server farm like that? There's no practical answer there, just a great
way to introduce instability where there previously wasn't any.

--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com


--
Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:37 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com