amirul Posted November 24, 2020 Posted November 24, 2020 Linux 5.10 ARM64 Has A "8~20x" Performance Optimization Using 20201123 (kernel 5.10-rc4) now. Doesn't feel 8-20x faster, maybe benchmarks will show
guidol Posted November 24, 2020 Posted November 24, 2020 it seems to be only for a memory-remap function and not for the whole system Quote Back in 2018 was a memory management speed-up by around 20x for the mremap system call on large memory regions. That patch by a Google engineer was an optimization for mremap given that Android relies on using it for large regions of memory during various operations. The mremap system call can be quite slow without transparent huge-pages (THP) while this patch makes things faster by copying at the PMD level when possible. The speed-up back in 2018 by the engineer was reported to be around ~20x faster on x86 (x86_64) with a 1GB mremap taking just 144~160 microseconds rather than 3.4~3.6 milliseconds. But for systems with THP support, there isn't likely to be much of a performance difference.
amirul Posted November 24, 2020 Author Posted November 24, 2020 Yes, trying to find a way to measure this improvement. Unsuccessful so far.
ning Posted November 24, 2020 Posted November 24, 2020 this improvement only in some certain cases. and the cases are mixed in our daily use, maybe not high frequently used, so 8x~20x * frequency, that's actual improvement, we can feel.
amirul Posted November 24, 2020 Author Posted November 24, 2020 It does seem that the optimization is for certain use-cases only, not apparent in daily desktop operations. Anyway, 20201123 is running without issues so far, congratulations to balbes
amirul Posted December 9, 2020 Author Posted December 9, 2020 eth0 seems to disengage after a while. Reverted to kernel 5.9.9, seems stable so far. Looking forward to 5.10 final after this weekend.
SteeMan Posted December 9, 2020 Posted December 9, 2020 10 minutes ago, amirul said: eth0 seems to disengage after a while. What box/sbc are you seeing the eth0 issues? I am seeing something similar on a N6 max (rk3399) but don't have issues with a TX3 mini (s905w) when running 5.10.0-rc7.
amirul Posted December 9, 2020 Author Posted December 9, 2020 I'm on N6 Max. Where did you get 5.10.0-rc7?
SteeMan Posted December 9, 2020 Posted December 9, 2020 It is my own kernel build from mainline kernel sources. I build 5.4 and 5.9 kernels for my 'production' boxes. I just this past weekend got a build environment put together for 5.10 for my test boxes.
amirul Posted December 9, 2020 Author Posted December 9, 2020 I see. I'd be interested to know how well 5.10 final will run.
SteeMan Posted December 9, 2020 Posted December 9, 2020 I will let you know. One of the changes between 5.9 and 5.10 for the rock-pi-4 dtb is that in 5.10 it now has three versions rock-pi-4a, 4b and 4c. I am currently using the 4b version for the N6 max. If the networking stability remains, I may experiment with the other dtb files and/or try to revert back to the way they were structured in 5.9 to see if that may be the cause of the issues. I bought the N6 max board because of your recommendation and am very impressed with the overall performance. But I really don't know how closely the box hardware matches the rock-pi-4 dtb that I am currently using. This is the most recent board I have purchased and I am still getting to know it better. Do you run your N6 max box from sd card or internal emmc? It took me a bit of work to adjust balbes scripts, but I eventually got the os installed on emmc.
amirul Posted December 9, 2020 Author Posted December 9, 2020 I'm running off sd and since it is running well enough, I didn't to risk bricking the box by trying to install to emmc. What cpu speeds have you got running?
SteeMan Posted December 10, 2020 Posted December 10, 2020 I am running at 1800. I haven't looked into trying to increase that any higher. As this is my newest box that I am still feeling my way around, I'm not running anything on it that really pushes the cpu, except for a benchmark utility here or there.
amirul Posted December 14, 2020 Author Posted December 14, 2020 I've got it running the xfce4 desktop at 1.70Ghz(cpu1-4) and 2.02Ghz(cpu5-6) plus a few other tweaks. With kernel 5.9.9 the issues with eth0 seems to have gone, although there were a few times it disconnected/reconnected on its own. Now that 5.10 final is released, waiting for Armbian
mkultra Posted December 14, 2020 Posted December 14, 2020 are you guys running the Magicsee N6 Max, that looks like an ashtray? Any cooling issues? Thanks!
amirul Posted December 14, 2020 Author Posted December 14, 2020 I use this, the N6 Max maintains temps in the 50's C. Without it, high 60's.
Bozza Posted December 14, 2020 Posted December 14, 2020 Is there a comprehensive list of changes made that are more of an interest to us arm users?
Igor Posted December 14, 2020 Posted December 14, 2020 4 hours ago, Bozza said: Is there a comprehensive list of changes made that are more of an interest to us arm users? Armbian supported hardware or in general? We usually integrate features (way) before they reach mainline. Perhaps quick scan here https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/arch/arm64?h=v5.10.1 and here https://www.collabora.com/news-and-blog/news-and-events/kernel-5.10-rockchip-h264-bifrost-more.html ?
Recommended Posts