Closed jalsco closed 1 year ago
I am exeperiencing the same issue with the same board on the latest DietPi os and an intel 600p SSD.
Since Armbian did not push any new kernel update to their APT servers since February, we'd need to check with the latest build that comes with their images.
Could you test it with one of their image? https://www.armbian.com/rockpi4/
I will check in the next days with another SSD. I can't do that on the same I use now because I have just set it up to be a server. The other (better, intel 7600p) drive won't work for boot, I will boot from USB and then do some tests. In order to have more than one overlay I just have to put a space between them in the env file, right?
In order to have more than one overlay I just have to put a space between them in the env file, right?
Exactly
I'm testing on my Rock 4B with 4GB of RAM the Armbian_23.5.1_Rockpi-4b_bookworm_current_6.1.30_minimal image. I'm using a 256GB intel 600p SSD more than capable of reaching higher speeds with Gen2 enabled.
Without touching anything, the results are:
/dev/nvme0n1p1:
Timing O_DIRECT cached reads: 1036 MB in 2.00 seconds = 517.31 MB/sec
Timing O_DIRECT disk reads: 1710 MB in 3.00 seconds = 569.33 MB/sec
Enabling Gen2 via overlays=pcie-gen2
in the ENV file the results are:
/dev/nvme0n1p1:
Timing O_DIRECT cached reads: 1504 MB in 2.00 seconds = 751.65 MB/sec
Timing O_DIRECT disk reads: 2710 MB in 3.00 seconds = 902.90 MB/sec
It seems to work here with Armbian. After taking more than 2-3 consecutive tests the results increade by something like 20% in both cases. I usually run DietPi with a slight overclock at 2 GHz.
Linux rockpi-4b 6.1.30-rockchip64 #3 SMP PREEMPT Wed May 24 16:32:53 UTC 2023 aarch64 GNU/Linux
Strange thing is that with an SSD that I bought one week ago to expand my storage it seems to get Gen2 speeds even on Dietpi.
/dev/nvme0n1p1:
Timing O_DIRECT cached reads: 2034 MB in 2.00 seconds = 1017.24 MB/sec
Timing O_DIRECT disk reads: 2680 MB in 3.00 seconds = 892.90 MB/sec
So there is no issue, maybe. I can't check the intel ssd with Dietpi today, maybe tomorrow. Let me know.
Can you retest with DietPi v8.21? It applies a major Linux upgrade, being aligned with the version shipped with Armbian's images, or newer.
Can you retest with DietPi v8.21? It applies a major Linux upgrade, being aligned with the version shipped with Armbian's images, or newer.
Sure, I will upgrade it tonight.
It's doing fine!
Timing O_DIRECT cached reads: 2010 MB in 2.00 seconds = 1006.07 MB/sec
Timing O_DIRECT disk reads: 2714 MB in 3.00 seconds = 904.27 MB/sec
dietpi@DietPi:~/Docker$ sudo hdparm -Tt --direct /dev/nvme0n1p1
Linux DietPi 6.1.46-current-rockchip64 #3 SMP PREEMPT Wed Aug 16 16:27:31 UTC 2023 aarch64 GNU/Linux
Okay great, many thanks for testing. Looks like there have been quite a bunch of bugs fixed since February. I'm working on an own APT repo for next DietPi release, form where we can ship own kernel builds (like this v6.1.46 one, with the Armbian build system) and update them more regularly for our users.
Possibly a bug somewhere ? May be problems in my config, or maybe some config changes from ambian ?
Gen2 speeds for the NVMe on RockPi4 were working for several months, since 27 Nov 2022 and now is not. I didn't check after mid-Jan as was in different site, only checked in last few days, so I do not know exactly when it stopped working. Was working on earlier kernels :
5.15.76-rockchip64
and5.15.80-rockchip64
in Dec 2022 and into Jan 2023. Now (not working) kernel is on5.15.93-rockchip64
and can only get Gen1 speeds.My published benchmarks https://pibenchmarks.com/user/SeanPH/ cover 27-Nov-2022 - 9-Dec-2022. They show Gen2 speeds. Great numbers actually ! (thanks DietPi 😉). Click on test-num to see system specs at time of each test (eg kernel release etc).
Within those benchmarks included are
hdparm
direct-read numbers, plus others. By just using:hdparm -Tt --direct /dev/nvme0n1p1
, and looking at the DIRECT disk reads, it pretty clear if Gen2 is being used or not:Required Information
My
ambianEnv.txt
:In
rk3399-rock-pi.4b
: notemax-link-speed = <0x03>;
The overlay
rockchip-pcie-gen2
:Now for something weird: The NVMe was fully running and installed on my system by 20 Nov 2022 in Gen1 speed. And I tried many, many variations of config settings to get the
pcie-gen2
overlay working 20-21 Nov, but I could not. Speed for direct-reads always near 450-505 MB/sec. Even tried bypassing the overlay as per this: https://forum.armbian.com/topic/23574-howto-enable-pcie-gen2-to-get-max-speed-of-nvme-rockpi-4b/ -- but -- nothing worked.So I left it alone, untouched, and a few days later (27 Nov) I came back to write it up and document all the things I had tried... and before I started writing I checked the speed, and AMAZINGLY it was 800+ MB/sec (ie Gen2) . And after then , even kernel update xxx.76 -> xx.80 , it always stayed at Gen2 speeds (until I tested it in June 2023). I am curious if there was an kernel update near 21-27 Nov, maybe that could explain it ?