Code Monkey home page Code Monkey logo

lsperf's Introduction

lsperf

安装

tar -xvzf lsperf.tar.gz
cd lsperf
make

功能

  • 设置Block Size

  • 设置 O_DIRECT, O_SYNC, O_TRUNC

  • 顺序同步IO读,顺序同步IO写,顺序异步IO读,顺序异步IO写,随机同步IO读,随机同步IO写,随机异步IO读,随机异步IO写

  • 测试CPU利用率

  • 测试带宽(MBPS), IOPS

  • 设置队列深度(iodepth, only for aio engine)

  • 多线程

  • 可以利用fsync call 再测试最后将数据刷新至硬盘

  • 清除 OS cache

使用方法

顺序同步IO写 (good)

./lsperf -w -f /test/test -b 8k -v -s 1G -F

顺序同步IO读 (good)

./lsperf -r -f /test/test -b 8k -v -s 1G -C

顺序异步IO写 (good)

./lsperf -w -f /test/test -b 8k -v -s 1G -A -i 32

顺序异步IO读 (good)

./lsperf -r -f /test/test -b 8k -v -s 1G -C -A -i 32

随机同步IO写 (数据测试跟fio差别有点大, lsperf - fio = 200M)

./lsperf -w -f /test/test -b 8k -v -s 1G -F -E

随机同步IO读 (数据测试跟fio差别有点大, lsperf - fio = 50M)

./lsperf -r -f /test/test -b 8k -v -s 1G -C -E

随机异步IO写 (good)

./lsperf -w -f /test/test -b 8k -v -s 1G -E -A -i 32

随机异步IO读 (good)

./lsperf -r -f /test/test -b 8k -v -s 1G -C -E -A -i 32

lsperf's People

Contributors

alex8866 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.