From owner-freebsd-current@FreeBSD.ORG Fri Aug 23 15:16:22 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 92C8C110; Fri, 23 Aug 2013 15:16:22 +0000 (UTC) (envelope-from roberto@keltia.freenix.fr) Received: from keltia.net (cl-90.mrs-01.fr.sixxs.net [IPv6:2a01:240:fe00:59::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 53FC62DEA; Fri, 23 Aug 2013 15:16:22 +0000 (UTC) Received: from roberto02-aw.erc.corp.eurocontrol.int (unknown [88.190.16.243]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: roberto) by keltia.net (Postfix) with ESMTPSA id 0601A52AE; Fri, 23 Aug 2013 17:16:20 +0200 (CEST) Date: Fri, 23 Aug 2013 17:16:15 +0200 From: Ollivier Robert To: freebsd-current@freebsd.org, security@FreeBSD.org, current@FreeBSD.org Subject: Re: patch to improve AES-NI performance Message-ID: <20130823151615.GD41379@roberto02-aw.erc.corp.eurocontrol.int> References: <20130822202027.GH94127@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130822202027.GH94127@funkthat.com> X-Operating-System: MacOS X / Macbook Pro - FreeBSD 7.2 / Dell D820 SMP User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 15:16:22 -0000 According to John-Mark Gurney on Thu, Aug 22, 2013 at 01:20:27PM -0700: > I have developed a patch to improve AES-NI performance. If you took the > AES-XTS algorithm into userland (no cryptodev or geli usage), these > changes improve the performance over 10x in my tests (from ~150MB/sec to > over 2GB/sec). In tests of geli on gnop, the performance improvement is > more moderate, around 4x due to overhead in other parts of the system. Thanks a lot for this patch. Now, looking at it in the stable/9 context, I can see that pjd did not merge (as he said at the time of commit) r226839 & r226839. Is there any objection to merge these two (and possibly 247061 as well -- copyright update)? I ask that for two reasons, these two revisions are speeding up AES-NI quite a bit and they are required for using jmg's patch. I'll be testing all this in the next few days on my new AES-NI enabled machine. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.net In memoriam to Ondine, our 2nd child: http://ondine.keltia.net/