Coder Social home page Coder Social logo

fio's Introduction

介绍

该项目是为了方便在我的课程《TrueNAS SCALE 终极教程》中进行各种磁盘布局的性能测试开发的,模拟了CrystalDiskMark几个测试项目。在 fio 参数上有任何疑问或者需求可以给我提 issue ,欢迎 pr。

项目依赖

目前仅支持类 Unix 环境,依赖软件fiojq

Debian/Ubuntu 依赖安装

sudo apt install fio jq -y

CentOS 系列依赖安装

sudo yum install fio jq -y

使用

直接下载fio_mark.sh文件,或者克隆到本地

# 克隆项目
git clone https://github.com/bihell/fio

开始测试,注意把/mnt/test替换为你要测试的路径。

程序每个测试项单任务文件大小为1G,时长60秒。全部跑完预计一刻钟,如果觉得慢可以使用快速模式,每个任务时长10秒。

# 默认测试:只要输入测试路径即可,对应CrystalDiskMark的默认测试
TrueNas-➜  ~ sudo bash fio_mark.sh /mnt/Stripe1
[sudo] password for admin:
Executing Default test:
                    Read [MB/s]     Read [IOPS]    Write [MB/s]    Write [IOPS]]
     SEQ1M-Q8T1            2234            2227             408             406
    RND4K-Q32T1             133           34084              15            4022
     SEQ1M-Q1T1            2283            2282             864             863
     RND4K-Q1T1             129           33113              79           20331
     
# SSD 测试:只要多输入个参数`ssd`,对应CrystalDiskMark的NVME测试
TrueNas-➜  ~ sudo bash fio_mark.sh /mnt/test ssd

# 一起测:输入`all`参数则CrystalDiskMark的NVME和SDD一起测
TrueNas-➜  ~ sudo bash fio_mark.sh /mnt/test all

# 如果想快速测试,请增加`fast`参数
TrueNas-➜  ~ sudo bash fio_mark.sh /mnt/test fast

fio's People

Contributors

bihell avatar

Stargazers

2y0ung avatar Longhao.Chen avatar Mr.yang avatar cttMoShen avatar littlesho avatar 孔菲 avatar  avatar TBRay90 avatar Kamille avatar  avatar  avatar Peng Liu avatar  avatar

Watchers

 avatar  avatar Mr.yang avatar

fio's Issues

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.