From: Andy <angelflow@yahoo.com>
To: Ofer Israeli <oferi@checkpoint.com>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: TCP Overhead on Local Loopback
Date: Sun, 1 Apr 2012 15:01:49 -0700 (PDT)
Message-ID: <1333317709.70394.YahooMailNeo@web111301.mail.gq1.yahoo.com> (raw)
In-Reply-To: <217DDBC2BB1E394CA9E7446337CBDEF20102DEDB4A58@il-ex01.ad.checkpoint.com>
References: <217DDBC2BB1E394CA9E7446337CBDEF20102DEDB4A58@il-ex01.ad.checkpoint.com>
You could try using Unix domain socket and see if the performance improves. A relevant link:
http://stackoverflow.com/questions/257433/postgresql-unix-domain-sockets-vs-tcp-sockets
________________________________
From: Ofer Israeli <oferi@checkpoint.com>
To: "pgsql-performance@postgresql.org" <pgsql-performance@postgresql.org>
Sent: Sunday, April 1, 2012 4:24 PM
Subject: [PERFORM] TCP Overhead on Local Loopback
Hi
all,
We are running
performance tests using PG 8.3 on a Windows 2008 R2 machine connecting locally
over TCP.
In our tests, we
have found that it takes ~3ms to update a table with ~25 columns and 60K
records, with one column indexed.
We have reached this
number after many tweaks of the database configuraiton and one of the changes we
made was to perform the updates in batches of 5K as opposed to the pervious
transaction per event. Note that our use of batches is to have only one
transaction, but still each of the 5K events is independently SELECTing and
UPDATEing records, i.e. it is not all contained in a stored procedure or
such.
Still these times
are too high for us and we are looking to lower them and I am wondering about
the TCP/IP overhead of passing the information back and forth. Does anyone
have any numbers in what the TCP could cost in the configuration mentioned above
or pointers on how to test it?
Many
thanks,
Ofer
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-performance@postgresql.org
Cc: angelflow@yahoo.com, oferi@checkpoint.com
Subject: Re: TCP Overhead on Local Loopback
In-Reply-To: <1333317709.70394.YahooMailNeo@web111301.mail.gq1.yahoo.com>
References: <217DDBC2BB1E394CA9E7446337CBDEF20102DEDB4A58@il-ex01.ad.checkpoint.com> <1333317709.70394.YahooMailNeo@web111301.mail.gq1.yahoo.com>
* 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