GithubHelp home page GithubHelp logo

alexxnica / slowfs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/slowfs

0.0 1.0 0.0 138 KB

A FUSE filesystem written in Go to simulate physical media for testing purposes

License: Apache License 2.0

Go 100.00%

slowfs's Introduction

#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```

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.