Jump to content

Low performance on N2 if kernel version 6.17+


Go to solution Solved by c0rnelius,

Recommended Posts

Posted (edited)

After updating the edge kernel to 6.18-rc, the performance of my ODroid-N2 dropped drastically.
 
Here are the performance test results of 7zip with different kernel versions for comparison

 

I compile the kernel myself using the armbian build system and install the resulting .deb.

 

'7z b'

 

7-Zip 23.01 (arm64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
 64-bit arm_v:8 locale=en_GB.UTF-8 Threads:6 OPEN_MAX:1024

Compiler: 13.2.0 GCC 13.2.0
Linux : 6.16.6-edge-meson64 : #1 SMP PREEMPT Tue Sep  9 17:02:41 UTC 2025 : aarch64
PageSize:4KB THP:always hwcap:8FF:CRC32:SHA1:SHA2:AES:ASIMD
LE

1T CPU Freq (MHz):  1901  1897  1904  1904  1904  1904  1903
3T CPU Freq (MHz): 298% 1894   298% 1892

RAM size:    3769 MB,  # CPU hardware threads:   6
RAM usage:   1334 MB,  # Benchmark threads:      6

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       7244   525   1343   7048  |     136762   553   2109  11660
23:       6896   533   1317   7026  |     128222   535   2071  11092
24:       6626   539   1323   7124  |     114197   478   2096  10021
25:       6170   542   1301   7045  |     121553   536   2020  10818
----------------------------------  | ------------------------------
Avr:      6734   535   1321   7061  |     125184   526   2074  10898
Tot:             530   1698   8979

-------------------------------------------------------------------------------------------------

7-Zip 23.01 (arm64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
 64-bit arm_v:8 locale=en_GB.UTF-8 Threads:6 OPEN_MAX:1024

Compiler: 13.2.0 GCC 13.2.0
Linux : 6.18.0-rc7-edge-meson64 : #1 SMP PREEMPT Sun Nov 23 22:53:16 UTC 2025 : aarch64
PageSize:4KB THP:always hwcap:8FF:CRC32:SHA1:SHA2:AES:ASIMD
LE

1T CPU Freq (MHz):  1966  1985  1732  1940  1979  1946  1486
3T CPU Freq (MHz):  64% 424    97% 641

RAM size:    3773 MB,  # CPU hardware threads:   6
RAM usage:   1334 MB,  # Benchmark threads:      6

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       1045    85   1191   1018  |      20252    91   1903   1727
23:       1078    90   1218   1099  |      18815    86   1889   1628
24:       1100    93   1274   1183  |      19644    92   1880   1724
25:        914    78   1332   1044  |      19697    94   1873   1753
----------------------------------  | ------------------------------
Avr:      1034    87   1253   1086  |      19602    91   1886   1708
Tot:              89   1570   1397

 

 

I have done similar tests on ODroid-M1 (rockchip), but nothing similar happens there.

 

What could be the reason?

Edited by iav
removed an unconfirmed mention of 6.17
Posted
10 hours ago, iav said:

What could be the reason?

Is see no significant differences:

********************************************************************************
ssd-006
Hardkernel ODROID-N2Plus
CPU 0-1: performance 1000 MHz - 2016 MHz
CPU 2-5: performance 1000 MHz - 2400 MHz
GPU: performance 124 MHz - 799 MHz
6.16.0-0.rc1.17.fc43.aarch64 #1 SMP PREEMPT_DYNAMIC Sat Jun 14 11:19:02 CEST 2025
********************************************************************************
7z b

7-Zip 24.09 (arm64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-11-29
 64-bit arm_v:8-A locale=en_US.UTF-8 Threads:6 OPEN_MAX:1024

Compiler:  ver:15.2.1 20250924 (Red Hat 15.2.1-2) GCC 15.2.1 : UNALIGNED
Linux : 6.16.0-0.rc1.17.fc43.aarch64 : #1 SMP PREEMPT_DYNAMIC Sat Jun 14 11:19:02 CEST 2025 : aarch64
PageSize:4KB THP:madvise hwcap:8FF:CRC32:SHA1:SHA2:AES:ASIMD
arm64

1T CPU Freq (MHz):  2092  2387  2384  2390  2361  2389  2388
3T CPU Freq (MHz): 282% 2239   296% 2352..
6T CPU Freq (MHz): 538% 2040   497% 1893..

RAM size:    3740 MB,  # CPU hardware threads:   6
RAM usage:   1334 MB,  # Benchmark threads:      6

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       7107   508   1362   6914  |     141426   488   2473  12058
23:       6459   494   1332   6581  |     136949   489   2421  11847
24:       6268   508   1327   6740  |     132118   485   2390  11593
25:       5695   515   1264   6503  |     127085   483   2343  11310
----------------------------------  | ------------------------------
Avr:      6382   506   1321   6684  |     134394   486   2407  11702
Tot:             496   1864   9193
********************************************************************************
ssd-006
Hardkernel ODROID-N2Plus
CPU 0-1: performance 1000 MHz - 2016 MHz
CPU 2-5: performance 1000 MHz - 2400 MHz
GPU: performance 124 MHz - 799 MHz
6.18.0-0.rc3.30.fc44.aarch64 #1 SMP PREEMPT_DYNAMIC Mon Oct 27 21:17:35 CET 2025
********************************************************************************
7z b

7-Zip 24.09 (arm64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-11-29
 64-bit arm_v:8-A locale=en_US.UTF-8 Threads:6 OPEN_MAX:1024

Compiler:  ver:15.2.1 20250924 (Red Hat 15.2.1-2) GCC 15.2.1 : UNALIGNED
Linux : 6.18.0-0.rc3.30.fc44.aarch64 : #1 SMP PREEMPT_DYNAMIC Mon Oct 27 21:17:35 CET 2025 : aarch64
PageSize:4KB THP:madvise hwcap:8FF:CRC32:SHA1:SHA2:AES:ASIMD
arm64

1T CPU Freq (MHz):  2365  2380  2383  2390  2389  2391  2388
3T CPU Freq (MHz): 277% 2162   274% 2095..
6T CPU Freq (MHz): 533% 2021   508% 1926..

RAM size:    3737 MB,  # CPU hardware threads:   6
RAM usage:   1334 MB,  # Benchmark threads:      6

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       6924   491   1373   6737  |     136783   473   2465  11662
23:       6586   495   1356   6711  |     141391   506   2418  12232
24:       6240   494   1359   6709  |     138310   510   2382  12137
25:       5912   507   1330   6750  |     127792   487   2337  11373
----------------------------------  | ------------------------------
Avr:      6415   497   1355   6727  |     136069   494   2401  11851
Tot:             495   1878   9289

 

Posted

I did a bisect.

3381d25b77fbf1ebaaa151a9f2be66fbf1ca3a1e is the first bad commit
commit 3381d25b77fbf1ebaaa151a9f2be66fbf1ca3a1e
Author: Ricardo Pardini <ricardo@pardini.net>
Date:   Sun Oct 12 19:57:32 2025 +0200

I try to build 6.18 kernel with config file linux-meson64-edge.config taken from "good" 6.17 kernel.

but result was a "slow" kernel.

 

Before I hope to find "bad" change in kernel config, now it's clear problem not there.

I have no more ideas 😢

Posted

I haven't personally had issue with 6.17.y, but 6.18.y is a mess on meson-g12. It is basically unusable in my opinion. PCIe is hosed, even the patch that kind of fixes the issue just makes the error go away and doesn't fix the underlining problem "performance". I also get topology errors, but as I haven't really seen anyone yet complain about that, I'm assuming its me.

 

For my personal use, I will be sticking with 6.12.y until things get sorted.

 

 

Posted

I add a patch from https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git/patch/?id=79482f3791c4760b9b0d8d9bfde9f1053ea3dd5e into my build (`userpatches/kernel/archive/meson64-6.18`)

 

And success!

7-Zip 23.01 (arm64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
 64-bit arm_v:8 locale=en_GB.UTF-8 Threads:6 OPEN_MAX:1024

Compiler: 13.2.0 GCC 13.2.0
Linux : 6.18.0-edge-meson64 : #1 SMP PREEMPT Sun Nov 30 22:42:10 UTC 2025 : aarch64
PageSize:4KB THP:always hwcap:8FF:CRC32:SHA1:SHA2:AES:ASIMD
LE

1T CPU Freq (MHz):  1887  1899  1901  1901  1903  1903  1903
3T CPU Freq (MHz): 299% 1904   300% 1903

RAM size:    3773 MB,  # CPU hardware threads:   6
RAM usage:   1334 MB,  # Benchmark threads:      6

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       7750   530   1423   7540  |     135098   544   2118  11518
23:       7635   541   1438   7780  |     134250   551   2106  11614
24:       7469   535   1502   8032  |     131036   551   2089  11498
25:       7334   545   1537   8374  |     129234   552   2085  11501
----------------------------------  | ------------------------------
Avr:      7547   538   1475   7931  |     132404   549   2099  11533
Tot:             544   1787   9732

@c0rnelius, you hit them!

Thank you!!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines