From owner-freebsd-current Wed Jul 30 11:53:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA24399 for current-outgoing; Wed, 30 Jul 1997 11:53:42 -0700 (PDT) Received: from Octopussy.MI.Uni-Koeln.DE (Octopussy.MI.Uni-Koeln.DE [134.95.166.20]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id LAA24373; Wed, 30 Jul 1997 11:53:34 -0700 (PDT) Received: from x14.mi.uni-koeln.de (annexr3-2.slip.Uni-Koeln.DE) by Octopussy.MI.Uni-Koeln.DE with SMTP id AA19624 (5.67b/IDA-1.5); Wed, 30 Jul 1997 20:53:26 +0200 Received: (from se@localhost) by x14.mi.uni-koeln.de (8.8.6/8.6.9) id UAA12429; Wed, 30 Jul 1997 20:53:23 +0200 (CEST) X-Face: " Date: Wed, 30 Jul 1997 20:53:22 +0200 From: Stefan Esser To: john hood Cc: =?iso-8859-1?Q?S=F8ren_Schmidt?= , freebsd-current@FreeBSD.ORG, Stefan Esser Subject: Re: code talks: announcing EIDE bus master patches References: <19970729221036.52544@mi.uni-koeln.de> <199707292224.AAA00624@sos.freebsd.dk> <199707300559.BAA02894@smoke.marlboro.vt.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.74 In-Reply-To: <199707300559.BAA02894@smoke.marlboro.vt.us>; from john hood on Wed, Jul 30, 1997 at 01:59:35AM -0400 Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Jul 30, john hood wrote: > Well, bonnie reports an increase in CPU load and some increase in I/O > speed on the hack box I developed the code on, while a little > spin-loop-at-idle-priority hack i coded up shows an improvement in > available CPU that it can consume. My conclusion: bonnie's CPU load > numbers are useless, at least for IDE drives. Well, as I already wrote (and Bruce Evans explained in much detail), the PIO transfers' CPU cycles are accounted anonymously in the "interrupt" category, and can't be associated with the process that caused them ... > Here's some more useless bonnie results. These are for a system with > a K5-PR90, a "VXPro" chipset (a relabeled VIA Apollo VP-1), 32MB of > RAM and two Quantum FB1080As. > > bash-2.00$ cat bonnie.pio > -------Sequential Output-------- ---Sequential Input-- --Random-- > -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- > Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU > 100 2913 66.7 4432 25.9 1541 15.5 3764 55.1 4512 31.4 70.9 9.1 What's missing from 100% in the "per char" tests is mostly spent on PIO transfers. > bash-2.00$ cat bonnie.dma > -------Sequential Output-------- ---Sequential Input-- --Random-- > -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- > Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU > 100 3934 98.2 4290 28.0 1606 22.3 4538 86.2 4483 48.2 74.9 9.9 > > > > It has improved my worldstone by ~10% if that counts for real world use.. > > > > > > Yes, one thing that is often underestimated is the fact, > > > that while PIO mode transfers consume only a small fraction > > > of the cycles of a fast CPU, but they tend to consume them > > > exactly at the time, when the CPU is highly loaded anyway. > > But said CPU is often waiting for the disk anyway. Yes, it is. But my point was that in many applications the CPU is **not** waiting for the disk, and then PIO can have a large impact on latencies observed by the user. On a Unix system, lots of file operations are running asynchronously (writes and file read ahead). And 10% is about the performance that can be had by going from a P-133 to a P-166 (which used to be a few hundred dollars until very recently :) > Eeeugh. I think it's time for a new disk i/o standard that uses a > simple high-speed serial link and starts over on the whole command set > architecture thing. I had some hopes for Fibre Channel and SSA, but > both of those use SCSI commands if I'm not mistaken. Pardon my ignorance, but what's wrong with SCSI commands ??? Regards, STefan