Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How do I hack CPU usage precision (from getrusage) by building armv7 image

Featured Replies

Please take a look on CPU usage precision on the new kernel for x64 and arm64. It is 1 milliseconds.


image.thumb.png.f8513bf88ef02d29a8fdefbb20fb0c86.png

But kernel 6.13 on armv7 still provides 4 milliseconds of precision.

 

How do I tune CPU usage precision on image build?

 

  • Author
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

 

  • Author
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 by Crossplatform Vlad

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.