Date: Fri, 20 Oct 2006 23:11:39 +0200 From: Matthieu Michaud <matthieu.michaud@epita.info> To: Mike Tancsa <mike@sentex.net> Cc: freebsd-stable@freebsd.org Subject: Re: VIA C7 support Message-ID: <45393B8B.5050506@epita.info> In-Reply-To: <7.0.1.0.0.20061012115832.15edc1b0@sentex.net> References: <1160664469.92207.51.camel@moe.cload.net> <200610121537.k9CFbWpw069896@lurza.secnetix.de> <7.0.1.0.0.20061012115832.15edc1b0@sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Tancsa a écrit : > At 11:37 AM 10/12/2006, Oliver Fromme wrote: >> Matthieu Michaud wrote: >> > I rent a small server based on a VIA C7 on which I installed a >> > 6.2-PRERELEASE as of today (see dmesg and kernconf attached). It runs >> > fairly well but I wonder if it couldn't be faster. >> > >> > According to padlock(4) man page, crypto hardware support is available >> > by adding padlock, crypto and cryptodev kernel options. I compiled >> it as >> > modules. I haven't noticed difference between 'openssl speed' and >> > 'openssl speed -engine padlock'. I attached results. >> >> I don't know if the openssl command really uses the padlock >> engine. I doubt it. > > It will if you tell it to, but remember, its only AES that it will speed > up. You wont see a difference in things like 3des etc. > > Just do the tests for aes > > Try something like > > openssl speed -evp aes-256-ecb -engine padlock > vs > openssl speed -evp aes-256-ecb -engine dynamic > > On a CPU: VIA C3 Nehemiah+RNG+AES (796.77-MHz 686-class CPU) > I get > > type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 > bytes > aes-256-ecb 37610.62k 142398.18k 389573.81k 678504.21k > 868056.96k > aes-256-ecb 4923.20k 5143.88k 5222.51k 5256.46k > 5276.31k > > For comparison, here is the same test on a Celeron 2.6 and an AMD 3800 > aes-256-ecb 39727.25k 41359.33k 42596.01k 42919.64k > 42940.31k > aes-256-ecb 27408.65k 32035.54k 32623.81k 32767.08k > 32822.06k ok, now i see a difference. on my C7 running a recent 6.2 : aes-128-ecb 140283.57k 509427.16k 1340639.69k 2158707.04k 2626033.49k aes-128-ecb 16956.08k 17668.87k 17894.31k 17951.39k 17967.98k it might explain scp speedup. thanx for pointing it to me :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45393B8B.5050506>