X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 808E7D1B2D9 for ; Fri, 23 Jul 2004 03:28:12 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54319-04 for ; Fri, 23 Jul 2004 06:28:10 +0000 (GMT) Received: from mpls-qmqp-01.inet.qwest.net (mpls-qmqp-01.inet.qwest.net [63.231.195.112]) by svr1.postgresql.org (Postfix) with SMTP id 46D66D1B211 for ; Fri, 23 Jul 2004 03:27:55 -0300 (ADT) Received: (qmail 68903 invoked by uid 0); 23 Jul 2004 06:27:58 -0000 Received: from unknown (63.231.195.13) by mpls-qmqp-01.inet.qwest.net with QMQP; 23 Jul 2004 06:27:58 -0000 Received: from 63-227-127-37.dnvr.qwest.net (HELO ?10.0.0.2?) (63.227.127.37) by mpls-pop-13.inet.qwest.net with SMTP; 23 Jul 2004 06:27:58 -0000 Date: Fri, 23 Jul 2004 00:29:11 -0600 Message-Id: <1090564151.709.59.camel@localhost.localdomain> From: "Scott Marlowe" To: "William Carney" Cc: pgsql-performance@postgresql.org Subject: Re: Performance over a LAN In-Reply-To: References: Content-Type: text/plain Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/149 X-Sequence-Number: 7540 On Thu, 2004-07-22 at 23:50, William Carney wrote: > Hello, > > Using a test client application that performs 100000 insert operations on a > table, with the client application running on the same machine as the > Postgres server, I get the following results for the time taken to run the > test: > > Unix domain socket connection: 26 seconds > Inet domain socket ('localhost'): 35 seconds > > The table has two columns, a timestamp and a character(16), no indexes. > > But with the server running on one machine and the client running on > another, the two machines being connected by a 100 Mb ethernet, with nothing > else on the network, this test takes 17 minutes to run. I have tried > changing the frequency of COMMIT operations, but with only a small effect. > > The machines used are P4s running FreeBSD 5.2.1. The Postgres version is > 7.4.3. Can anyone tell me why there's such a big difference? Are you using the exact same script locally as across the network? Have you checked to see how fast you can copy just a plain text file across the network connection? Have you checked your system to see if you're getting lots of network errors or anything like that?