ejolson
Posts: 3681
Joined: Tue Mar 18, 2014 11:47 am

Re: Which SSD to buy for raspberry pi?

Fri Aug 30, 2019 8:12 pm

jcyr wrote:
Fri Aug 30, 2019 8:05 pm
Running the benchmark on the Pi4 is extremely easy. Run the following command on your Pi:

Code: Select all

curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash
It might be a better idea to download the file first and check that it won't do any harm before running it.
Last edited by ejolson on Tue Nov 05, 2019 3:19 pm, edited 1 time in total.

superpowter77
Posts: 19
Joined: Thu Aug 22, 2019 2:38 pm

Re: Which SSD to buy for raspberry pi?

Fri Aug 30, 2019 8:18 pm

Crucial MX500:

HDParm Disk Read 296.41 MB/s
HDParm Cached Disk Read 266.91 MB/s
DD Disk Write 212 MB/s
FIO 4k random read 22634 IOPS (90539 KB/s)
FIO 4k random write 12427 IOPS (49708 KB/s)
IOZone 4k read 33816 KB/s
IOZone 4k write 31737 KB/s
IOZone 4k random read 17132 KB/s
IOZone 4k random write 33135 KB/s

Score: 8973

superpowter77
Posts: 19
Joined: Thu Aug 22, 2019 2:38 pm

Re: Which SSD to buy for raspberry pi?

Fri Aug 30, 2019 8:20 pm

Next week, I am getting a mvme m.2 ssd drive to see how fast it can get on RPi 4.

User avatar
jcyr
Posts: 419
Joined: Sun Apr 23, 2017 1:31 pm
Location: Atlanta

Re: Which SSD to buy for raspberry pi?

Fri Aug 30, 2019 8:24 pm

ejolson wrote:
Fri Aug 30, 2019 8:12 pm
jcyr wrote:
Fri Aug 30, 2019 8:05 pm
Running the benchmark on the Pi4 is extremely easy. Run the following command on your Pi:

Code: Select all

curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash
It might be a better idea to down the file first and check that it won't do any harm before running it.
It's a very large script that most will not understand in detail, but no it won't damage your pi.
It's um...uh...well it's kinda like...and it's got a bit of...

pica200
Posts: 140
Joined: Tue Aug 06, 2019 10:27 am

Re: Which SSD to buy for raspberry pi?

Sat Aug 31, 2019 9:53 am

superpowter77 wrote:
Fri Aug 30, 2019 8:20 pm
Next week, I am getting a mvme m.2 ssd drive to see how fast it can get on RPi 4.
If you buy it just for the Pi it's wasted money. Even SATA III SSDs easily saturate the single 4 Gbit/s lane available for the USB hub.

bjtheone
Posts: 293
Joined: Mon May 20, 2019 11:28 pm
Location: Kanata, Ontario, Canada

Re: Which SSD to buy for raspberry pi?

Sat Aug 31, 2019 4:11 pm

and a Kinston A400 SSD gets:

Code: Select all

HDParm                    Disk Read                 278.91 MB/s              
HDParm                    Cached Disk Read          195.22 MB/s              
DD                        Disk Write                180 MB/s                 
FIO                       4k random read            18285 IOPS (73142 KB/s)  
FIO                       4k random write           9120 IOPS (36480 KB/s)   
IOZone                    4k read                   20838 KB/s               
IOZone                    4k write                  24145 KB/s               
IOZone                    4k random read            20664 KB/s               
IOZone                    4k random write           27203 KB/s               

                          Score: 7483                           
Likely cheaper, way faster, and more durable to boot. For that I can live with clutter... :-) (note: This comment is in comparison against the USB stick, not other SSD).

superpowter77
Posts: 19
Joined: Thu Aug 22, 2019 2:38 pm

Re: Which SSD to buy for raspberry pi?

Tue Sep 03, 2019 1:40 am

Got my new SSD drives, Samsung T5 500Gb and T5 1Tb
Those are the current top performers for RPi 4. Both drives are USB 3.1 compliance and are rate to work at 540 Mb /s read and write.
I was going to get the new Samsung X5 500 Gb NvMe drive but following advise from someone here decided not to. It was tempting seeing the X5 NvMe external drive running at 2,800MB/s and 2,300MB/s respectively for read/write speeds. I just found out, Rpi 4 usb 3.0 bus tops at 310 Mb/s Reading speeds and 220 Mb /s for writing speeds.
This is the fastest we can get on SSD drives with Rpi 4b v1.1 (10K+ Score). Next, I need to buy an ICE Tower CPU Cooling Fan for Raspberry Pi 4 to start playing with OC's speeds.

Some of my multiple benchmarks today for Samsung T5 500Gb external hard drive:

Category Test Result
HDParm Disk Read 303.46 MB/s
HDParm Cached Disk Read 288.96 MB/s
DD Disk Write 215 MB/s
FIO 4k random read 25346 IOPS (101386 KB/s)
FIO 4k random write 14120 IOPS (56480 KB/s)
IOZone 4k read 37074 KB/s
IOZone 4k write 31954 KB/s
IOZone 4k random read 25669 KB/s
IOZone 4k random write 36748 KB/s

Score: 10019

shrd
Posts: 5
Joined: Fri Jul 12, 2019 1:20 pm

Re: Which SSD to buy for raspberry pi?

Sat Oct 26, 2019 9:55 am

