File: getc_putc.8

package info (click to toggle)
bonnie%2B%2B 1.98
  • links: PTS
  • area: main
  • in suites: buster
  • size: 580 kB
  • sloc: cpp: 4,413; perl: 164; sh: 117; makefile: 108
file content (109 lines) | stat: -rw-r--r-- 3,527 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
.TH getc_putc 8
.SH "NAME"
getc_putc \- program to test hard drive performance.

.SH "SYNOPSIS"
.B getc_putc
.I [\-d dir] [\-s size(KiB)] [-m machine-name]
.I [\-u uid\-to\-use:gid\-to\-use] [\-g gid\-to\-use]

.SH "DESCRIPTION"
This manual page documents briefly the
.BR getc_putc ,
program.
.P
This is a simple adjunct to the
.B bonnie++
benchmark.  It is used to test various ways of doing IO one byte at a time,
usually you don't need to do enough of this for it to be a performance issue
for it to matter much which way you do it.  But sometimes it's necessary (for
example whan parsing IO from a terminal and then launching another process
which will take over all IO, such as a simple shell).
.P
The real benefits of this are to help settle some arguements about the
performance of such things, and to educate novices about how bad per-byte IO
really is.

.SH "OPTIONS"
For getc_putc every option is of the form of a hyphen followed by a letter and
then the next parameter contains the value.
.TP
.B \-d
the directory to use for the tests.
.TP
.B \-s
the size of the file for byte IO performance measured in kilobytes.  NB You can
specify the size in mega\-bytes if you add 'm' to the end of the number.

The default for this test is to test with a 512MiB file.  Of the file only 1/64
of it will be used for write() and read() system calls (anything else takes
too long).

.TP
.B \-m
name of the machine \- for display purposes only.

.TP
.B \-u
user\-id to use.  When running as root specify the UID to use for the tests.  It
is not recommended to use root, so if you really want to run as root then use
.B \-u root.
Also if you want to specify the group to run as then use the
.B user:group
format.  If you specify a user by name but no group then the primary group of
that user will be chosen.  If you specify a user by number and no group then
the group will be
.B nogroup.

.TP
.B \-g
group\-id to use.  Same as using
.B :group
for the
.B \-u
parameter, just a different way to specify it for compatibility with other
programs.

.TP
.B \-q
quiet mode. If specified then some of the extra informational messages will be
suppressed. Also the csv data will be the only output on standard out and the
plain text data will be on standard error. This means you can run
.B getc_putc \-q >> file.csv
to record your csv data.

.SH "OUTPUT"
The primary output is plain\-text in 80 columns which is designed to fit well
when pasted into email and which will work well with Braille displays.
.P
The second type of output is CSV (Comma Seperated Values).  This can easily be
imported into any spread\-sheet or database program.
.P
For every test the result is a speed in KiB/s.  I do not display the CPU time
because it presumably is 99% of the power of a single CPU (or something very
close to that).

.SH "AUTHOR"
This program, it's manual page, and the Debian package were written by
Russell Coker <russell@coker.com.au>.
.P
The documentation, the Perl scripts, and all the code for testing the creation
of thousands of files was written by Russell Coker, but the entire package is
under joint copyright with Tim Bray.

.SH "SIGNALS"
Handles SIGINT and does a cleanup (which may take some time), a second SIGINT
or a SIGQUIT will cause it to immidiately die.
.P
SIGXCPU and SIGXFSZ act like SIGINT.
.P
Ignores SIGHUP.

.SH "AVAILABILITY"
The source is available from http://www.coker.com.au/bonnie++ .
.P
See http://etbe.coker.com.au/category/benchmark for further information.

.SH "SEE ALSO"
.BR bonnie++ (8),
.BR zcav (8)