stackpath / fstrim-throttle Goto Github PK
View Code? Open in Web Editor NEWThis project forked from zzhou1/fstrim-throttle
This project forked from zzhou1/fstrim-throttle
usage: nice_trim.py [-h] [-a] [-b] [-d] [-v] A wrapper of fstrim. It runs fstrim in chunks and sleep in between. It intends to throttle fstrim and leave the room for the normal WRITE request IO to get through to the backend block device. A plain fstrim might initiate DISCARD requests, disturb ongoing IO too much, cause the long freeze, and harm the critical service. The human readable format includes K/KiB, M/MiB, G/GiB, T/TiB, KB, MB, GB, TB. optional arguments: -h, --help show this help message and exit -a, --all auto-detect all trimmable. This overrides any mount point -b, --bytes print SIZE in bytes rather than in human readable format -d, --debug debugging information -v, --verbose duplicate the log INFO to STDOUT as well information options: mount_point mount points we are trimming. Internally, fstrim will convert any directory path to the corresponding mount point or block device. -c, --chunk-size <bytes> to search for free blocks to discard. kernel will internally round it up to a multiple of the filesystem block size. Also this tool will round it up to the filesystem block size to avoid fstrim error report if too small (default: 4GiB) -m, --min-extent <bytes> the minimum contiguous free range to discard. kernel will internally round it up to a multiple of the filesystem block size. Zero is to discard every free block (default: 16MiB) -s, --sleep-range <min,max> in seconds (default: 0.5) MIN would give a reasonable sleep between fstrim chunks. MAX would give a bigger random sleep to avoid all virtual machines or physical machines to stress the storage system all at once. eg. a random range '0.5,600' eg. 0.5 is equal to '0.5,0.5' -l, --log-file <path> (default: /var/log/nice_trim.log) Example: nice_trim.py -a
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.