pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mikko Tiihonen <mikko.tiihonen@iki.fi>
To: pgsql-jdbc@postgresql.org
Subject: Binary protocol patch v7
Date: Sun, 07 Jan 2007 20:55:01 +0200
Message-ID: <1168196101.6236.25.camel@mokki.local> (raw)

Hi,

Just to remind you that the I updated the patches for sending receiving
columns in v3 binary format are available at:
http://mokki.dyndns.org/~mtiihone/postgresql/binarytransfer/

Changes since last update:
- fixed handling of empty ResultSet.
- fixed ArrayIndexOutOfBounds in CompositeParameterList

It passes the current unit test suite and all other applications I have
tried it with.

I would be interested in any benchmarks. What you would hopefully see is
reduced CPU load in both the backend and in the Java application. Also the
network traffic should be somewhat reduced.

Also, Kris, could you please try to find time to review the patch again
and see what still needs to be fixed/clarified/tested before the patch
can be accepted.

---------------------------

I downloaded BenchmarkSQL 2.3.2 and run it against freshly installed
postgres 8.2 backend. Results (best of 10 runs):
Jan 7, 2007 CVS: 5891 tpmC - 100%
+ binaryPatches: 6531 tpmC - 110%

The client and server ran on the same host. The Java client used
around 25% of available cpu, backend the remaining time, IO was not
a bottleneck.

Benchmark setup:
----------------
PostgreSQL 8.2.0 with following modified config options:
fsync=off, autovacuum=on, stats_row_level=on, redirect_stderr=on,
checkpoint_segments=12, max_connections=10, max_prepared_transactions=50,
shared_buffers=128MB, standard_conforming_strings=on

The BenchmarkSQL was set up with 1 warehouse and 4 terminals. The
following URL was used to connect to the backend:
jdbc:postgresql://localhost:5432/test?binaryEncoding=true&prepareThreshold=1

Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)
Athlon64 2x2GHz, Linux 2.6.19.1

I ran "vacuumdb --all --full" between each benchmark run to get consistent
results.

-Mikko




view thread (3+ messages)  latest in thread

Message-ID: <1168196101.6236.25.camel@mokki.local>
Permalink:  ../1168196101.6236.25.camel@mokki.local/
Also on:    postgresql.org/message-id/1168196101.6236.25.camel@mokki.local

 · 

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-jdbc@postgresql.org
  Cc: mikko.tiihonen@iki.fi
  Subject: Re: Binary protocol patch v7
  In-Reply-To: <1168196101.6236.25.camel@mokki.local>
  References: <1168196101.6236.25.camel@mokki.local>

* 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