ports/136437: New port: sysutils/devstat Utility to display device statistics
Mikolaj Golub
to.my.trociny at gmail.com
Tue Jul 7 19:50:02 UTC 2009
>Number: 136437
>Category: ports
>Synopsis: New port: sysutils/devstat Utility to display device statistics
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 07 19:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Mikolaj Golub
>Release:
>Organization:
>Environment:
>Description:
devstat displays disk statistics provided by devstat(9) kernel interface.
This is very simple utility, it does not do much, but I found it very useful on my hosts when I needed to collect disk statistics periodically or got it form core dump.
Actually I would like to have something like this in base system, but in ports is nice too :-)
The output (a la netstat -s):
zhuzha:~% devstat ad4
ad4:
21229123584 bytes read
28455829504 bytes written
0 bytes freed
3537002 reads
2062427 writes
0 frees
0 other
duration:
11804 16497676851130177162/2^64 sec reads
295340 1262669492698438076/2^64 sec writes
0 0/2^64 sec frees
11280 10298079202142795648/2^64 sec busy time
1 283602973081342936/2^64 sec creation time
512 block size
tags sent:
5599429 simple
0 ordered
0 head of queue
supported statistics measurements flags: 0
device type: 0
devstat list insert priority: 4095
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# devstat
# devstat/Makefile
# devstat/pkg-descr
# devstat/distinfo
#
echo c - devstat
mkdir -p devstat > /dev/null 2>&1
echo x - devstat/Makefile
sed 's/^X//' >devstat/Makefile << '6fbc317929988281ae9bf5e86f67189e'
X# New ports collection makefile for: devstat
X# Date created: 13 April 2008
X# Whom: Mikolaj Golub <to.my.trociny at gmail.com>
X#
X# $FreeBSD: ports/devstat/Makefile,v 1.5 2009/07/07 19:30:02 mikolaj Exp $
X#
X
XPORTNAME= devstat
XPORTVERSION= 0.3.1
XCATEGORIES= sysutils
XMASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
X
XMAINTAINER= to.my.trociny at gmail.com
XCOMMENT= Utility to display device statistics
X
XUSE_MAKE= yes
X
XPLIST_FILES= bin/devstat
XMAN8= devstat.8
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/devstat ${PREFIX}/bin/
X ${INSTALL_MAN} ${WRKSRC}/devstat.8 ${PREFIX}/man/man8
X
X.include <bsd.port.mk>
6fbc317929988281ae9bf5e86f67189e
echo x - devstat/pkg-descr
sed 's/^X//' >devstat/pkg-descr << 'ede4822d890353e8eb626a298ed191b2'
Xdevstat is a small program that displays device statistics
Xavailable via kernel devstat(9) interface.
X
XWWW: http://devstat.googlecode.com/
XAuthor: Mikolaj Golub <to.my.trociny at gmail.com>
ede4822d890353e8eb626a298ed191b2
echo x - devstat/distinfo
sed 's/^X//' >devstat/distinfo << '49bc2dc7f9a3cc44650a7d1a46123548'
XMD5 (devstat-0.3.1.tar.gz) = 3359298b7e86e0edfdd1b6fa0c1a199c
XSHA256 (devstat-0.3.1.tar.gz) = 45240a42223002f6aa1fa434ef03ed179c38115394f2c03754d52325dfe7930f
XSIZE (devstat-0.3.1.tar.gz) = 4260
49bc2dc7f9a3cc44650a7d1a46123548
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list