Replies: 7 comments 4 replies
-
Xanmod has all cpu mitigations enabled by default, linux-tkg too? |
Beta Was this translation helpful? Give feedback.
-
linux-tkg has also all mitigations turned on. From linux-tkg config:
|
Beta Was this translation helpful? Give feedback.
-
Tkg compiles the entire kernel with -O3, which is probably the reason for the performance gain. Today I no longer use this cc flag due to possible stability and latency problems. Torvalds doesn't recommend it either. |
Beta Was this translation helpful? Give feedback.
-
I built this image with more optimizations that I have been testing for a while. |
Beta Was this translation helpful? Give feedback.
-
I want to add one more piece of information for this test: EDIT: |
Beta Was this translation helpful? Give feedback.
-
In the meantime have also tested linux-xanmod 6.9.3 and the results are similar:
|
Beta Was this translation helpful? Give feedback.
-
I have repeated the benchmark with kernel 6.6.58 and there is no doubt, that the xanmod kernel makes darktable slower by 16-17 % compared to the arch kernel or the linux-tkg kernel. And this is even true for opencl and not just CPU load.
This is how I do the benchmark: I am using darktable and the debug output of darktable tells me how much time it spends in the "pixel pipeline". That is basically how much time it needs to convert a picture from RAW to jpg. I am doing this benchmark with opencl support enabled, running on my AMD GPU, and with opencl support disabled, purely running on the CPU. The darktable command is:
The line to look for in the debug output is:
The results are very surprising to me. Why is darktable running slower on xanmod. Any idea? |
Beta Was this translation helpful? Give feedback.
-
I was not able to fid the issue tracker for xanmod. So here I create a 'discussion' for the performance issue I found.
I compared linux-tkg 6.6.32 kernel with xanmod-lts 6.6.32 and found a 11 % performance drop with xanmod.
Both kernels where using 250 Hz and march=x86-64-v3
I have a standardized darktable benchmark where I convert a RAW file into a JPG file. The benchmark does it in two ways. First with opencl enabled and second with opencl disable on CPU only. The results are reproducible. I ran the benchmarks after a fresh boot. Always 6 runs in a row and the calculating the average time darktable spend in its "pixel pipeline".
xanmod :
linux-tkg:
I did not expect such a big difference. Any idea why the performance of xanmod-lts is so much slower?
PS:
CPU= AMD Ryzen 9 5900X with 64 GB RAM
GPU= Radeon RX 6650 XT
Beta Was this translation helpful? Give feedback.
All reactions