Skip to content

Instantly share code, notes, and snippets.

@bparli
Created March 30, 2020 00:32
Show Gist options
  • Save bparli/c4503c5347f92c370f8481139c93c536 to your computer and use it in GitHub Desktop.
Save bparli/c4503c5347f92c370f8481139c93c536 to your computer and use it in GitHub Desktop.
script to create a directory of dummy files for testing cache performance
#! /bin/bash
for n in {0..1000}; do
dd if=/dev/urandom of=file$( printf %03d "$n" ).bin bs=1 count=$(( RANDOM*100 + 2048 ))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment