1
.TH "MONGOPERF" "1" "March 14, 2013" "2.2.3" "mongodb-manual"
5
.nr rst2man-indent-level 0
9
level \\n[rst2man-indent-level]
10
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17
.\" .rstReportMargin pre:
19
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20
. nr rst2man-indent-level +1
21
.\" .rstReportMargin post:
25
.\" indent \\n[an-margin]
26
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27
.nr rst2man-indent-level -1
28
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31
.\" Man page generated from reStructuredText.
35
\fI\%mongoperf\fP is a utility to check disk I/O performance
36
independently of MongoDB.
38
It times tests of random disk I/O and presents the results. You can
39
use \fI\%mongoperf\fP for any case apart from MongoDB. The
40
\fI\%mmf\fP \fBtrue\fP mode is completely generic. In
41
that mode is it somewhat analogous to tools such as \fI\%bonnie++\fP (albeit mongoperf is
44
Specify options to \fI\%mongoperf\fP using a JavaScript document.
52
\fI\%Output from an example run\fP
54
\fI\%Checking Disk Performance with the mongoperf Utility\fP
65
Displays the options to \fI\%mongoperf\fP. Specify options to
66
\fI\%mongoperf\fP with a JSON document described in the
67
\fI\%Configuration Fields\fP section.
72
\fI\%mongoperf\fP accepts configuration options in the form of a
73
file that holds a \fIJSON\fP document. You must stream the
74
content of this file into \fI\%mongoperf\fP, as in the following
83
In this example \fBconfig\fP is the name of a file that holds a JSON
84
document that resembles the following example:
101
See the \fI\%Configuration Fields\fP section for documentation of each
104
.SH CONFIGURATION FIELDS
107
.B mongoperf.nThreads
112
Defines the number of threads \fI\%mongoperf\fP will use in the
113
test. To saturate your system\(aqs storage system you will need
114
multiple threads. Consider setting \fI\%nThreads\fP to \fB16\fP.
118
.B mongoperf.fileSizeMB
121
\fIDefault:\fP 1 megabyte (i.e. 1024\s-2\u2\d\s0 bytes)
127
.B mongoperf.sleepMicros
132
\fI\%mongoperf\fP will pause for the number of specified
133
\fI\%sleepMicros\fP divided by the
134
\fI\%nThreads\fP between each operation.
141
\fIDefault:\fP \fBfalse\fP
143
Set \fI\%mmf\fP to \fBtrue\fP to use memory mapped
149
when \fI\%mmf\fP is \fBfalse\fP, \fI\%mongoperf\fP
150
tests direct, physical, I/O, without caching. Use a large file
151
size to test heavy random I/O load and to avoid I/O coalescing.
153
when \fI\%mmf\fP is \fBtrue\fP, \fI\%mongoperf\fP
154
runs tests of the caching system, and can use normal file system
155
cache. Use \fBmmf\fP in this mode to test file system cache
156
behavior with memory mapped files.
164
\fIDefault:\fP \fBfalse\fP
166
Set \fI\%r\fP to \fBtrue\fP to perform reads as part of
169
Either \fI\%r\fP or \fI\%w\fP must be \fBtrue\fP.
176
\fIDefault:\fP \fBfalse\fP
178
Set \fI\%w\fP to \fBtrue\fP to perform writes as part of
181
Either \fI\%r\fP or \fI\%w\fP must be \fBtrue\fP.
185
.B mongoperf.syncDelay
190
Seconds between disk flushes. \fI\%syncDelay\fP is
191
similar to \fBsyncDelay\fP for \fBmongod\fP.
193
The \fI\%syncDelay\fP controls how frequently
194
\fI\%mongoperf\fP performs an asynchronous disk flush the memory
195
mapped file used for testing. By default, \fBmongod\fP
196
performs this operation every every 60 seconds. Use
197
\fI\%syncDelay\fP to test basic system performance of
198
this type of operation.
200
Only use \fI\%syncDelay\fP in conjunction with
201
\fI\%mmf\fP set to \fBtrue\fP.
203
The default value of \fB0\fP disables this
209
mongoperf < jsonconfigfile
213
Replace \fBjsonconfigfile\fP with the path to the \fI\%mongoperf\fP
214
configuration. You may also invoke \fI\%mongoperf\fP in the
219
echo "{nThreads:16,fileSizeMB:1000,r:true}" | ./mongoperf
226
\fI\%mongoperf\fP tests direct physical random read io\(aqs, using
227
16 concurrent reader threads.
229
\fI\%mongoperf\fP uses a 1 gigabyte test file.
232
Consider using \fBiostat\fP, as invoked in the following example to
233
monitor I/O performance during the test.
241
MongoDB Documentation Project
243
2011-2013, 10gen, Inc.
244
.\" Generated by docutils manpage writer.