Skip to content

Instantly share code, notes, and snippets.

@kamipo
Created February 6, 2009 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamipo/59498 to your computer and use it in GitHub Desktop.
Save kamipo/59498 to your computer and use it in GitHub Desktop.
cd /var/tmp
sync
sysctl -w vm.drop_caches=3
sysctl -w vm.drop_caches=0
swapoff -a
swapon -a
perl -le '$text .= "a" x 10 for 1 .. 400_000_000; open $fh, ">", shift or die $!; print $fh $text; close $fh' mem_hdd_check.txt
ll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment