1. sysbench --test=fileio --file-total-size=10G --file-test-mode=rndrw --time=300 --max-requests=0 run WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options. sysbench 1.0.17 (using system LuaJIT 2.0.4) Running the test with following options: Number of threads: 1 Initializing random number generator from current time Extra file open flags: (none) 128 files, 80MiB each 10GiB total file size Block size 16KiB Number of IO requests: 0 Read/Write ratio for combined random IO test: 1.50 Periodic FSYNC enabled, calling fsync() each 100 requests. Calling fsync() at the end of test, Enabled. Using synchronous I/O mode Doing random r/w test Initializing worker threads... Threads started! File operations: reads/s: 49.55 writes/s: 33.03 fsyncs/s: 105.93 Throughput: read, MiB/s: 0.77 written, MiB/s: 0.52 General statistics: total time: 300.2825s total number of events: 56483 Latency (ms): min: 0.00 avg: 5.31 max: 183.04 95th percentile: 18.95 sum: 299938.84 Threads fairness: events (avg/stddev): 56483.0000/0.00 execution time (avg/stddev): 299.9388/0.00
来源:https://www.cnblogs.com/mu-zhang/p/11929308.html