embeded/raspberry pi2016. 9. 5. 11:01

odroid u3도 한번 해봐야지..


$ sysbench --help

Usage:

  sysbench [general-options]... --test=<test-name> [test-options]... command


General options:

  --num-threads=N            number of threads to use [1]

  --max-requests=N           limit for total number of requests [10000]

  --max-time=N               limit for total execution time in seconds [0]

  --forced-shutdown=STRING   amount of time to wait after --max-time before forcing shutdown [off]

  --thread-stack-size=SIZE   size of stack per thread [32K]

  --init-rng=[on|off]        initialize random number generator [off]

  --test=STRING              test to run

  --debug=[on|off]           print more debugging info [off]

  --validate=[on|off]        perform validation checks where possible [off]

  --help=[on|off]            print help and exit

  --version=[on|off]         print version and exit


Compiled-in tests:

  fileio - File I/O test

  cpu - CPU performance test

  memory - Memory functions speed test

  threads - Threads subsystem performance test

  mutex - Mutex performance test

  oltp - OLTP test


Commands: prepare run cleanup help version


See 'sysbench --test=<name> help' for a list of options for each test. 


sysbench --test=fileio --file-total-size=1G prepare

sysbench 0.4.12:  multi-threaded system evaluation benchmark


128 files, 8192Kb each, 1024Mb total

Creating files for the test... 


8메가 짜리로 128개 생성하다 보니 시간이 좀 걸린다.

$ ls

Desktop        test_file.105  test_file.121  test_file.23  test_file.4   test_file.56  test_file.72  test_file.89

Documents      test_file.106  test_file.122  test_file.24  test_file.40  test_file.57  test_file.73  test_file.9

Downloads      test_file.107  test_file.123  test_file.25  test_file.41  test_file.58  test_file.74  test_file.90

Music          test_file.108  test_file.124  test_file.26  test_file.42  test_file.59  test_file.75  test_file.91

Pictures       test_file.109  test_file.125  test_file.27  test_file.43  test_file.6   test_file.76  test_file.92

Public         test_file.11   test_file.126  test_file.28  test_file.44  test_file.60  test_file.77  test_file.93

Templates      test_file.110  test_file.127  test_file.29  test_file.45  test_file.61  test_file.78  test_file.94

Videos         test_file.111  test_file.13   test_file.3   test_file.46  test_file.62  test_file.79  test_file.95

python_games   test_file.112  test_file.14   test_file.30  test_file.47  test_file.63  test_file.8   test_file.96

src            test_file.113  test_file.15   test_file.31  test_file.48  test_file.64  test_file.80  test_file.97

test_file.0    test_file.114  test_file.16   test_file.32  test_file.49  test_file.65  test_file.81  test_file.98

test_file.1    test_file.115  test_file.17   test_file.33  test_file.5   test_file.66  test_file.82  test_file.99

test_file.10   test_file.116  test_file.18   test_file.34  test_file.50  test_file.67  test_file.83

test_file.100  test_file.117  test_file.19   test_file.35  test_file.51  test_file.68  test_file.84

test_file.101  test_file.118  test_file.2    test_file.36  test_file.52  test_file.69  test_file.85

test_file.102  test_file.119  test_file.20   test_file.37  test_file.53  test_file.7   test_file.86

test_file.103  test_file.12   test_file.21   test_file.38  test_file.54  test_file.70  test_file.87

test_file.104  test_file.120  test_file.22   test_file.39  test_file.55  test_file.71  test_file.88 


테스트에 5분 제한을 걸고 하는건가...

$ sysbench --test=fileio --file-total-size=1G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run

sysbench 0.4.12:  multi-threaded system evaluation benchmark


Running the test with following options:

Number of threads: 1

Initializing random number generator from timer.



Extra file open flags: 0

128 files, 8Mb each

1Gb total file size

Block size 16Kb

Number of random requests for random IO: 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

Threads started!

Time limit exceeded, exiting...

Done.


Operations performed:  1320 Read, 880 Write, 2730 Other = 4930 Total

Read 20.625Mb  Written 13.75Mb  Total transferred 34.375Mb  (117.19Kb/sec)

    7.32 Requests/sec executed


Test execution summary:

    total time:                          300.3619s

    total number of events:              2200

    total time taken by event execution: 1.0915

    per-request statistics:

         min:                                  0.04ms

         avg:                                  0.50ms

         max:                                  4.20ms

         approx.  95 percentile:               1.93ms


Threads fairness:

    events (avg/stddev):           2200.0000/0.00

    execution time (avg/stddev):   1.0915/0.00 



Posted by 구차니