OnWorks favicon

mongoperf - Online in the Cloud

Run mongoperf in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command mongoperf that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



mongoperf - MongoDB


mongoperf is a utility to check disk I/O performance independently of MongoDB.

It times tests of random disk I/O and presents the results. You can use mongoperf for any
case apart from MongoDB. The mmf true mode is completely generic. In that mode is it
somewhat analogous to tools such as bonnie++ (albeit mongoperf is simpler).

Specify options to mongoperf using a JavaScript document.

See also

· bonnie

· bonnie++

· Output from an example run

· Checking Disk Performance with the mongoperf Utility



--help Displays the options to mongoperf. Specify options to mongoperf with a JSON
document described in the Configuration Fields section.

mongoperf accepts configuration options in the form of a file that holds a JSON
document. You must stream the content of this file into mongoperf, as in the
following operation:

mongoperf < config

In this example config is the name of a file that holds a JSON document that
resembles the following example:


See the Configuration Fields section for documentation of each of these fields.


Type: Integer.

Default: 1

Defines the number of threads mongoperf will use in the test. To saturate your
system's storage system you will need multiple threads. Consider setting nThreads
to 16.

Type: Integer.

Default: 1 megabyte (i.e. 10242 bytes)

Test file size.

Type: Integer.

Default: 0

mongoperf will pause for the number of specified sleepMicros divided by the
nThreads between each operation.

Type: Boolean.

Default: false

Set mmf to true to use memory mapped files for the tests.


· when mmf is false, mongoperf tests direct, physical, I/O, without caching. Use a
large file size to test heavy random I/O load and to avoid I/O coalescing.

· when mmf is true, mongoperf runs tests of the caching system, and can use normal
file system cache. Use mmf in this mode to test file system cache behavior with
memory mapped files.

Type: Boolean.

Default: false

Set r to true to perform reads as part of the tests.

Either r or w must be true.

Type: Boolean.

Default: false

Set w to true to perform writes as part of the tests.

Either r or w must be true.

Type: Integer.

Default: 0

Seconds between disk flushes. syncDelay is similar to syncDelay for mongod.

The syncDelay controls how frequently mongoperf performs an asynchronous disk flush
the memory mapped file used for testing. By default, mongod performs this operation
every every 60 seconds. Use syncDelay to test basic system performance of this type
of operation.

Only use syncDelay in conjunction with mmf set to true.

The default value of 0 disables this


mongoperf < jsonconfigfile

Replace jsonconfigfile with the path to the mongoperf configuration. You may also invoke
mongoperf in the following form:

echo "{nThreads:16,fileSizeMB:1000,r:true}" | ./mongoperf

In this operation:

· mongoperf tests direct physical random read io's, using 16 concurrent reader threads.

· mongoperf uses a 1 gigabyte test file.

Consider using iostat, as invoked in the following example to monitor I/O performance
during the test.

iostat -xm 2

Use mongoperf online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Laravel is a free, open-source PHP web
    framework. Features:Expressive,
    beautiful syntax.Database agnostic
    migrationsSchema builderPainless
    routingPowerful queu...
    Download Laravel
  • 2
    nmon for Linux
    nmon for Linux
    nmon is short for Nigel's
    Performance Monitor It either shows you
    the stats on-screen updating once a
    second or saves the data to a CSV file
    for later anal...
    Download nmon for Linux
  • 3
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    Download VBA-M (Archived - Now on Github)
  • 4
    Linux System Optimizer and Monitoring
    Github Repository:
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • 5
    Fork of TeamWinRecoveryProject(TWRP)
    with many additional functions, redesign
    and more Features:Supports Treble and
    non-Treble ROMsUp-to-date Oreo kernel,
    Download OrangeFox
  • 6
    itop - ITSM  CMDB OpenSource
    itop - ITSM CMDB OpenSource
    IT Operations Portal: a complete open
    source, ITIL, web based service
    management tool including a fully
    customizable CMDB, a helpdesk system and
    a document man...
    Download itop - ITSM CMDB OpenSource
  • 7
    Clementine is a multi-platform music
    player and library organizer inspired by
    Amarok 1.4. It has a fast and
    easy-to-use interface, and allows you to
    search and ...
    Download Clementine
  • More »

Linux commands