Changes

Jump to: navigation, search

Winter 2009 SYA810 Block Device Benchmark Scripts

258 bytes added, 23:39, 16 July 2012
no edit summary
Please post your block device benchmark script here. I'm looking for a wide range of benchmark methodologies, so your script should test in a different way than the other scripts. I will collect these scripts on '''Monday, Jan 26''' and create a master script which runs all of these tests and reports the overall results.
= P. Constantino =
echo " ^ time to process randomly $BLOCKS blocks of 1KB on /dev/$BLOCKDEVICE."
= Gregory Katherine Masseau =
[http://matrix.senecac.on.ca/~gjmasseau/DiskTest.py Disk Test Script]
=Kezhong Liang=
#!/bin/bash
 
echo "Start to test ..."
TIME_WRITE_START=$(date +%s)
sync
TIME_WRITE_END=$(date +%s)
 
echo 3 > /proc/sys/vm/drop_caches
sync
dd if=test of=/dev/null bs=1024 count=1000000
TIME_READ_END=$(date +%s)
 
rm test
 
echo "--------------------------------------------------------"
TIME_WRITE_USED=$(($TIME_WRITE_END - $TIME_WRITE_START))
echo -n $((1024 / $TIME_READ_USED))
echo " MB/sec"
 
== Milton Paiva Neto ==
 
#!/bin/bash
#
# Script first written by Nestor Chan - Bossanesta and modified by Milton Paiva Neto <milton.paiva@gmail.com>
# Create 10 files with one with 10 GBs fully of zeros
time -p (for ((x=1; x<=10; x++))
do
dd if=/dev/zero of=fakefile$x bs=1G count=10;
done
sync
)
 
= LINKS =
[http://linux-raid.osdl.org/index.php/Performance Linux Raid Performance]

Navigation menu