From owner-freebsd-current@FreeBSD.ORG Fri Aug 6 11:35:37 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC45816A4CE for ; Fri, 6 Aug 2004 11:35:37 +0000 (GMT) Received: from av1-2-sn1.fre.skanova.net (av1-2-sn1.fre.skanova.net [81.228.11.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6686343D2F for ; Fri, 6 Aug 2004 11:35:35 +0000 (GMT) (envelope-from daniel_k_eriksson@telia.com) Received: by av1-2-sn1.fre.skanova.net (Postfix, from userid 502) id 3C25E37F71; Fri, 6 Aug 2004 13:35:34 +0200 (CEST) Received: from smtp3-2-sn1.fre.skanova.net (smtp3-2-sn1.fre.skanova.net [81.228.11.164]) by av1-2-sn1.fre.skanova.net (Postfix) with ESMTP id 2D21D37E4B for ; Fri, 6 Aug 2004 13:35:34 +0200 (CEST) Received: from gadget (h130n1fls11o822.telia.com [213.64.66.130]) by smtp3-2-sn1.fre.skanova.net (Postfix) with ESMTP id 18BA737E4B for ; Fri, 6 Aug 2004 13:35:34 +0200 (CEST) From: "Daniel Eriksson" To: Date: Fri, 6 Aug 2004 13:35:38 +0200 Organization: Home Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Subject: Simple BDE disc encryption benchmark X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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, 06 Aug 2004 11:35:37 -0000 Hi! I just ran a very simple benchmark on the GBDE disc encryption in CURRENT. The benchmark setup looked like this: * Slow machine (Celeron 366, 128MB mem) * 5-CURRENT from yesterday, running off of some old ATA disc * 2 x 9GB 10k rpm SCSI discs hooked up to an Adaptec 2940 The benchmark was to copy the /usr directory (copied from the ATA disc, 1.7GB) or a directory containing big files (/bigfiles, 1.7GB in 16 files created by 'dd if=3D/dev/random ...') from scsi disc 1 to scsi disc 2. I = ran each benchmark twice and took a simple average of the results. unencrypted to unencrypted: /usr : 697 real 10.6 user 235 sys (~50% idle) /bigfiles: 123 real 0.4 user 84 sys (~25% idle) unencrypted to encrypted: /usr : 1778 real 10.7 user 236 sys (~35% idle) /bigfiles: 379 real 0.4 user 82 sys (~10% idle) encrypted to encrypted: /usr : 1978 real 11.6 user 242 sys (~25% idle) /bigfiles: 615 real 0.4 user 80 sys (0% idle) The only time the CPU was completely busy was when copying /bigfiles = from encrypted to encrypted. My question is: Why does the it take so much longer when encryption is involved even though 'top' seems to think there are CPU cycles left to = burn? /Daniel Eriksson