I have bought a PNY CS900 240 gb with a startech USB3S2SAT3CB
Check if you have uas driver and 5000 mbps (5 gbps), max bandwidth of usb3 with :

Code: Select all

lsusb -t
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 4: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 4: Dev 3, If 1, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 4: Dev 3, If 3, Class=Audio, Driver=snd-usb-audio, 12M


Note that i can't have one SSD and one hardrive in the same time without error : need more power I guess or an USB hub. With "hdparm -S xxx" to maximize low power on the hardrive it could be OK (i have not test it very long time) but I prefer to have a little security margin. I have an audio DAC on one USB2 port too but even unplugged, i have errors.

The SSD is not the fastest according to :

Code: Select all

curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash
Category Test Result
HDParm Disk Read 244.76 MB/s
HDParm Cached Disk Read 232.80 MB/s
DD Disk Write 233 MB/s
FIO 4k random read 10513 IOPS (42053 KB/s)
FIO 4k random write 2934 IOPS (11737 KB/s)
IOZone 4k read 25010 KB/s
IOZone 4k write 12917 KB/s
IOZone 4k random read 14373 KB/s
IOZone 4k random write 16844 KB/s

Score: 5738

but it performs so well compared to the micro SD and it is a cheap SSD, i can advice it for now

Update, I test it without uas :
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M

Category Test Result
HDParm Disk Read 148.65 MB/s
HDParm Cached Disk Read 169.90 MB/s
DD Disk Write 155 MB/s
FIO 4k random read 2799 IOPS (11199 KB/s)
FIO 4k random write 2400 IOPS (9601 KB/s)
IOZone 4k read 18944 KB/s
IOZone 4k write 13160 KB/s
IOZone 4k random read 9658 KB/s
IOZone 4k random write 5627 KB/s

Score: 3209

freewill404
Posts: 2
Joined: Mon Nov 04, 2019 8:45 pm

Re: Which SSD to buy for raspberry pi?

Mon Nov 04, 2019 8:48 pm

This might be a silly question, but if I only plan on running a personal website (casual traffic) nginx server + Wireguard VPN on my Pi, will I notice any difference MicroSD vs. SSD?

BeauSlim
Posts: 56
Joined: Mon Jul 31, 2017 10:02 am

Re: Which SSD to buy for raspberry pi?

Mon Nov 04, 2019 11:58 pm

freewill404 wrote:
Mon Nov 04, 2019 8:48 pm
This might be a silly question, but if I only plan on running a personal website (casual traffic) nginx server + Wireguard VPN on my Pi, will I notice any difference MicroSD vs. SSD?
A "casual" web server and a vpn won't really benefit much from higher storage speed.

SD cards are rather famous for becoming corrupted if being written to when power cuts, and you might want to set up in a "read only" overlayfs mode.

User avatar
rpdom
Posts: 15364
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Which SSD to buy for raspberry pi?

Tue Nov 05, 2019 9:21 am

freewill404 wrote:
Mon Nov 04, 2019 8:48 pm
This might be a silly question, but if I only plan on running a personal website (casual traffic) nginx server + Wireguard VPN on my Pi, will I notice any difference MicroSD vs. SSD?
Yes, a little bit at least. You may also find that the SSD is more reliable than an SD card in the long run.

ejolson
Posts: 3681
Joined: Tue Mar 18, 2014 11:47 am

Re: Which SSD to buy for raspberry pi?

Tue Nov 05, 2019 3:24 pm

rpdom wrote:
Tue Nov 05, 2019 9:21 am
freewill404 wrote:
Mon Nov 04, 2019 8:48 pm
This might be a silly question, but if I only plan on running a personal website (casual traffic) nginx server + Wireguard VPN on my Pi, will I notice any difference MicroSD vs. SSD?
Yes, a little bit at least. You may also find that the SSD is more reliable than an SD card in the long run.
If you have the Pi 4B, then the addition of USB3 (connected to single-lane PCI express on the SOC) makes an SSD a good choice. In my opinion, there is less reason to use an SSD on older models.

freewill404
Posts: 2
Joined: Mon Nov 04, 2019 8:45 pm

Re: Which SSD to buy for raspberry pi?

Thu Nov 07, 2019 7:25 pm

BeauSlim wrote:
Mon Nov 04, 2019 11:58 pm
freewill404 wrote:
Mon Nov 04, 2019 8:48 pm
This might be a silly question, but if I only plan on running a personal website (casual traffic) nginx server + Wireguard VPN on my Pi, will I notice any difference MicroSD vs. SSD?
A "casual" web server and a vpn won't really benefit much from higher storage speed.

SD cards are rather famous for becoming corrupted if being written to when power cuts, and you might want to set up in a "read only" overlayfs mode.
Wouldn't the read only mode impact the web server's functionality? I mean, how will the mysql database for example get updated if the SD is "read only"?
rpdom wrote:
Tue Nov 05, 2019 9:21 am
freewill404 wrote:
Mon Nov 04, 2019 8:48 pm
This might be a silly question, but if I only plan on running a personal website (casual traffic) nginx server + Wireguard VPN on my Pi, will I notice any difference MicroSD vs. SSD?
Yes, a little bit at least. You may also find that the SSD is more reliable than an SD card in the long run.
Oh really? I was kind of hoping it won't be the case. Will something cheap, like the Kingston A400 cut it, and if yes, will it be a day and night difference between a MicroSD and the Kingston A400?

Return to “General discussion”