This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Generate 20GB file of random data in /dev/shm (~ramdisk) | |
time openssl enc -aes-256-ctr \ | |
-pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" \ | |
-nosalt < /dev/zero 2>/dev/null | | |
dd bs=4M \ | |
count=5120 \ | |
status=progress \ | |
iflag=fullblock \ |
NewerOlder