stress-write-iops

command module
v0.0.0-...-5a292ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 17 Imported by: 0

README

stress-write-iops

stress-write-iops stresses disk I/O and prints latency statistics.

Notes

  • The name of the temp directory used on each run is printed at program startup - in case you need to manually delete it.
  • CTRL-C will cause stress-write-iops to stop and remove it's temporary files. Pressing CTRL-C again will immediately halt it
  • Each writer uses 4MiB of disk space and a recovery file /tmp/recovery.dat is created at startup so that if you run out of disk space you can stop stress-write-iops and delete it file to recover enough disk space to cleanup the temp directory used.

Run ./stress-write-iops -help for a description of commands.

The ./run.bash script is provided as a helper and on Linux it will flush the page cache and dentries/inodes caches every second. On Linux it will also write the output of iostat at 1 and 10 seconds to ./iostat_1s.log and ./iostat_10s.log.

Example

Run stress-write-iops with 256 writers, pausing 1ns between writes, printing disk stats every second, and syncing files after writes.

./run.bash  -n 256 -d 1ns -disk-stat-int 1s -sync

Same as above but

./stress-write-iops  -n 256 -d 1ns -disk-stat-int 1s -sync

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL