Crossplatform Vlad Posted April 14 Posted April 14 Build logs: https://paste.armbian.com/ivisomijaq Please take a look on CPU usage precision on the new kernel for x64 and arm64. It is 1 milliseconds. But kernel 6.13 on armv7 still provides 4 milliseconds of precision. How do I tune CPU usage precision on image build? 0 Quote
Crossplatform Vlad Posted May 24 Author Posted May 24 Seems Ubuntu from Canonical uses a customized kernel where CPU usage precision is improved. But Debian and Armbian use previous CPU usage precision settings? 0 Quote
laibsch Posted Monday at 01:31 PM Posted Monday at 01:31 PM Can you point to a patch or some code from Ubuntu how they achieve that? 0 Quote
Igor Posted Monday at 07:26 PM Posted Monday at 07:26 PM On 5/25/2025 at 1:16 AM, Crossplatform Vlad said: But Debian and Armbian use previous CPU usage precision settings? Did you compare those things on the same hardware (architecture)? 0 Quote
hexdump Posted Monday at 07:38 PM Posted Monday at 07:38 PM maybe its related to the kernel config parameter CONFIG_HZ_xyz - depending on which of them is set for the different kernels? 0 Quote
Crossplatform Vlad Posted Friday at 11:37 PM Author Posted Friday at 11:37 PM On 5/26/2025 at 10:26 PM, Igor said: Did you compare those things on the same hardware (architecture)? Good question. I did compared predefined default kernels from canonical (6.8) and debian (6.10) on the same hardware twice: 1) qemu arm64 emulator on x86_64 host with the same parameters. lines 6 and 7 on the screenshot 2) qemu x86_64 emulator on x86_64 host with the same parameters. lines 4 and 5 on the screenshot 0 Quote
Crossplatform Vlad Posted Friday at 11:43 PM Author Posted Friday at 11:43 PM (edited) On 5/26/2025 at 10:38 PM, hexdump said: maybe its related to the kernel config parameter CONFIG_HZ_xyz - depending on which of them is set for the different kernels? Seems it is an option for timer resolution in the measurement of duration. But the topic is about CPU usage precision returned by getrusage function. it is hardcoded interval of time when kernel updates CPU usage of particular thread/process. Edited Friday at 11:47 PM by Crossplatform Vlad 0 Quote
Recommended Posts
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.