From owner-cvs-all Mon Dec 24 22:48:17 2001 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id D7A0437B417; Mon, 24 Dec 2001 22:48:06 -0800 (PST) Received: from localhost (imp@tc1-330.swcp.com [216.184.0.231] (may be forged)) by rover.village.org (8.11.3/8.11.3) with ESMTP id fBP6lLl08507; Mon, 24 Dec 2001 23:47:23 -0700 (MST) (envelope-from imp@village.org) Date: Mon, 24 Dec 2001 23:47:20 -0700 (MST) Message-Id: <20011224.234720.15269884.imp@village.org> To: peter.jeremy@alcatel.com.au Cc: phk@critter.freebsd.dk, dg@root.com, bde@zeta.org.au, dillon@apollo.backplane.com, silby@silby.com, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/sio sio.c From: "M. Warner Losh" In-Reply-To: <20011224162247.B85044@gsmx07.alcatel.com.au> References: <20011222193231.D24034@nexus.root.com> <61654.1009097922@critter.freebsd.dk> <20011224162247.B85044@gsmx07.alcatel.com.au> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG : >My guess would be that only four people in the project who have : >ever measured our interrupt latency: Bruce, Louie, Warner and me. : : That's definitely an under-estimate. Andrew Gallatin posted his : latency measurements on a Alpha h/w. I think I've seen one or two : other people indicate that they'd made measurements on -hackers. I've : also done some limited latency testing on both i386 and Alpha's. I'm only able to measure the interrupt latency of ISA devices, and even then I'm not sure my results are good yet (which is why I haven't published them). I hope to present the findings at usenix. Bruce has a cool way to measure these things in software. : >If our interrupt latency is so bad that we cannot run a serial port : >as well on a PIII/Athlon 1GHz cpu as we could on a 486/66 a few : >years back, then the solution is not to make the serial driver more : >defensive, the solution is to fix the interrupt latency. : : Unfortunately, I can't see this happening. : 1) The migration of the PC-card interface to Cardbus means that PC- : card devices no longer have the option of a fast interrupt. This : will bite everyone who uses a laptop without a real builtin modem. Must bite slow laptop users. :-). My 900MHz Dell is using a 56k link as I type this w/o a single sio overflow. Also, the interrupt latency tolerence for PCI based devices is a few microseconds longer than for ISA devices because reading the status registers takes less time on the PCI bus. However, I have had complaints from a few people that have see silo overflows on pccard (both with fast interrupts, and slow ones now basically forced by 4.4). I don't know if the latencies in normal interrupts will all be solved by the HIGH -> MEDH change (since it takes us from 2 character times (32us) to 8 character times (128us). I've seen interrupt latency occasionally be as high as 20-100ms (depending on the machine we ran it on) for the parallel port (since I'm measuring pps from an atomic clock with it, we can tell these huge outliers very easily). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message