Giter Site home page Giter Site logo

jordeu / crefi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vijaykumar-koppad/crefi

0.0 1.0 0.0 35 KB

Crefi is a workload creation tool. It can be used to create workload in multiple threads, creating files of different types, different sizes in different directory structures and perform multiple operations on the created data.

License: BSD 2-Clause "Simplified" License

Python 100.00%

crefi's Introduction

Crefi

what is it?

Crefi is a Python command-line tool to create multi threaded workload on a filesystem and do file operations on created data. It provides basic operations to create files of different sizes, different types, in different directory structures, along with creating symlinks, hardlinks to files, and also rename, truncate, chmod, chown, chgrp and setxattr on the created files.

Typical use involves creating large number of files of different sizes, over different layout, and do different operations on the created files.

Examples

$ crefi <MNT_PT>

Creates 100 text files in the directory MNT_PT of random size between 10K and 500K [Filename length will be 20 bytes first 10 bytes will be current time, next 10 bytes will be combination of letters(A-Z) and numbers(1-9)]

$ crefi --multi -b 10 -d 10 -n 1000 --type=sparse --size=100 <MNT_PT>

Creates files in the directory layout of 10 directories in each level, and 10 directories depth and in each directory, create 1000 sparse files of size 100K on mount point.

$ crefi --multi -b 10 -d 10 -n 10 --type=binary --random --min=1K --max=10K <MNT_PNT>

Creates files in the directory layout of 10 directories in each level, and 10 directories depth and in each directory, create 1000 sparse files of random size between 10K and 1K on mount point.

There are other option. Check it using help crefi -h

Latest version

Latest version can be found at Github

Installation

$ pip install crefi

It requires "pyxattr" module to use setxattr option.

To install pyxattr

$ pip install pyxattr

Licensing

Please see the file called LICENSE.

Contact

Found any issues or have any suggestions to improve the tool, drop a mail at [email protected]

crefi's People

Contributors

vijaykumar-koppad avatar kshithijiyer avatar ralic avatar yogesh-mane avatar

Watchers

 avatar

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.