From owner-freebsd-current@FreeBSD.ORG Tue Aug 9 20:18:18 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 C359816A41F for ; Tue, 9 Aug 2005 20:18:18 +0000 (GMT) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0E5A4475B for ; Tue, 9 Aug 2005 20:18:17 +0000 (GMT) (envelope-from mike@sentex.net) Received: from pumice6.sentex.ca (pumice6.sentex.ca [64.7.153.21]) by smarthost1.sentex.ca (8.13.3/8.13.3) with ESMTP id j79KHKtC050529 for ; Tue, 9 Aug 2005 16:17:21 -0400 (EDT) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by pumice6.sentex.ca (8.13.3/8.13.3) with ESMTP id j79KIGUi052599; Tue, 9 Aug 2005 16:18:16 -0400 (EDT) (envelope-from mike@sentex.net) Received: from simian.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.3/8.13.3) with ESMTP id j79KIEBY029273 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Aug 2005 16:18:14 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <6.2.1.2.0.20050809161312.083cf828@64.7.153.2> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Tue, 09 Aug 2005 16:20:20 -0400 To: Sam Leffler From: Mike Tancsa In-Reply-To: <42F82EFA.1010001@errno.com> References: <42475.1123513974@phk.freebsd.dk> <6.2.1.2.0.20050808162711.04d40c28@64.7.153.2> <42F82EFA.1010001@errno.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new X-Scanned-By: MIMEDefang 2.51 on 64.7.153.18 X-Scanned-By: MIMEDefang 2.51 on 64.7.153.21 Cc: Poul-Henning Kamp , freebsd-current@freebsd.org Subject: Re: Hifn driver in SMP (was Re: GELI - disk encryption GEOM class committed.) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 09 Aug 2005 20:18:18 -0000 At 12:20 AM 09/08/2005, Sam Leffler wrote: >I much prefer cryptotest for exercising the hardware. If you increase the >number of concurrent threads (-t I think) you can really load the device. > >I wouldn't be surprised if there were an smp locking bug in the crypto code Found the program. Under RELENG_4, its quite happy doing cryptotest -t 4 -p -a aes 100000 92.781 sec, 200000 aes crypts, 16 bytes, 34490 byte/sec, 0.3 Mb/sec dispatch->invoke: avg 3599 ns : min 1955 ns : max 55315 ns [800048 samps] invoke->done: avg 56574 ns : min 32406 ns : max 158121 ns [800048 samps] done->cb: avg 3707 ns : min 1677 ns : max 57270 ns [800048 samps] cb->finis: avg 5286 ns : min 2235 ns : max 63695 ns [800048 samps] ... continuously. But I am pretty sure this is an IRQ routing issue and not a HiFn specific thing.