Git Product home page Git Product logo

hdd_speed_test's Introduction

HDD random 4k write test with sync

How does it work?

  • create a file with size length
  • rewrite random 4 kbyte in file (or readwrite, -r)
  • measure the time: time(N * [4kbyte (rd)wr & sync]) / N is the time of the rewriting of 4kbyte block
  • the intermediate sync can be skipped (-a), the sync will be at the end of all rewrite.
  • see --help

Build and running

$ cargo build --release
$ ./target/release/hdd-speed-test -h

$ ./target/release/hdd-speed-test -s 8192 -r   # first run, create file
$ ./target/release/hdd-speed-test -s 8192 -r   # only test (file already exists)

$ rm testfile.dat                              # at the end of tests, remove manually

Measured values:

  • 4 TB HDD (WD40EZRX) software raid1
    • ext4: 23.18 msec/4k (first part of disk) and 48.80 msec/4k (last part of disk)
    • btrfs: ??? msec/4k (first part of disk) and 167.80 msec/4k (last part of disk)
  • 960 GB SATA (KINGSTON SEDC600) software raid 1 (CPU: Xeon(R) Silver 4116)
    • ext4: 0.067 msec / 4k (-n 10000)
  • 7,68 TB U.2 (KINGSTON SEDC1500M7680G) software raid1 (CPU: Xeon(R) Silver 4116)
    • ext4: 0,051 msec / 4k
    • btrfs: 0,620 msec / 4k (copy on write filesystem)

hdd_speed_test's People

Contributors

hg2ecz avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

fuszenecker

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.