From owner-freebsd-current@FreeBSD.ORG Mon Apr 11 16:50:02 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38A131065679; Mon, 11 Apr 2011 16:50:02 +0000 (UTC) (envelope-from ken@kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.freebsd.org (Postfix) with ESMTP id 9C5558FC15; Mon, 11 Apr 2011 16:50:01 +0000 (UTC) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.14.2/8.14.2) with ESMTP id p3BGo1JC065258; Mon, 11 Apr 2011 10:50:01 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id p3BGo1Qq065251; Mon, 11 Apr 2011 10:50:01 -0600 (MDT) (envelope-from ken) Date: Mon, 11 Apr 2011 10:50:01 -0600 From: "Kenneth D. Merry" To: Alexander Motin Message-ID: <20110411165001.GA65146@nargothrond.kdm.org> References: <20110331223339.GA13682@freebsd.org> <201104010843.47367.jhb@freebsd.org> <20110404204316.GA11367@freebsd.org> <4D9D9917.3030102@FreeBSD.org> <20110410115644.GA55815@freebsd.org> <4DA210D3.5090807@FreeBSD.org> <20110411154339.GB63246@nargothrond.kdm.org> <4DA3279C.5090409@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DA3279C.5090409@FreeBSD.org> User-Agent: Mutt/1.4.2i Cc: freebsd-scsi@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: multiple issues with devstat_*(9) 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: Mon, 11 Apr 2011 16:50:02 -0000 On Mon, Apr 11, 2011 at 19:09:00 +0300, Alexander Motin wrote: > On 11.04.2011 18:43, Kenneth D. Merry wrote: > >On Sun, Apr 10, 2011 at 23:19:31 +0300, Alexander Motin wrote: > >>Alexander Best wrote: > >>>2) the pass* devices still don't show up under ide/scsi/other. that's > >>>ok, but > >>> then the src comments and manual pages need to be changed > >>> accordingly. > >> > >>As I have told - it is a bug/feature of libdevstat. It should not be > >>difficult to fix, if it is really a bug. > > > >That was intentional, if I can remember what I intended in 1997/1998. > > > >The reason was that since there is one passthrough device created for every > >device that CAM manages, you don't want to show pass(4) devices when the > >user says 'iostat -t scsi'. Otherwise he might get all pass(4) devices, > >depending on the order of devices in the system. > > > >But, if it's pass(4) devices you want, you can ask for them specifically, > >or for all SCSI/IDE pass(4) devices, as mav did above. > > But it is impossible to get, for example, all SCSI devices including > pass. Either only non-pass, or pass only. > > It is strange that if I won't specify "-t" (most probable for > inexperienced users), I'll gel all devices including pass, but if > specify "-t scsi" (as more advanced user who knows what to ask), I'll > get only non-pass. It is at least inconsistent. Perhaps it is somewhat inconsistent, and we should do some filtering by default to not show pass(4) devices. The idea was that in most cases, people will not want to see the pass(4) devices. That is not where most of the I/O typically happens. If they want to see the pass(4) devices, they can ask for them specifically by type or by name. When I have a system full of drives and I want to look at one particular pass(4) device, I always specify it manually, e.g.: 'iostat -d pass4 1' Ken -- Kenneth Merry ken@FreeBSD.ORG