I have a Raspberry Pi 4 Model B Rev 1.2 with 4GB of RAM
I've always noticed that it performs a bit slow when reading/writing data but I attributed it to the raspberry pi itself being not as powerful as other computers. However, I recently wanted to test the actual speed to know what was the exact rate of read/write.
My setup is as follows:
I've ran the following commands to test the read/write speed
For the SSDFor the HDDIm not sure if this is a good read/write test, this is something I found digging on the internet.
Worth mentioning, I had some issues of the HDD disconnecting/reconnecting in the past, so I followed this post viewtopic.php?t=245931 to setup the quirks on it and the disconnection problem vanished, but I wonder if I sacrificed speed in the process
What do you think? Are these regular read/write speeds? Or are they actually slow? Or maybe I didn't do a proper test. Am I being paranoid?
Also let me know if there's missing information in my post, I'll gladly share anything that i might have missed
Thanks in advance
I've always noticed that it performs a bit slow when reading/writing data but I attributed it to the raspberry pi itself being not as powerful as other computers. However, I recently wanted to test the actual speed to know what was the exact rate of read/write.
My setup is as follows:
- SD Card used as boot device, just boot device (not relevant for my question but worth mentioning i guess)
- A Kingston A400 128 GB SSD with a UGREEN USB to SATA adapter (this one https://www.amazon.es/gp/product/B07Y825SB8) connected via USB 3.0, which is mounted as the normal filesystem ( /, /home, etc)
- A 4TB Seagate HDD 3.5'' connected via USB 3.0 (with this external case https://www.amazon.es/gp/product/B00LS5NFQ2) mounted at /data that I use for external data
I've ran the following commands to test the read/write speed
For the SSD
Code:
#Write Testsudo dd if=/dev/zero of=/home/user/test2.img bs=1M count=1024 conv=fdatasync1024+0 records in1024+0 records out1073741824 bytes (1.1 GB, 1.0 GiB) copied, 10.1408 s, 106 MB/s# Clear cachesudo sh -c "/usr/bin/echo 3 > /proc/sys/vm/drop_caches"# Read Testsudo dd if=/home/user/test2.img of=/dev/null bs=1M count=10241024+0 records in1024+0 records out1073741824 bytes (1.1 GB, 1.0 GiB) copied, 3.46581 s, 310 MB/s
Code:
# Write testsudo dd if=/dev/zero of=/data/test2.img bs=1M count=1024 conv=fdatasync1024+0 records in1024+0 records out1073741824 bytes (1.1 GB, 1.0 GiB) copied, 11.5921 s, 92.6 MB/s# Clear cachesudo sh -c "/usr/bin/echo 3 > /proc/sys/vm/drop_caches"# Read Testsudo dd if=/data/test2.img of=/dev/null bs=1M count=10241024+0 records in1024+0 records out1073741824 bytes (1.1 GB, 1.0 GiB) copied, 9.93267 s, 108 MB/s
Worth mentioning, I had some issues of the HDD disconnecting/reconnecting in the past, so I followed this post viewtopic.php?t=245931 to setup the quirks on it and the disconnection problem vanished, but I wonder if I sacrificed speed in the process
What do you think? Are these regular read/write speeds? Or are they actually slow? Or maybe I didn't do a proper test. Am I being paranoid?
Also let me know if there's missing information in my post, I'll gladly share anything that i might have missed
Thanks in advance
Statistics: Posted by orangerabid — Thu Mar 21, 2024 8:23 pm