bcachefs-gym

command module
v0.0.0-...-e57b899 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 13 Imported by: 0

README

BcacheFS-gym

BcacheFS-gym is tool to exercise the Linux BcacheFS filesystem, without using local storage.

How to use it

  1. First build it using Go 1.20 or newer:
    $ git clone https://github.com/dblueman/bcachefs-gym
    $ cd bcachefs-gym
    $ go install
    
  2. Launch it as root:
    $ sudo ./bcachefs-gym
    

How it works

  1. BcacheFS-gym loads the brd block-ramdisk kernel module to create in-memory block devices
  2. It runs the bcachefs userspace utility to format a number of block ram devices, randomising format options with constraints
  3. The block devices are mounted using randomised mount options, constrained
  4. A short fio workload is launched with direct and pagecache IO
  5. Background bcachefs maintenance commands are launched at regular intervals
  6. Once the workload completes, the filesystem is unmounted and the process repeats
  7. At any point, if there are errors (non-zero exit code), execution is stopped for analysis

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