项目作者: Hacky-DH

项目描述 :
perftest fs
高级语言: Python
项目地址: git://github.com/Hacky-DH/fs-benchmark.git
创建时间: 2018-12-15T12:24:43Z
项目社区:https://github.com/Hacky-DH/fs-benchmark

开源协议:MIT License

下载


fs-benchmark

This benchmark supports read-write and metadata performance test
on the wide distribute file system, such as ceph, moosefs, lizardfs and so on
and generates test graphs using pandas.

read-write test

This test uses iozone to run the read-write test
and includes write, read, randread, randwrite.

default parameters

  1. block size(KiB): 8 16 32 64 128 256 512 1024 2048
  2. concurrent: 1 2 4 8 16
  3. file size: 1GiB

run and plot

  1. cd /path/to/mount/fs
  2. NAME=test TEST_LOOP=3 DIRECT="" bash $ROOT/rw-benchmark/iozone/perftest.sh | tee /tmp/testlog
  3. # the result files is in $HOME dir
  4. python $ROOT/rw-benchmark/plot/plot.py -f $HOME/iozone-test-<date>-{}.tar.gz -r 3

metadata test

metadata test tests the performance of MDS of ceph, or master of moosefs, or other fs

  1. Usage of perftest:
  2. -b uint
  3. start index of operations
  4. -c uint
  5. concurrent of operations (default 1)
  6. -id uint
  7. client id (default 1)
  8. -interval duration
  9. interval to calculate tps, e.g. 1h5m8s (default 1m0s)
  10. -n string
  11. count string of operations, k,m,g (default "10")
  12. -period duration
  13. period duration of each stages, e.g. 1h5m8s (default 5m0s)
  14. -s string
  15. count of operations in one dir, k,m,g (default "10")
  16. -t for test
  17. -v show version

Example

  1. cd /path/to/mount/fs
  2. $ROOT/meta-benchmark/bin/perftest -n 3m -c 100 -id 1 -interval 1m -period 3h
  3. -n 3,000,000 files
  4. -c 100 concurrent
  5. -id 1
  6. -interval 1 minute
  7. -period 3 hour