From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Blinick, Stephen L" Subject: RE: wip-auth Date: Wed, 28 Jan 2015 01:10:33 +0000 Message-ID: <3649A15A2562B54294DE14BCE5AC79120AB4EF7A@FMSMSX106.amr.corp.intel.com> References: <3649A15A2562B54294DE14BCE5AC79120AB43257@ORSMSX152.amr.corp.intel.com> <3649A15A2562B54294DE14BCE5AC79120AB4E6A6@FMSMSX106.amr.corp.intel.com> <54C6847D.4080300@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Return-path: Received: from mga03.intel.com ([134.134.136.65]:55811 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753514AbbA1BKg convert rfc822-to-8bit (ORCPT ); Tue, 27 Jan 2015 20:10:36 -0500 In-Reply-To: <54C6847D.4080300@redhat.com> Content-Language: en-US Sender: ceph-devel-owner@vger.kernel.org List-ID: To: "mnelson@redhat.com" , Sage Weil Cc: "andreas.bluemle@itxperts.de" , "ceph-devel@vger.kernel.org" Hi Mark -- it doesn't, but it helps explain why there's some variance in all the various measurements. I've only been running with the various debug settings off, but message signing, crc, authentication, etc at defaults. I know some of the other results are with everything off, and that seems to have a large impact. Somewhere when switching versions, libnss became default, and so I was comparing RHEL7 w/ libnss to Ubuntu w/ Cryptopp. When I switched to Cryptopp with RHEL7 below the numbers in my environment improved again. However, since libnss is the direction, I'll stick to that (and hopefully make back those improvements and more in the latest wip-auth commits). Seems complex enough it's worth talking through verbally :) Thanks, Stephen -----Original Message----- From: Mark Nelson [mailto:mark.nelson@inktank.com] Sent: Monday, January 26, 2015 11:16 AM To: Blinick, Stephen L; Sage Weil Cc: andreas.bluemle@itxperts.de; ceph-devel@vger.kernel.org Subject: Re: wip-auth Hi Stephen, Does this explain the results you were seeing earlier with the memstore testing? Mark On 01/26/2015 12:00 PM, Blinick, Stephen L wrote: > Good to know, I was wondering why the spec file defaulted to lib-nss.. the dpkg-build for debian packages just uses whatever configuration you had built, and I believe that will use libcryptopp if the dependency is installed on the build machine (last I looked). > > I forgot to mention the numbers below were based on v.91. > > Thanks, > > Stephen > > -----Original Message----- > From: ceph-devel-owner@vger.kernel.org > [mailto:ceph-devel-owner@vger.kernel.org] On Behalf Of Sage Weil > Sent: Monday, January 26, 2015 10:24 AM > To: Blinick, Stephen L > Cc: andreas.bluemle@itxperts.de; ceph-devel@vger.kernel.org > Subject: RE: wip-auth > > On Mon, 26 Jan 2015, Blinick, Stephen L wrote: >> I noticed that the spec file for building RPM's defaults to building with libnss, instead of libcrypto++. Since the measurements I'd done so far were from those RPM's I rebuilt with libcrypto++.. so FWIW here is the difference between those two on my system, memstore backend with a single OSD, and single client. >> >> Dual socket Xeon E5 2620v3, 64GB Memory, RHEL7 >> Kernel: 3.10.0-123.13.2.el7 >> >> 100% 4K Writes, 1xOSD w/ Rados Bench >> libnss | Cryptopp >> # QD IOPS Latency(ms) | IOPS Latency(ms) IOPS Improvement % >> 16 14432.57 1.11 | 18896.60 0.85 30.93% >> >> 100% 4K Reads, 1xOSD w/ Rados Bench >> libnss | Cryptopp # QD IOPS Latency(ms) | IOPS Latency(ms) IOPS >> Improvement % 16 19532.53 0.82 | 25708.70 0.62 31.62% > > Yikes, 30%! I think this definitely worth some effort. We switched to libnss because it has the weird government certfiications that everyone wants and is more prevalent. crypto++ is also not packaged for Red Hat distros at all (presumably for that reason). > > I suspect that most of the overhead is in the encryption context setup and can be avoided with a bit of effort.. > > sage > > >> >> >> Thanks, >> >> Stephen >> >> -----Original Message----- >> From: ceph-devel-owner@vger.kernel.org >> [mailto:ceph-devel-owner@vger.kernel.org] On Behalf Of Sage Weil >> Sent: Thursday, January 22, 2015 4:56 PM >> To: andreas.bluemle@itxperts.de >> Cc: ceph-devel@vger.kernel.org >> Subject: wip-auth >> >> Hi Andreas, >> >> I took a look at the wip-auth I mentioned in the security call last week... and the patch didn't work at all. Sorry if you wasted any time trying it. >> >> Anyway, I fixed it up so that it actually worked and made one other optimization. It would be great to hear what latencies you measure with the changes in place. >> >> Also, it might be worth trying --with-cryptopp (or --with-nss if you >> built cryptopp by default) to see if there is a difference. There is >> a ton of boilerplate setting up encryption contexts and key >> structures and so on that I suspect could be cached (perhaps stashed >> in the CryptoKey struct?) with a bit of effort. See >> >> https://github.com/ceph/ceph/blob/master/src/auth/Crypto.cc#L99-L213 >> >> sage >> -- >> To unsubscribe from this list: send the line "unsubscribe ceph-devel" >> in the body of a message to majordomo@vger.kernel.org More majordomo >> info at http://vger.kernel.org/majordomo-info.html >> >> > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" > in the body of a message to majordomo@vger.kernel.org More majordomo > info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" > in the body of a message to majordomo@vger.kernel.org More majordomo > info at http://vger.kernel.org/majordomo-info.html >