From owner-freebsd-hackers Wed Nov 11 21:51:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA29900 for freebsd-hackers-outgoing; Wed, 11 Nov 1998 21:51:44 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA29895 for ; Wed, 11 Nov 1998 21:51:42 -0800 (PST) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.1/8.8.5) id WAA21345; Wed, 11 Nov 1998 22:50:59 -0700 (MST) From: "Kenneth D. Merry" Message-Id: <199811120550.WAA21345@panzer.plutotech.com> Subject: Re: scsi disk queue In-Reply-To: <199811120545.XAA00292@noel.cs.rice.edu> from Mohit Aron at "Nov 11, 98 11:45:18 pm" To: aron@cs.rice.edu (Mohit Aron) Date: Wed, 11 Nov 1998 22:50:59 -0700 (MST) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28s (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mohit Aron wrote... > Hi, > I'm trying to find out how to get the number of events queued for a > scsi disk at any time. Is there some way I can get this information. If not, > can someone suggest the kernel variables that would give me this information > - I'm willing to change the kernel and create a custom array like dk_xfer[] > for reporting disk events queued at any time. Please reply by email. Thanks, If you're running 3.0 or a CAM version of -current or -stable, you can find out the number of outstanding transactions for any device registered with the devstat(9) subsystem. Download the following program: ftp://ftp.kdm.org/pub/FreeBSD/cam/ds.c It dumps out the devstat entry for each device. The devstat entry includes a busy count, which is the number of outstanding transactions queued to the drive. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message