From owner-freebsd-stable@FreeBSD.ORG Mon May 23 16:37:20 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 749E216A41C; Mon, 23 May 2005 16:37:20 +0000 (GMT) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6246943D48; Mon, 23 May 2005 16:37:18 +0000 (GMT) (envelope-from avg@icyb.net.ua) Received: from [212.40.38.87] (oddity-e.topspin.kiev.ua [212.40.38.87]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA25432; Mon, 23 May 2005 19:37:15 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <429206BB.2050409@icyb.net.ua> Date: Mon, 23 May 2005 19:37:15 +0300 From: Andriy Gapon User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050328) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org, freebsd-current@freebsd.org References: <428C6489.3040609@icyb.net.ua> In-Reply-To: <428C6489.3040609@icyb.net.ua> Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: Subject: Re: acd lacks devstat [Was: systat -vmstat vs. acd] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2005 16:37:20 -0000 on 19.05.2005 13:03 Andriy Gapon said the following: > With 4.X on ATA(PI)-only machine systat -vmstat used to show disks > statistics for both ad and acd devices. Now, in 5.4-RELEASE, it shows > statistics only for ad devices. If atapicam is added then statistics for > cd and pass devices is shown as well. I've done some investigation on this and it seems that this behavior exists since circa introduction of geom and is present in current too. A root cause of this behavior seems to be that acd is not treated as a geom disk and doesn't have any devstat calls of itw own (unlike 4.X). Btw, the same problem exists in current too. I've found a short converstion on a close topic that happened a long while ago: http://www.mail-archive.com/freebsd-current@freebsd.org/msg33834.html I would like to comment on two things: 1. the following part of that converion doesn't seem to be valid to me, because cd device essentially has the same basic properties as acd and that doesn't prevent it from being a geom disk: > At any rate I wouldn't expect a CDROM to show up as a disk, unless > it has a R/W medium formatted for random R/W inserted (which we at > this time doesn't support). 2. even if acd can not be a geom disk (and maybe it can not be indeed), shouldn't it have devstat bookkeeping of its own then ? And the following question still remains: > Should I file a PR ? -- Andriy Gapon