Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 5F724B5DC61 for ; Fri, 4 Nov 2011 18:33:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 08204-07 for ; Fri, 4 Nov 2011 21:32:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from exprod7og108.obsmtp.com (exprod7og108.obsmtp.com [64.18.2.169]) by mail.postgresql.org (Postfix) with ESMTP id 10700B5DC60 for ; Fri, 4 Nov 2011 18:32:53 -0300 (ADT) Received: from mail-bw0-f44.google.com ([209.85.214.44]) (using TLSv1) by exprod7ob108.postini.com ([64.18.6.12]) with SMTP; Fri, 04 Nov 2011 14:32:54 PDT Received: by bkbzv15 with SMTP id zv15so1957632bkb.3 for ; Fri, 04 Nov 2011 14:32:51 -0700 (PDT) Received: by 10.204.14.208 with SMTP id h16mr13585294bka.2.1320442370169; Fri, 04 Nov 2011 14:32:50 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi. [88.195.122.240]) by mx.google.com with ESMTPS id k13sm7943535fah.0.2011.11.04.14.32.48 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Nov 2011 14:32:48 -0700 (PDT) Message-ID: <4EB459FF.9010601@enterprisedb.com> Date: Fri, 04 Nov 2011 23:32:47 +0200 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.23) Gecko/20111010 Icedove/3.1.15 MIME-Version: 1.0 To: Albe Laurenz CC: Marti Raudsepp *EXTERN* , Merlin Moncure *EXTERN* , pgsql-performance@postgresql.org Subject: Re: SSL encryption makes bytea transfer slow References: <4EABBE7D.9080201@enterprisedb.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201111/91 X-Sequence-Number: 45602 On 04.11.2011 10:43, Albe Laurenz wrote: > Marti Raudsepp wrote: >>> Disabling OpenSSL compression in the source (which >>> is possible since OpenSSL 1.0.0) does not give me any performance >>> improvement. >> >> If it doesn't give you any performance improvement then you haven't >> disabled compression. Modern CPUs can easily saturate 1 GbitE with >> AES256-encrypted connections. Compression is usually the bottleneck, >> at 20-30 MB/s. > > Hmm, my knowledge of OpenSSL is so little that it is well possible that > I did it wrong. I have attached the small patch I used; can you see > where I went wrong? That only works with OpenSSL 1.0.0 - did you upgrade? I thought you were using 0.9.7a earlier. FWIW, it would be better to test "#ifdef SSL_OP_NO_COMPRESSION" directly, rather than the version number. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com