[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hifn card
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: hifn card
- From: jared r r spiegel <jrrs_(_at_)_ice-nine_(_dot_)_org>
- Date: Fri, 16 Apr 2004 15:35:30 -0600
- Mail-followup-to: jared r r spiegel <jrrs_(_at_)_ice-nine_(_dot_)_org>, misc_(_at_)_openbsd_(_dot_)_org
On Fri, Apr 16, 2004 at 03:48:31PM -0500, Fabio Olive Leite wrote:
> On Fri, Apr 16, 2004 at 10:03:10PM +0200, Michel Labarre wrote:
> > Hello
> > I've installed an crypto card (chip 7954) whitout problems with 3.5.
> > is anyone know how to see the card's activity ie during openssl process ?
>
> If you just want to see if it's working, or its impact in crypto
> speed, you can run the "openssl speed" command, with and without the
> card.
i have a vpn1401, and 'openssl speed' doesn't seem to cause
any use on the hifn ( per watching 'systat vmstat' )
to see the hifn in use, i can try something like:
$ sudo sysctl -w kern.usercrypto=1
kern.usercrypto: 0 -> 1
$ time openssl enc -des3 -in sengoku.mpg -k none -out /dev/null
22.04s real 0.16s user 0.50s system
( the hifn is making many ~350 interrupts/second at that time )
then if i turn kern.usercrypto to 0,
$ time openssl enc -des3 -in sengoku.mpg -k none -out /dev/null
18.41s real 9.59s user 0.20s system
so you can see the 'user' has gone up quite a bit.
the machine is a pIII/450, so slighly beats the hifn in this
process, but that's not the point.
if there is a way to make 'openssl speed' actually test the
hifn, i'd love to hear it -- or if i just must have something
setup wrong...
jared
--
[ openbsd 3.5 GENERIC ( mar 26 ) // i386 ]
Visit your host, monkey.org