diff options
author | Patrick Simianer <p@simianer.de> | 2014-10-09 20:44:15 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-10-09 20:44:15 +0100 |
commit | ca41eddfdc979955105cce572e659941544d6f6d (patch) | |
tree | bf446902e8323e58c6fc14dce808b9719da7d3f6 /dd_bench | |
parent | 0aae427eb3838297f6e204c2961739ef834762cf (diff) |
alles neu macht der mai
Diffstat (limited to 'dd_bench')
-rwxr-xr-x | dd_bench | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dd_bench b/dd_bench new file mode 100755 index 0000000..0db9a46 --- /dev/null +++ b/dd_bench @@ -0,0 +1,18 @@ +#!/bin/sh + +for i in {0..4}; do +echo "WRITE SPEED" +dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc +echo + +echo "READ SPEED" +echo 3 > /proc/sys/vm/drop_caches +dd if=tempfile of=/dev/null bs=1M count=1024 +echo + +echo "BUFFERED READ SPEED" +dd if=tempfile of=/dev/null bs=1M count=1024 + +rm tempfile +done + |