From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 12 03:14:05 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D2A1DD75; Mon, 12 Jan 2015 03:14:05 +0000 (UTC) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C9568CB; Mon, 12 Jan 2015 03:14:05 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id s18so22038897lam.2; Sun, 11 Jan 2015 19:14:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:reply-to:to:cc:subject:date:mime-version :content-type:content-transfer-encoding:thread-index :content-language; bh=zoqZylkcTprr558XBgRdwHrQPcQ6WnXkjaotW0mzm8o=; b=dmb+QxcIFQin1TXfPJq3ksZV4iHjT5PzImcpviP0I5/yD5PV+Sm6yOcnvSPnycAev0 6t6PEk3EZxdeXGytwiwyB5XfBCit4SSR21fn6wi+ktTiAaOsUwbK4RLSq2N17Qb0Yw1g WtRcAiZYEajo76PE1hkHMjYQVa5D+bsLJnekMXJW1yI1ZgUVDGc789fTyH5pn0GuXIgE 1PB086LUhWewny+JgHvCHKYTQuFfpcWEzoJ40DYpvnUtIF9A2z1OTWKoh/HMOyQhCe8X lLWGP2FAPLGnwcNiMazfyjD4jQS69IRNa7JhFTivh52V7+MFk00dvkKoYnUivpSbJxe2 7vJQ== X-Received: by 10.152.115.146 with SMTP id jo18mr34634340lab.9.1421032443159; Sun, 11 Jan 2015 19:14:03 -0800 (PST) Received: from rimwks1w7x64 ([2001:470:1f15:8e:b007:2759:7397:9491]) by mx.google.com with ESMTPSA id w3sm3718872lag.35.2015.01.11.19.14.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Jan 2015 19:14:02 -0800 (PST) Message-ID: <54b33bfa.e31b980a.3e5d.ffffc823@mx.google.com> X-Google-Original-Message-ID: <010101d02e15$d0862eb0$71928c10$@IM@gmail.com> From: rozhuk.im@gmail.com X-Google-Original-From: Reply-To: To: , Subject: ChaCha8/12/20 and GEOM ELI tests Date: Mon, 12 Jan 2015 06:13:59 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdAuFc83D4H1X8qAQ5a13xwwqTkDpw== Content-Language: ru Cc: rozhuk.im@gmail.com X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2015 03:14:06 -0000 FreeBSD firewall 11.0-CURRENT FreeBSD 11.0-CURRENT #3 r276867M: Fri Jan = 9 09:34:39 MSK 2015 root@firewall:/usr/obj/usr/src/sys/RIMx64 amd64 Cha=D1ha patch: http://netlab.linkpc.net/download/software/FreeBSD/patches/chacha.patch HW: Core Duo E8500, 8Gb DDR2-800. dd if=3D/dev/zero of=3D/dev/md0 bs=3D1m 2148489421 bytes/sec # sector =3D 512b 3DES-CBC-192 =3D 20773120 bytes/sec AES-CBC-128 =3D 85276853 bytes/sec AES-CBC-256 =3D 68893016 bytes/sec AES-XTS-128 =3D 68194868 bytes/sec AES-XTS-256 =3D 56611573 bytes/sec Blowfish-CBC-128 =3D 11169657 bytes/sec Blowfish-CBC-256 =3D 11185891 bytes/sec Camellia-CBC-128 =3D 78077243 bytes/sec Camellia-CBC-256 =3D 65732219 bytes/sec ChaCha8-XTS-256 =3D 258042765 bytes/sec ChaCha12-XTS-256 =3D 223616967 bytes/sec ChaCha20-XTS-256 =3D 176005366 bytes/sec XChaCha8-XTS-256 =3D 228292624 bytes/sec XChaCha12-XTS-256 =3D 195577624 bytes/sec XChaCha20-XTS-256 =3D 152247267 bytes/sec XChaCha20-XTS-128 =3D 152717737 bytes/sec ! 128 bit key have same speed = as 256 # sector =3D 4kb 3DES-CBC-192 =3D 22018189 bytes/sec AES-CBC-128 =3D 104097143 bytes/sec AES-CBC-256 =3D 81983833 bytes/sec AES-XTS-128 =3D 78559346 bytes/sec AES-XTS-256 =3D 66047200 bytes/sec Blowfish-CBC-128 =3D 38635464 bytes/sec Blowfish-CBC-256 =3D 38810555 bytes/sec Camellia-CBC-128 =3D 92814510 bytes/sec Camellia-CBC-256 =3D 75949489 bytes/sec ChaCha8-XTS-256 =3D 337336982 bytes/sec ChaCha12-XTS-256 =3D 284740187 bytes/sec ChaCha20-XTS-256 =3D 217326865 bytes/sec XChaCha8-XTS-256 =3D 328424551 bytes/sec XChaCha12-XTS-256 =3D 278579692 bytes/sec XChaCha20-XTS-256 =3D 211660225 bytes/sec Optimized AES-XTS - speed like AES-CBC: AES-XTS-128 =3D 102841051 bytes/sec AES-XTS-256 =3D 80813644 bytes/sec Prepare env: mdmfs -S -o async -s 4g md /media Per test: geli init -v -e ALGO_NAME -i 8 -l KEY_LEN -s SECTOR_SIZE /dev/md0 geli attach /dev/md0 dd if=3D/dev/zero of=3D/dev/md0.eli bs=3D1m geli detach /dev/md0.eli top -aSCHIP CPU 0: 0.0% user, 0.0% nice, 45.8% system, 0.0% interrupt, 54.2% idle CPU 1: 0.0% user, 0.0% nice, 54.2% system, 0.0% interrupt, 45.8% idle Mem: 4104M Active, 364M Inact, 558M Wired, 828M Buf, 2927M Free Swap: PID USERNAME PRI NICE SIZE RES STATE C TIME CPU COMMAND 10 root 155 ki31 0K 32K RUN 0 842:15 54.04% = [idle{idle: cpu0}] 5319 root 43 - 0K 16K CPU1 1 0:30 51.55% = [g_eli[1] md0] 10 root 155 ki31 0K 32K RUN 1 842:36 45.69% = [idle{idle: cpu1}] 5318 root 43 - 0K 16K RUN 0 0:32 43.47% = [g_eli[0] md0] 3490 root -8 - 0K 16K mdwait 1 2:11 2.79% [md0] 12 root -8 - 0K 48K - 1 0:48 1.25% [geom{g_up}] 5399 root -8 0 12188K 3904K physwr 1 0:00 0.81% dd if=3D/dev/zero of=3D/dev/md0.eli bs=3D1m 3506 root 40 0 21668K 3688K CPU0 0 0:11 0.16% top = -aSCHIP 12 root -8 - 0K 48K - 1 0:06 0.14% [geom{g_down}]