Skip to content

Instantly share code, notes, and snippets.

@drsnyder
Created December 4, 2011 05:41
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 drsnyder/1429319 to your computer and use it in GitHub Desktop.
Save drsnyder/1429319 to your computer and use it in GitHub Desktop.
Simple disk write test using dd
#!/bin/bash
GB=2 # how much memory in the system
SZ=$((2*$GB)) # you want at least 2x memory size
dd if=/dev/zero of=bigfile bs=8k count=$((250000 * $SZ)) && sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment