From ca41eddfdc979955105cce572e659941544d6f6d Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 9 Oct 2014 20:44:15 +0100 Subject: alles neu macht der mai --- dd_bench | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 dd_bench (limited to 'dd_bench') 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 + -- cgit v1.2.3