Unix Technical Forum

Quick-and-dirty compression for WAL backup blocks

This is a discussion on Quick-and-dirty compression for WAL backup blocks within the pgsql Hackers forums, part of the PostgreSQL category; --> Hi all, I examined the effect of block-hole compression patch. I compared the amounts of writing of the WAL ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 04-11-2008, 05:50 AM
Junji TERAMOTO
 
Posts: n/a
Default Re: Quick-and-dirty compression for WAL backup blocks

Hi all,

I examined the effect of block-hole compression patch.

I compared the amounts of writing of the WAL data of CVS(7/11) and
8.0.3. (The amount of the WAL data writing was measured by the number of
executions of the write() function in XLogWrite().)
And, I measured the size of the hole.

Environment;
IBM x206 P4 3.0GHz Mem 4GB
CentOS 4.0 (Linux 2.6.9-5.0.3.ELsmp)

Parameters;
shared_buffers = 65535
checkpoint_segments = 30
default_with_oids = false (8.0.3)
default_with_oids = off (CVS)

How to exam;
0) initdb --no-locale
1) pgbench -i -s 100 pgbench
2) pgbench -n -c 50 -t 5000 pgbench
3) vacuumdb -d pgbench
4) pgbench -n -c 50 -t 5000 pgbench

Results;
| 8.0.3 | CVS(7/11)
Exam | | | | | block-hole (byte)
| write |C.P| write |C.P| total | min | max | avg
-----+---------+---+---------+---+-----------+-----+------+---------
1) | 187505 | 3 | 187373 | 4 | 194056 | 36 | 8124 | 3881.12
2) | 509725 | 6 | 513489 | 5 | 115564476 | 12 | 8096 | 347.69
3) | 280456 | 2 | 172973 | 2 | 95923360 | 248 | 8156 | 614.08
4) | 533971 | 7 | 525135 | 6 | 171147256 | 12 | 8140 | 482.11

C.P = Checkpoint frequency

It has been understood that patchs seems to be effective at VACUUM as a
result of the measurement. But, in other cases, the effect was not so seen.



--
Junji Teramoto


---------------------------(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
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 04:26 AM.


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