Date: Wed, 11 Nov 1998 22:50:59 -0700 (MST) From: "Kenneth D. Merry" <ken@plutotech.com> To: aron@cs.rice.edu (Mohit Aron) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: scsi disk queue Message-ID: <199811120550.WAA21345@panzer.plutotech.com> In-Reply-To: <199811120545.XAA00292@noel.cs.rice.edu> from Mohit Aron at "Nov 11, 98 11:45:18 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811120550.WAA21345>