From owner-freebsd-current@FreeBSD.ORG Wed Aug 10 05:56:20 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 B77D016AA01 for ; Wed, 10 Aug 2005 05:55:30 +0000 (GMT) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6061645626 for ; Wed, 10 Aug 2005 02:47:37 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.93] ([66.127.85.93]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id j7A2lams056905 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Aug 2005 19:47:36 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <42F96AF5.1010905@errno.com> Date: Tue, 09 Aug 2005 19:48:21 -0700 From: Sam Leffler Organization: Errno Consulting User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Tancsa References: <42475.1123513974@phk.freebsd.dk> <6.2.1.2.0.20050808162711.04d40c28@64.7.153.2> <42F82EFA.1010001@errno.com> <6.2.1.2.0.20050809161312.083cf828@64.7.153.2> In-Reply-To: <6.2.1.2.0.20050809161312.083cf828@64.7.153.2> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 10 Aug 2005 05:56:20 -0000 Mike Tancsa wrote: > 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. FWIW -p significantly slows down performance. Try something like -t 64 or -t 128. Sam