xref: /freebsd/usr.sbin/diskinfo/diskinfo.8 (revision 1e413cf93298b5b97441a21d9a50fdcd0ee9945e)
1.\"
2.\" Copyright (c) 2003 Poul-Henning Kamp
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\"    notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\"    notice, this list of conditions and the following disclaimer in the
12.\"    documentation and/or other materials provided with the distribution.
13.\" 3. The names of the authors may not be used to endorse or promote
14.\"    products derived from this software without specific prior written
15.\"    permission.
16.\"
17.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27.\" SUCH DAMAGE.
28.\"
29.\" $FreeBSD$
30.\"
31.Dd November 9, 2004
32.Dt DISKINFO 8
33.Os
34.Sh NAME
35.Nm diskinfo
36.Nd get information about disk device
37.Sh SYNOPSIS
38.Nm
39.Op Fl ctv
40.Ar disk ...
41.Sh DESCRIPTION
42The
43.Nm
44utility prints out information about a disk device,
45and optionally runs a naive performance test on the device.
46.Pp
47If given no arguments, the output will be a single line per specified device
48with the following fields: device name, sectorsize, media size in bytes,
49media size in sectors, firmware cylinders, firmware heads, and firmware sectors.
50The last three fields are only present if the information is available.
51.Pp
52If given the
53.Fl v
54option, the fields will be printed one per line with a descriptive comment.
55.Pp
56The
57.Fl c
58option triggers a simple measurement of the I/O read command overhead.
59.Pp
60The
61.Fl t
62option triggers a simple and rather naive benchmark of the disks seek
63and transfer performance.
64.Sh HISTORY
65The
66.Nm
67command appeared in
68.Fx 5.1 .
69.Sh AUTHORS
70.An Poul-Henning Kamp
71.Sh BUGS
72There are in order of increasing severity: lies,
73damn lies, statistics, and computer benchmarks.
74