X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A3D4BD1C4D0 for ; Thu, 24 Jul 2003 21:53:30 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 76307-07 for ; Thu, 24 Jul 2003 18:52:47 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 6F04BD1C4E3 for ; Thu, 24 Jul 2003 18:53:25 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h6OLr4f03872; Thu, 24 Jul 2003 17:53:04 -0400 (EDT) From: Bruce Momjian Message-Id: <200307242153.h6OLr4f03872@candle.pha.pa.us> Subject: Re: using ssl some of the time In-Reply-To: <20729.1059082143@sss.pgh.pa.us> To: Tom Lane Date: Thu, 24 Jul 2003 17:53:04 -0400 (EDT) Cc: Charles Hornberger , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/255 X-Sequence-Number: 9595 Tom Lane wrote: > > Charles Hornberger wrote: > >> Just a quick follow-up to share one (!) data point, which looks to me > >> like it indicates that SSL encryption/decryption is pretty expensive on > >> one of our Sun Ultra 5 boxes. The following query ("select * from wp") > >> generates ~270K of output. When executed via a psql client that's > >> connected over a non-encrypted link, it takes 0.7 seconds; over an > >> encrypted link, it takes more than 10 times that long. > > I suspect most of this is from the ridiculously small renegotiation > interval we put into 7.3. Try increasing RENEGOTIATION_LIMIT in > src/backend/libpq/be-secure.c (we've bumped it to 512 meg for 7.4). Yes, good point! Would you try 7.4 or that change and let us know the results? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073