Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/privatepuffin/zfs-compression-test
Standardised ZFS compression test
https://github.com/privatepuffin/zfs-compression-test
Last synced: 2 months ago
JSON representation
Standardised ZFS compression test
- Host: GitHub
- URL: https://github.com/privatepuffin/zfs-compression-test
- Owner: PrivatePuffin
- License: bsd-2-clause
- Created: 2019-11-29T11:29:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T18:06:04.000Z (about 2 years ago)
- Last Synced: 2024-08-11T19:46:15.132Z (6 months ago)
- Language: Shell
- Size: 85.9 KB
- Stars: 2
- Watchers: 1
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.BSD2
Awesome Lists containing this project
README
# zfs-compression-test
Crude Standardised ZFS compression test, with repeatable results in mind## Important notes
- Make sure you do not have zfs installed already via other means
- This assumes a clean install with sudo, unzip, wget and git installed
- The enwik9 dataset gets downloaded just once, don;t worry about the time it takes
- This script makes sure the build/test environment is as prestine as possible before and after running
- This script uses a ramdisk as source and (pool) destination for writes tests to asure clean and unbottlenecked results## How setup
1. Install all dependancies as described here: https://github.com/zfsonlinux/zfs/wiki/Building-ZFS#installing-dependencies
2. make sure fio is installed (ex. `apt-get install fio` )
3. Run: `git clone https://github.com/Ornias1993/zfs-compression-test`
4. Run: `cd zfs-compression-test`
5. Clone the branch/repo containing ZoL (ex. `git clone https://github.com/zfsonlinux/zfs` )By now you'll have all dependencies and you'll have a clean git clone in zfs-compression-test/zfs
## How to use
1. Make sure you cd into the zfs-compression-test directory
2. run: sudo ./comp-test.sh with one of the **options** (ex. sudo `./comp-test.sh -i -b -r` )## options
**Compression Tests**
- **-b** A basic test of only the following algorithms: off lz4 zle lzjb gzip zstd
- **-f** A full test of all compression algorithms available for ZFS
- **-c** A Custom test with only the argument algorithm
- **-t** Select a different compression test file. Options: `enwik9` and `mpeg4`
- **-p** Enter a different prefix for the test results**Other**
- **-i** Builds and installs the ZFS testing environment (before running tests)
- **-r** Completely removes the ZFS testing environment (after running tests)
- **-S** Use system ZFS environment
- **-s** Enter custom storagepool-devices. (i.e. ./comp-test.sh -s "raidz1 /dev/disk1 /dev/disk2 /dev/disk3")
- **-P** Use existing ZFS Pool for the tests
- **-F** Size of files used in the 'fio' tests (if you benchmark on real block devices, this should be larger than your RAM)
- **-R** ZFS recordsize used by all tests (by default, random io tests use 8k, squential io tests use 1M recordsize)
- **-h** Displays a help page, which includes a reference to the different commandsWhen finished you'll have a .txt file in the zfs-compression-test directory, containing the test results
### To Do
- Add custom ram setting
- Automatic run of tests and zloop
- Combinations of Tests, Zloop and Compression
- Input sanitsaion### LICENCE
This work is dual licenced under GPLv2 and BSD-2 clause