From owner-freebsd-security@FreeBSD.ORG Mon Apr 19 17:51:51 2004 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C2EB16A4CE for ; Mon, 19 Apr 2004 17:51:51 -0700 (PDT) Received: from mx7.roble.com (mx7.roble.com [206.40.34.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69C5643D41 for ; Mon, 19 Apr 2004 17:51:51 -0700 (PDT) (envelope-from marquis@roble.com) Received: by mx7.roble.com (Postfix, from userid 65534) id 04650DAFD5; Mon, 19 Apr 2004 17:51:50 -0700 (PDT) Date: Mon, 19 Apr 2004 17:51:49 -0700 (PDT) From: Roger Marquis To: freebsd-security@freebsd.org In-Reply-To: <20040420003036.GL18311@cowbert.net> References: <20040417190059.06B0316A4F7@hub.freebsd.org> <20040420003036.GL18311@cowbert.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <20040420005149.AF50FDAFCC@mx7.roble.com> X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=6.0 tests=BAYES_00 autolearn=no version=2.63 Subject: Re: Is log_in_vain really good or really bad? X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2004 00:51:51 -0000 Peter C. Lai wrote: > > This is hardware problem. Any ATA/SATA disk will suck up CPU with > > every disk access. > > Only if you are running your drive in PIO mode. The system starts up using the > highest UDMA level possible and I bet (hope) he checked the sysctl to make sure > it was at UDMA66. PIO mode, UDMA, 66/100, serial, all are factors but none compensate for the differences beteween SCSI and ATA in real world conditions. By real world I mean where there are multiple, simultaneous disks reads and writes. Too many "benchmarks" only test serial, non-multitasking disk access. In this mode ATA can be just as fast as SCSI and use nearly as little CPU. As soon as you factor in multitasking, however, it's a whole 'nother ballgame. I've seen 10K 160M SCSI drives handle 10x more data than the fastest UDMA100. With 15K drives and 320M becoming generally available SATA isn't even rated for 50% of SCSI's maximum throughput and that's before factoring in multitasking. In every test I've done with various disks and controllers SCSI has out-performed ATA by a wide margin in server performance. -- Roger Marquis Roble Systems Consulting http://www.roble.com/