From owner-freebsd-current@FreeBSD.ORG Tue Aug 9 18:55:32 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 4FF9416A41F for ; Tue, 9 Aug 2005 18:55:32 +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 710AC43D53 for ; Tue, 9 Aug 2005 18:55:31 +0000 (GMT) (envelope-from mike@sentex.net) Received: from pumice3.sentex.ca (pumice3.sentex.ca [64.7.153.26]) by smarthost1.sentex.ca (8.13.3/8.13.3) with ESMTP id j79IsYfc044559 for ; Tue, 9 Aug 2005 14:54:34 -0400 (EDT) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by pumice3.sentex.ca (8.13.3/8.13.3) with ESMTP id j79ItTrb040054; Tue, 9 Aug 2005 14:55:29 -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 j79ItQwa028931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Aug 2005 14:55:26 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <6.2.1.2.0.20050809145104.082f43b0@64.7.153.2> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Tue, 09 Aug 2005 14:57:32 -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.26 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 18:55:32 -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. Where can I find a copy of that ? >I wouldn't be surprised if there were an smp locking bug in the crypto >code as I'm not sure it's been well-exercised recently and with more of >the kernel coming out from under Giant the locking within the subsystem is >getting more testing. On RELENG_4, on the 4way PIII, It seems to function just fine. However, one thing I have noticed is that it seems to have a lot of noirq errors where as I never see those on other boxes. RELENG_5 and above just lockup doing for i in `jot 40 1` do echo $i /usr/bin/openssl aes-128-cbc -in big -k pass | ssh -c aes128-cbc mdtancsa@127.0.0.1 "cat - > /dev/null" done well before 5 iterations. hippo# hifnstats input 2998255856 bytes 946932 packets output 2998243536 bytes 946931 packets invalid 0 nomem 0 abort 0 noirq 636235 unaligned 0 totbatch 0 maxbatch 0 nomem: map 0 load 0 mbuf 0 mcl 0 cr 0 sd 0 hippo# hippo# dmesg Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.11-RELEASE #1: Tue Aug 9 14:25:16 EDT 2005 mdtancsa@hippo.sentex.ca:/usr/src/sys/compile/hippo Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (500.02-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x672 Stepping = 2 Features=0x383fbff real memory = 2147475456 (2097144K bytes) config> q avail memory = 2087866368 (2038932K bytes) Changing APIC ID for IO APIC #0 from 0 to 4 on chip Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 FreeBSD/SMP: Multiprocessor motherboard: 4 CPUs cpu0 (BSP): apic id: 3, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000 cpu2 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 cpu3 (AP): apic id: 2, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 4, version: 0x00170011, at 0xfec00000 Preloaded elf kernel "kernel" at 0xc03c7000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc03c709c. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 11 entries at 0xc00fc7a0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #0 intpin 14 -> irq 2 IOAPIC #0 intpin 11 -> irq 5 pci0: on pcib0 isab0: at device 2.0 on pci0 isa0: on isab0 atapci0: at device 2.1 on pci0 atapci0: ATA channel disabled by BIOS pci0: at 2.2 irq 0 Timecounter "PIIX" frequency 3579545 Hz chip0: port 0x850-0x85f at device 2.3 on pci0 pci0: at 4.0 ahc0: port 0xe800-0xe8ff mem 0xfe94b000-0xfe94bfff irq 2 at device 6.0 on pci0 aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs hifn0 mem 0xfe940000-0xfe947fff,0xfe948000-0xfe949fff,0xfe94a000-0xfe94afff irq 5 at device 8.0 on pci0 hifn0: Hifn 7955, rev 0, 32KB dram em0: port 0xe4c0-0xe4ff mem 0xfe900000-0xfe91ffff,0xfe920000-0xfe93ffff ir0 em0: Speed:N/A Duplex:N/A pcib3: at device 18.0 on pci0 pcib4: at device 19.0 on pci0 pcib5: at device 20.0 on pci0 pcib1: on motherboard IOAPIC #0 intpin 20 -> irq 11 pci1: on pcib1 ahc1: port 0xfc00-0xfcff mem 0xfeb00000-0xfeb00fff irq 11 at device 8.0 on pci1 aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs pcib2: on motherboard pci2: on pcib2 orm0: