Skip to content

Instantly share code, notes, and snippets.

@aidanhs
Last active December 30, 2015 07:29
Show Gist options
  • Save aidanhs/7796266 to your computer and use it in GitHub Desktop.
Save aidanhs/7796266 to your computer and use it in GitHub Desktop.
bench
dd if=/dev/urandom bs=1M count=1000 of=/tmp/bigfile
# Note! This will cause your computer to slow down while it puts
# all files it's accessing back in memory
sudo sync
sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'
sleep 5
dd if=/tmp/bigfile bs=1M of=/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment