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 OfItcQjhdqpp for ; Wed, 8 Feb 2012 16:04:58 +0100 (CET) Received: from nm9-vm0.bullet.mail.ird.yahoo.com (nm9-vm0.bullet.mail.ird.yahoo.com [77.238.189.197]) by mail.saout.de (Postfix) with SMTP for ; Wed, 8 Feb 2012 16:04:58 +0100 (CET) References: <1328567304.90926.YahooMailNeo@web29602.mail.ird.yahoo.com> <20120207081135.GC17107@tansi.org> <20120207083334.GA18260@tansi.org> Message-ID: <1328713497.10971.YahooMailNeo@web29605.mail.ird.yahoo.com> Date: Wed, 8 Feb 2012 15:04:57 +0000 (GMT) From: Mickael In-Reply-To: <20120207083334.GA18260@tansi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [dm-crypt] Re : Poor performances with nfs and Kernel 3.x Reply-To: Mickael List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "dm-crypt@saout.de" >De=A0: Arno Wagner =0A>=C0=A0: dm-crypt@saout.de=0A>Cc= =A0: =0A>Envoy=E9 le : Mardi 7 f=E9vrier 2012 9h33=0A>Objet=A0: Re: [dm-cry= pt] Poor performances with nfs and Kernel 3.x=0A>=0A>O.k., no such obervati= on with 3.2.2 on client and server. I got=0A>=0A>root /gate/tmp>cat ttt | w= cs > /dev/null=0A>read:=A0 2.147 GB [=A0 2147483648 B]=A0 =A0 avg:=A0 69.= 274 MB/sec [=A0 =A0 31 sec]=0A>=0A>(wcs, a.k.a. wc-stream is a small tool I= wrote to do real-time=0A>monitoring of pipeline throughput and byte count,= sources=0A>below.) This is with some ramp-up and almost 100% CPU load=0A>o= n the (slower) server. =0A>=0A>I noticed though that nfsiostat is not the r= ight tool to measure, as=0A>it gives you performance over the whole time th= e device has been =0A>mounted, i.e. the throughput number keeps being updat= ed in=0A>real-time. =0A>=0A>Maybe re-run with wcs as shown above (compile i= nstructions are in=0A>the header of wcs.c) and also monitor CPU usage on th= e server=0A>while this is rrunning, e.g. with "top". I am not saying you = =0A>imagine the issue, but lets be sure the measurement is good.=0A>=0A>If = you do not want to compile anything, you could also use=0A>something like "= time cat ttt > /dev/null" and calculate=0A>throughput manually. =0A>=0A>Arn= o=0A>=0A>----- CUTed -----=0A>=0A=0A=0AHello Arno,=0AHere are the new tests= with wcs: results are still the same.=0A=0A/tmp is the tmp directory on th= e client (7200 rpm HD)=0A/CRYPT is a crypted partition on the server (Green= HD ~5600 rpm)=0A/SAV is a non-crypted partition on the server (Green HD ~5= 600 rpm)=0ACPU monitored with htop=0A=0A=0A*** Server with Kernel 3.0.0-15-= server #26=0A=0A* From client, using NFS on crypted partition:=0A=0Acat /tm= p/testfile.avi | wcs > /mnt/CRYPT/testfile.avi=0A=A0read:=A0=A0 2.032 GB [= =A0=A0 2032330895 B]=A0=A0=A0 avg:=A0 41.476 MB/sec [=A0=A0=A0 49 sec]=0A= =0Acat /mnt/CRYPT/testfile.avi | wcs > /tmp/testfile.avi=0A=A0read:=A0=A0 2= .032 GB [=A0=A0 2032330895 B]=A0=A0=A0 avg:=A0 29.454 MB/sec [=A0=A0=A0 69 = sec]=A0=A0=A0 <---------------=0A=0A-----------=0A=0A* From client, using N= FS on non-crypted partition=0A=0Acat /tmp/testfile.avi | wcs > /mnt/SAV/tes= tfile.avi=0A=A0read:=A0=A0 2.032 GB [=A0=A0 2032330895 B]=A0=A0=A0 avg:=A0 = 72.583 MB/sec [=A0=A0=A0 28 sec]=0A=0Acat /mnt/SAV/testfile.avi | wcs > /tm= p/testfile.avi=0A=A0read:=A0=A0 2.032 GB [=A0=A0 2032330895 B]=A0=A0=A0 avg= :=A0 65.559 MB/sec [=A0=A0=A0 31 sec]=0A=0A-----------=0A=0A=0A* From Serve= r:=0A=0Acat /mnt/CRYPT/testfile.avi | wcs > /dev/null=0A=A0read:=A0=A0 2.03= 2 GB [=A0=A0 2032330895 B]=A0=A0=A0 avg:=A0 72.583 MB/sec [=A0=A0=A0 28 sec= ]=0A=0Acat /mnt/SAV/testfile.avi | wcs > /dev/null=0A=A0read:=A0=A0 2.032 G= B [=A0=A0 2032330895 B]=A0=A0=A0 avg:=A0 67.744 MB/sec [=A0=A0=A0 30 sec]= =0A=0A-----------=0A=0Acat /mnt/CRYPT/testfile.avi | wcs > /mnt/SAV/testfil= e.avi =0A=A0read:=A0=A0 2.032 GB [=A0=A0 2032330895 B]=A0=A0=A0 avg:=A0 56.= 454 MB/sec [=A0=A0=A0 36 sec]=0A=0Acat /mnt/SAV/testfile.avi | wcs > /mnt/C= RYPT/testfile.avi =0A=A0read:=A0=A0 2.032 GB [=A0=A0 2032330895 B]=A0=A0=A0= avg:=A0 54.928 MB/sec [=A0=A0=A0 37 sec]=0A=0A=0A=0A=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= =0A*** Server with Kernel 2.6.38-13-server #52=0A=0A* From client, using NF= S on crypted partition:=0A=0Acat /tmp/testfile.avi | wcs > /mnt/CRYPT/testf= ile.avi =0A=A0read:=A0=A0 2.032 GB [=A0=A0 2032330895 B]=A0=A0=A0 avg:=A0 5= 4.928 MB/sec [=A0=A0=A0 37 sec]=A0=A0=A0 CPU=3D100%=0A=0Acat /mnt/CRYPT/tes= tfile.avi | wcs > /tmp/testfile.avi =0A=A0read:=A0=A0 2.032 GB [=A0=A0 2032= 330895 B]=A0=A0=A0 avg:=A0 81.293 MB/sec [=A0=A0=A0 25 sec]=A0=A0=A0 CPU=3D= 98%=A0=A0=A0 =A0=A0=A0 <-------------------=0A=0A-----------=0A=0A* From cl= ient, using NFS on non-crypted partition=0A=0Acat /tmp/testfile.avi | wcs >= /mnt/SAV/testfile.avi=0A=A0read:=A0=A0 2.032 GB [=A0=A0 2032330895 B]=A0= =A0=A0 avg:=A0 63.510 MB/sec [=A0=A0=A0 32 sec]=A0=A0=A0 CPU=3D50%=0A=0Acat= /mnt/SAV/testfile.avi | wcs > /tmp/testfile.avi=0A=A0read:=A0=A0 2.032 GB = [=A0=A0 2032330895 B]=A0=A0=A0 avg:=A0 63.510 MB/sec [=A0=A0=A0 32 sec]=A0= =A0=A0 CPU=3D25%=0A=0A=0A=0A* From Server:=0A=0Acat /mnt/CRYPT/testfile.avi= | wcs > /dev/null=0A=A0read:=A0=A0 2.032 GB [=A0=A0 2032330895 B]=A0=A0=A0= avg:=A0 84.680 MB/sec [=A0=A0=A0 24 sec]=A0=A0=A0 CPU=3D98%=0A=0Acat /mnt/= SAV/testfile.avi | wcs > /dev/null=0A=A0read:=A0=A0 2.032 GB [=A0=A0 203233= 0895 B]=A0=A0=A0 avg:=A0 67.744 MB/sec [=A0=A0=A0 30 sec]=A0=A0=A0 CPU=3D25= %=0A=0A-----------=0A=0Acat /mnt/CRYPT/testfile.avi | wcs > /mnt/SAV/testfi= le.avi =0A=A0read:=A0=A0 2.032 GB [=A0=A0 2032330895 B]=A0=A0=A0 avg:=A0 52= .111 MB/sec [=A0=A0=A0 39 sec]=A0=A0=A0 CPU=3D50%-100%=0A=0Acat /mnt/SAV/te= stfile.avi | wcs > /mnt/CRYPT/testfile.avi =0A=A0read:=A0=A0 2.032 GB [=A0= =A0 2032330895 B]=A0=A0=A0 avg:=A0 47.264 MB/sec [=A0=A0=A0 43 sec]=A0=A0= =A0 CPU=3D75%-100%