From owner-freebsd-hackers Thu Nov 12 11:39:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA12472 for freebsd-hackers-outgoing; Thu, 12 Nov 1998 11:39:03 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA12464 for ; Thu, 12 Nov 1998 11:39:02 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.1/8.9.1) id LAA28728; Thu, 12 Nov 1998 11:38:36 -0800 (PST) (envelope-from dillon) Date: Thu, 12 Nov 1998 11:38:36 -0800 (PST) From: Matthew Dillon Message-Id: <199811121938.LAA28728@apollo.backplane.com> To: "Kenneth D. Merry" Cc: aron@cs.rice.edu (Mohit Aron), freebsd-hackers@FreeBSD.ORG Subject: Re: scsi disk queue References: <199811120550.WAA21345@panzer.plutotech.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Neat! I hope you don't mind if I modify the program some. http://www.backplane.com/FreeBSD/dds.c For ongoing reporting of read activity, write activity (avg per second), busy percentage, and request backlog. The busy percentage is especially useful. % ./dds da1 da2 da3 10 nntp1:/news> ./dds da1 da2 da3 10 da1 da2 da3 625k 142k 75%/0 644k 155k 70%/2 652k 137k 72%/1 763k 78.6k 77%/2 792k 96.9k 80%/3 840k 86.4k 80%/2 696k 153k 77%/3 693k 172k 83%/2 702k 163k 80%/4 752k 117k 80%/2 802k 144k 85%/0 839k 104k 88%/2 609k 458k 85%/0 660k 467k 87%/2 622k 449k 87%/2 601k 354k 77%/9 583k 365k 79%/2 597k 341k 79%/6 666k 240k 86%/10 665k 227k 79%/4 680k 240k 88%/7 652k 298k 82%/2 580k 326k 80%/4 619k 290k 79%/3 606k 190k 73%/15 609k 184k 70%/19 652k 188k 82%/16 664k 381k 83%/15 640k 360k 83%/18 656k 383k 76%/16 589k 365k 80%/3 655k 368k 82%/2 601k 343k 90%/1 793k 267k 86%/3 792k 268k 82%/3 818k 286k 90%/0 :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