From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gC0i8QaK2z6P for ; Thu, 9 Feb 2012 13:04:38 +0100 (CET) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Thu, 9 Feb 2012 13:04:38 +0100 (CET) Received: from gatewagner.dyndns.org (84-74-163-71.dclient.hispeed.ch [84.74.163.71]) by v4.tansi.org (Postfix) with ESMTPA id 35EAD204D6B for ; Thu, 9 Feb 2012 13:04:38 +0100 (CET) Date: Thu, 9 Feb 2012 13:04:37 +0100 From: Arno Wagner Message-ID: <20120209120437.GC7717@tansi.org> References: <1328567304.90926.YahooMailNeo@web29602.mail.ird.yahoo.com> <20120207081135.GC17107@tansi.org> <20120207083334.GA18260@tansi.org> <1328713497.10971.YahooMailNeo@web29605.mail.ird.yahoo.com> <20120208152645.GA17166@tansi.org> <1328723721.26190.YahooMailNeo@web29606.mail.ird.yahoo.com> <20120209073717.GA3176@tansi.org> <4F339DB2.20603@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F339DB2.20603@redhat.com> Subject: Re: [dm-crypt] Re : Re : Poor performances with nfs and Kernel 3.x List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Thu, Feb 09, 2012 at 11:19:30AM +0100, Milan Broz wrote: > On 02/09/2012 08:37 AM, Arno Wagner wrote: > >On Wed, Feb 08, 2012 at 05:55:21PM +0000, Mickael wrote: > >>Here are more tests focusing the CPU load with htop snapshot: > >> > >>with Kernel 3.x, nfsd threads are using more CPU !? > > > >This is what I suspected. You setup is already slightly > >CPU-limited when reading/writing encrypted partitions. > >Any additional CPU needed by NFS is then directly deduced > >from CPU available for encryption. > > Not sure if it help, but it would be interesting if you can try > to use patch from this thread > http://article.gmane.org/gmane.linux.kernel/1245748 > > (it can be completely unrelated though, I have no time to test > it now myself) > > BTW I will add possibility to use null cipher to cryptsetup, > just to test exactly these situations (null cipher eliminates all > crypto operations), That is a really good idea! Arno > for now, you can try it with dmsetup and > measure preformance (this should uncover if encryption is > the problem or there is some timing problem): > > (Replace DEV with your disk, note key is "-" - means empty) > > dmsetup create x --table "0 $(blockdev --getsz DEV) crypt cipher_null-ecb-null - 0 DEV 0" > > Milan > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > -- Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F ---- One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision. -- Bertrand Russell