Simple read and write test with Iozone

iozone -s 2g -r 64 -i 0 -i 1 -t 1
Iozone with a file of 2GB, 64KB record size, write/rewrite and read/re-read test, using just one thread.
Sample Output
...
        Children see throughput for  1 readers          = 5751690.50 KB/sec
        Parent sees throughput for  1 readers           = 5743637.82 KB/sec
        Min throughput per process                      = 5751690.50 KB/sec
        Max throughput per process                      = 5751690.50 KB/sec
        Avg throughput per process                      = 5751690.50 KB/sec
        Min xfer                                        = 2097152.00 KB

        Children see throughput for 1 re-readers        = 5186260.00 KB/sec
        Parent sees throughput for 1 re-readers         = 5179126.64 KB/sec
        Min throughput per process                      = 5186260.00 KB/sec
        Max throughput per process                      = 5186260.00 KB/sec
        Avg throughput per process                      = 5186260.00 KB/sec
        Min xfer                                        = 2097152.00 KB

iozone test complete.

0
By: w00binda
2009-11-19 10:43:54

These Might Interest You

  • Ever needed to test firewalls but didn't have netcat, telnet or even FTP? Enter /dev/tcp, your new best friend. /dev/tcp/(hostname)/(port) is a bash builtin that bash can use to open connections to TCP and UDP ports. This one-liner opens a connection on a port to a server and lets you read and write to it from the terminal. How it works: First, exec sets up a redirect for /dev/tcp/$server/$port to file descriptor 5. Then, as per some excellent feedback from @flatcap, we launch a redirect from file descriptor 5 to STDOUT and send that to the background (which is what causes the PID to be printed when the commands are run), and then redirect STDIN to file descriptor 5 with the second cat. Finally, when the second cat dies (the connection is closed), we clean up the file descriptor with 'exec 5>&-'. It can be used to test FTP, HTTP, NTP, or can connect to netcat listening on a port (makes for a simple chat client!) Replace /tcp/ with /udp/ to use UDP instead.


    15
    exec 5<>/dev/tcp/time.nist.gov/13; cat <&5 & cat >&5; exec 5>&-
    tyzbit · 2015-07-30 21:12:38 9
  • Test your XFS filesystem and Raptor hard drives for write performance.


    -1
    dd if=10gb of=/dev/zero bs=1M count=10240
    logik · 2009-02-18 15:30:29 3
  • Test your XFS filesystem and Raptor hard drives for write performance.


    1
    dd if=/dev/zero of=10gb bs=1M count=10240
    logik · 2009-02-18 15:29:38 0
  • You need bonnie++ package for this. More detail than a simple hdparm -t /dev/sda would give you. the -d is the directory where it performs writes/reads for example I use /tmp/scratch with 777 permissions Bonnie++ benchmarks three things: data read and write speed, number of seeks that can be performed per second, and number of file metadata operations that can be performed per second.


    6
    bonnie++ -n 0 -u 0 -r <physical RAM> -s <2 x physical ram> -f -b -d <mounted disck>
    lv4tech · 2009-09-18 09:46:44 1

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: