Unix Technical Forum

Estimating WAL volume

This is a discussion on Estimating WAL volume within the Pgsql Performance forums, part of the PostgreSQL category; --> All this talk of WAL writing lately has me wondering something I haven't spent enough time looking at the ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 10:12 AM
Greg Smith
 
Posts: n/a
Default Estimating WAL volume

All this talk of WAL writing lately has me wondering something I haven't
spent enough time looking at the source to figure out myself this
week...any good rules of thumb out there for estimating WAL volume? I'm
used to just measuring it via benchmarking but it strikes me a formula
would be nice to have for pre-planning.

For example, if I have a table where a typical row is X bytes wide, and
I'm updating Y of those per second, what's the expected write rate of WAL
volume? Some % of those writes are going to be full pages; what's
typical? How much does the number and complexity of indexes factor into
things--just add the width of the index in bytes to the size of the
record, or is it worse than that?

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 10:13 AM
Simon Riggs
 
Posts: n/a
Default Re: Estimating WAL volume

On Wed, 2007-07-11 at 23:10 -0400, Greg Smith wrote:
> All this talk of WAL writing lately has me wondering something I haven't
> spent enough time looking at the source to figure out myself this
> week...any good rules of thumb out there for estimating WAL volume? I'm
> used to just measuring it via benchmarking but it strikes me a formula
> would be nice to have for pre-planning.
>
> For example, if I have a table where a typical row is X bytes wide, and
> I'm updating Y of those per second, what's the expected write rate of WAL
> volume? Some % of those writes are going to be full pages; what's
> typical? How much does the number and complexity of indexes factor into
> things--just add the width of the index in bytes to the size of the
> record, or is it worse than that?


I published an analysis of WAL traffic from Greg Stark earlier, based
upon xlogdump.

http://archives.postgresql.org/pgsql...3/msg01589.php

Other details of WAL volumes are in the code. Further analysis would be
welcome, to assist discussions of where to optimize next.

--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

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 03:41 PM.


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