Possible to retrieve benchmark test data?

Asked by Andrew Liu

I am trying to retrieve data from the hard drive benchmarking test for analysis and am looking for a way to store the data which is graphically represented by the read/write test in Disk Utility. If it is not possible to retrieve the data directly, what do the different colored lines mean? Is there any place where I can look up this sort of information? Thank you!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-disk-utility Edit question
Assignee:
No assignee Edit question
Solved by:
DEUS
Solved:
Last query:
Last reply:
Revision history for this message
Best DEUS (stefan-grau) said :
#1

The Benchmark result is stored in ths directory
~/.cache/gnome-disk-utility/drive-benchmark

i was also looking for an tool to analyse and compare multiple disks
there is only access to the benchmark result when the drive is connected (History browser)

Revision history for this message
DEUS (stefan-grau) said :
#2

red line is read rate and blue line write rate, see left side for the rate in MB/s
green line access time (looks like a cloud), right side in ms

Revision history for this message
Andrew Liu (liu-reizhi) said :
#3

Thank you! This is exactly what I was looking for.

Revision history for this message
DEUS (stefan-grau) said :
#4

a poor script for comparing dirves in the folder:

#!/bin/bash

gdudir=~/.cache/gnome-disk-utility/drive-benchmark
tmpdir=/tmp/gdu
read=read.plt
write=write.plt
access=access.plt
window=1280,1024

cd $gdudir
mkdir $tmpdir

## READ
echo "# Plotten von read_transfer_rate_samples" > $tmpdir/$read
echo "#====================================" >> $tmpdir/$read
echo "set title 'Read Rate'" >> $tmpdir/$read
echo "set xlabel 'Percentage'" >> $tmpdir/$read
echo "set ylabel 'MB/s'" >> $tmpdir/$read
echo "set autoscale" >> $tmpdir/$read
echo "set terminal x11 size $window" >> $tmpdir/$read
echo -ne "plot " >> $tmpdir/$read
## WRITE
echo "# Plotten von write_transfer_rate_samples" > $tmpdir/$write
echo "#====================================" >> $tmpdir/$write
echo "set title 'Write Rate'" >> $tmpdir/$write
echo "set xlabel 'Percentage'" >> $tmpdir/$write
echo "set ylabel 'MB/s'" >> $tmpdir/$write
echo "set autoscale" >> $tmpdir/$write
echo "set terminal x11 size $window" >> $tmpdir/$write
echo -ne "plot " >> $tmpdir/$write
## ACCESS
echo "# Plotten von access_time_samples" > $tmpdir/$access
echo "#====================================" >> $tmpdir/$access
echo "set title 'Access Time'" >> $tmpdir/$access
echo "#set xlabel 'Percentage'" >> $tmpdir/$access
echo "#set ylabel 'MB/s'" >> $tmpdir/$access
echo "set logscale y" >> $tmpdir/$access
echo "set terminal x11 size $window" >> $tmpdir/$access
echo -ne "plot " >> $tmpdir/$access

## Select file
find -maxdepth 1 -name '*-*' | while read file
do
 echo "$file"
 size=$(grep '^d' "$file" | sed 's_[a-z_=]__g')
 grep '^r' "$file" | sed s'_[a-z_=]__g' | awk -F ';' -v RS=':' '{split($2,a,","); print (($1/'$size') * 100), $1, ((a[1]/1024)/1024) }' > $tmpdir/"$file".read
 grep '^w' "$file" | sed s'_[a-z_=]__g' | awk -F ';' -v RS=':' '{split($2,a,","); print (($1/'$size') * 100), $1, ((a[1]/1024)/1024) }' > $tmpdir/"$file".write
 grep '^a' "$file" | sed s'_[a-z_=]__g' | awk -F ';' -v RS=':' '{split($2,a,","); print (($1/'$size') * 100), $1, (a[2]/1000) }' > $tmpdir/"$file".access
 if [ -n "$first" ]; then
 echo -ne ", \\" >> $tmpdir/$read; echo "" >> $tmpdir/$read
 echo -ne "'$tmpdir/$file.read' using 1:3 title \""$(echo -ne "$file" | awk -F "-" '{ print$2,$3 }')"\" with lines" >> $tmpdir/$read

 echo -ne ", \\" >> $tmpdir/$write; echo "" >> $tmpdir/$write
 echo -ne "'$tmpdir/$file.write' using 1:3 title \""$(echo -ne "$file" | awk -F "-" '{ print$2,$3 }')"\" with lines" >> $tmpdir/$write

 echo -ne ", \\" >> $tmpdir/$access; echo "" >> $tmpdir/$access
 echo -ne "'$tmpdir/$file.access' using 1:3 title \""$(echo -ne "$file" | awk -F "-" '{ print$2,$3 }')"\" with lines" >> $tmpdir/$access
 else
 echo -ne "'$tmpdir/$file.read' using 1:3 title \""$(echo -ne "$file" | awk -F "-" '{ print$2,$3 }')"\" with lines" >> $tmpdir/$read
 echo -ne "'$tmpdir/$file.write' using 1:3 title \""$(echo -ne "$file" | awk -F "-" '{ print$2,$3 }')"\" with lines" >> $tmpdir/$write
 echo -ne "'$tmpdir/$file.access' using 1:3 title \""$(echo -ne "$file" | awk -F "-" '{ print$2,$3 }')"\" with lines" >> $tmpdir/$access
 first=no;
 fi
done

gnuplot -persist "$tmpdir/$read"
gnuplot -persist "$tmpdir/$write"
gnuplot -persist "$tmpdir/$access"