0

Setup: RPi 4 with LAMP on IT sucks DK

My SD card is quite quick sure (it's a Class 10 too and all) but my question is this:

  • Would there be increased performance if I hosted my web-server files on a USB 3.0 HDD/SSD instead af my Class 10 SD-card on the Pi?

Anyone tried this yet?

EDIT: Another thought: If I want people to be able to upload and download larger than 1GB files wouldn't it be practical AND faster to be reading and writing these files to a DIR on the USB 3.0 SSD instead of the SD-card which is only 16GB all in all anyways and I do have 500/500 Mbit fiber line at my full disposal for the server?

IT Blacksmith
  • 63
  • 1
  • 8

2 Answers2

1

The SDCard interface is extremely slow compared to a USB 2.0 hard disk on my RPI3Bs.

So a USB 3.0 SSD on a RPi4B is going to be even faster (USB 3.0 is faster, SSD is faster).

Dougie
  • 5,381
  • 11
  • 22
  • 30
1

USB flash drives can reach up 33MBytes/s, but there seem to be some limitations in the NAND itself so it will come down to the type of stick you get. However, the sd-card bus speed can reach up to 20MB/s read on the raspberry pi. So, the better choice here is a high-class USB 2.0 USB flash drive.

On the other hand, the payment would be concerned. It cost much less to buy USB 2.0 USB flash drive instead of a UHS-3/Class 10 sd-card.

In conclusion, I see little benefit in booting from a USB flash stick, the price, and the speed. Source

If you compare SD-Card and USB 2.0, the USB 2.0 port is much faster. Obviously, USB 3.0 has a much much faster speed. The USB 3.0 is approximately 10 times faster than USB 2.0.

You may found that SSD drives are better for hosting BUT take a look at this link.

Mohi Rostami
  • 4,434
  • 1
  • 20
  • 39