slowfs

command module
v0.0.0-...-03b21cd Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

README

#SlowFS SlowFS is a FUSE filesystem written in Go to simulate physical media for testing purposes. SlowFS works by mirroring a backing directory to another directory, and then making accesses to files in that directory take a specified amount of time. SlowFS can model things like seek time, throughput, sequential / non- sequential accesses, et. cetera.

For addition details, run SlowFS with the help flag: slowfs --help

This is not an official Google product.

##Basic Usage

Example invocation: slowfs --backing-dir=my-backing-dir --mount-dir=my-mount-dir

##Configuration Files

You can specify an optional configuration file listing configurations in JSON, and then pass that as an argument.

[
  {
    "Name": "fast",
    "SeekWindow": "16KiB",
    "SeekTime": "8ms",
    "ReadBytesPerSecond": "100MiB",
    "WriteBytesPerSecond": "100MiB",
    "AllocateBytesPerSecond": "4GiB",
    "RequestReorderMaxDelay": "100us",
    "FsyncStrategy": "wbc",
    "WriteStrategy": "fastwrite",
    "MetadataOpTime": "500us"
  }
]

Example invocation:

  --config-file=my-config-file.json --config-name=fast```

###Overriding Values

You can also override any option through the corresponding command line flag.
For example, if you would like to change seek time:
```slowfs --backing-dir=my-backing-dir --mount-dir=my-mount-dir \
  --config-file=my-config-file.json --config-name=fast --seek-time=16ms```

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
fuselayer
Package fuselayer contains the go-fuse handling code.
Package fuselayer contains the go-fuse handling code.
scheduler
Package scheduler provides the scheduler, which takes requests of particular types (e.g.
Package scheduler provides the scheduler, which takes requests of particular types (e.g.

Jump to

Keyboard shortcuts

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