We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

webbsmurfen
Posts: 74
Joined: Fri Jun 27, 2014 12:22 pm

M.2 NVMe Disk preformance question (RPI-5 16gig)

Sat Jun 21, 2025 10:14 pm

I got an M.2 WD SSD Blue SN580 250GB (PCIe 4.0)NVMe connected, however i expected it to preform closer to 500MB/sec,
Is there a way to get more preformance out of that one lane PCIe 2.0

No changes done in config.txt. Everything is on auto. Booting from disk
Attachments
20250621_23h18m37s_grim.jpg
Faster than this
20250621_23h18m37s_grim.jpg (31.09 KiB) Viewed 461 times

User avatar
thagrol
Posts: 14863
Joined: Fri Jan 13, 2012 4:41 pm

Re: M.2 NVMe Disk preformance question (RPI-5 16gig)

Sat Jun 21, 2025 11:10 pm

You're seeing better performance than I'm getting.

Code: Select all

Non-Volatile memory controller: Hosin Global Electronics Patriot P300 NVMe SSD (DRAM-less)

pi@devpi:~ $ sudo hdparm -t --direct /dev/nvme0n1

/dev/nvme0n1:
 Timing O_DIRECT disk reads: 1202 MB in  3.00 seconds = 400.10 MB/sec

Have you tried forcing PCIe gen3 in config.txt?

edited for typo
Last edited by thagrol on Sat Jun 21, 2025 11:55 pm, edited 1 time in total.
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

webbsmurfen
Posts: 74
Joined: Fri Jun 27, 2014 12:22 pm

Re: M.2 NVMe Disk preformance question (RPI-5 16gig)

Sat Jun 21, 2025 11:27 pm

thagrol wrote:
Sat Jun 21, 2025 11:10 pm
Your seeing better performance than I'm getting.

Code: Select all

Non-Volatile memory controller: Hosin Global Electronics Patriot P300 NVMe SSD (DRAM-less)

pi@devpi:~ $ sudo hdparm -t --direct /dev/nvme0n1

/dev/nvme0n1:
 Timing O_DIRECT disk reads: 1202 MB in  3.00 seconds = 400.10 MB/sec

Have you tried forcing PCIe gen3 in config.txt?
No, thanks for reminding me. It´s "dtparam=pciex1_gen=3" right?

webbsmurfen
Posts: 74
Joined: Fri Jun 27, 2014 12:22 pm

Re: M.2 NVMe Disk preformance question (RPI-5 16gig)

Sat Jun 21, 2025 11:49 pm

Well.. That changes things :shock: .. A lot actually!! However it seems to work fine for now, but how to check for errors.

Im a bit sceptic about those numbers, however its an Gen4 disk, so maybe.. However can the Raspberry PI handle that amount of data on that single 1x lane?
Attachments
20250621_23h18m37s_grim.jpg
20250621_23h18m37s_grim.jpg (23.85 KiB) Viewed 404 times
Last edited by webbsmurfen on Sat Jun 21, 2025 11:55 pm, edited 1 time in total.

User avatar
thagrol
Posts: 14863
Joined: Fri Jan 13, 2012 4:41 pm

Re: M.2 NVMe Disk preformance question (RPI-5 16gig)

Sat Jun 21, 2025 11:54 pm

webbsmurfen wrote:
Sat Jun 21, 2025 11:49 pm
Well.. That changes things.. A lot actually!! However it seems to work fine for now, but how to check for errors.

i dont want to trash that disk

Checking your logs/systemd journal/dmesg output and running the occasional fsck is where I'd start.
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

User avatar
thagrol
Posts: 14863
Joined: Fri Jan 13, 2012 4:41 pm

Re: M.2 NVMe Disk preformance question (RPI-5 16gig)

Sat Jun 21, 2025 11:57 pm

webbsmurfen wrote:
Sat Jun 21, 2025 11:49 pm
Im a bit sceptic about those numbers, however its an Gen4 disk, so maybe.. However can the Raspberry PI handle that amount of data on that single 1x lane?

Probably. Otherwise wouldn't it have reported a lower figure?
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

User avatar
kerry_s
Posts: 8478
Joined: Thu Jan 30, 2020 7:14 pm

Re: M.2 NVMe Disk preformance question (RPI-5 16gig)

Sun Jun 22, 2025 12:26 am

those are pretty much the numbers i would expect
i just turned on gen3 this mourning
Attachments
20250621_14h25m17s_grim.png
20250621_14h25m17s_grim.png (93.11 KiB) Viewed 361 times

Return to “Troubleshooting”