LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Puppy (https://www.linuxquestions.org/questions/puppy-71/)
-   -   Check read/write speeds (https://www.linuxquestions.org/questions/puppy-71/check-read-write-speeds-4175574171/)

Fixit7 03-06-2016 09:38 PM

Check read/write speeds
 
Check read/write speeds

Quote:

#!/bin/bash
#
# Linux Puppy 6.3.0 SiegeWorks 2016 A.P.K.
#
# CHECK READ AND WRITE SPEEDS OF DRIVES
cd /
cd /mnt/sde
date "+ %m/%d/%y %r" >> Verbatim_Speed.txt
echo >> Verbatim_Speed.txt
echo "Write speed of sde." >> Verbatim_Speed.txt
echo >> Verbatim_Speed.txt
dd if=/dev/zero of=/mnt/sde/largefile bs=8k count=10000 2>> Verbatim_Speed.txt
echo >> Verbatim_Speed.txt
# clear the memory cache
echo "Clearing memory cache" >> Verbatim_Speed.txt
echo >> Verbatim_Speed.txt
sh -c "sync && echo 3 > /proc/sys/vm/drop_caches"
echo "Read speed of sde." >> Verbatim_Speed.txt
echo >> Verbatim_Speed.txt
dd if=/mnt/sde/largefile of=/dev/null bs=8k 2>> Verbatim_Speed.txt
echo >> Verbatim_Speed.txt
mv Verbatim_Speed.txt /root/Scripts
rm largefile

Fixit7 03-08-2016 09:59 AM

I am curious as to why the read speed is no better using 3.0 ports?

Quote:

Using USB 2.0

Write speed of Toshiba.
10000+0 records in
10000+0 records out
81920000 bytes (82 MB) copied, 1.60252 s, 51.1 MB/s
Read speed of Toshiba.
10000+0 records in
10000+0 records out
81920000 bytes (82 MB) copied, 2.30256 s, 35.6 MB/s

Using USB 3.0

Write speed of Toshiba.
10000+0 records in
10000+0 records out
81920000 bytes (82 MB) copied, 0.142398 s, 575 MB/s
Read speed of Toshiba.
10000+0 records in
10000+0 records out
81920000 bytes (82 MB) copied, 2.13294 s, 38.4 MB/s


All times are GMT -5. The time now is 11:00 PM.