IT Tutorial

Linux Disk Speed Test

Hi,

Disk speed is very important for database administrator and application. Because disk speed is very slow then you will see slowness automatically.

 

If you want to see disk speed and compare with another disk you can do disk speed test.

You can do disk speed test basically with following.

[root@MehmetSalih ]# dd if=/dev/zero of=deveci.zeroes bs=8M count=125

 

If you want to do disk test in detail you can use following script.

#!/bin/sh 
READBS=8M 
BS=8M 
COUNT=125 
REPOSITORIES="/backup" 
for REPOSITORY in ${REPOSITORIES} ; do 
BASECOMMAND="time dd if=/dev/zero of=${REPOSITORY}/THIS_IS_A_DD_TEST bs=${BS} count=${COUNT}" 
for COMMAND in "${BASECOMMAND}" "${BASECOMMAND} conv=fdatasync" "${BASECOMMAND} oflag=direct" ; do 
echo ${COMMAND} 
$COMMAND 
echo "" 
echo "---------------------------------" 
echo "" 
done 
echo "dd if=${REPOSITORY}/THIS_IS_A_DD_TEST of=/dev/null bs=${READBS}" 
dd if=${REPOSITORY}/THIS_IS_A_DD_TEST of=/dev/null bs=${READBS} 
rm -f ${REPOSITORY}/THIS_IS_A_DD_TEST 
echo "" 
echo "---------------------------------" 
echo "" 
done

 

 

Do you want to learn Linux System Administration for Beginners, then read the following articles.

https://ittutorial.org/linux-administration-tutorial-for-beginners/

 916 views last month,  1 views today

Exit mobile version