Since this configuration option is going to be distro-independent (and possibly architecture independent) I would suggest the build process could be patched to handle this by reading the kernel configuration;

  grep 'CONFIG_HZ=' /boot/config-$(uname -r) | cut -f 2 -d '='

The above line returns the HZ value for the kernel performing the build which (I would guess) would match the configuration used by the kernel on any machines running the distribution?

Ideally this would be handled at run time, but I'm not aware of a cross-distro syscall that can read the kernel's HZ value.

- Jesse



On 12/26/25 12:58 PM, наб wrote:
Package: cpulimit
Version: 2.8-1
Severity: normal

Dear Maintainer,

cpulimit(1) says
   The current version of cpulimit assumes the kernel HZ value 100.
but
   $ grep ^CONFIG_HZ /boot/config-*
   /boot/config-6.1.0-27-amd64:CONFIG_HZ_250=y
   /boot/config-6.1.0-27-amd64:CONFIG_HZ=250
   /boot/config-6.1.0-35-amd64:CONFIG_HZ_250=y
   /boot/config-6.1.0-35-amd64:CONFIG_HZ=250
and
   /boot/config-6.5.0-3-amd64:CONFIG_HZ_250=y
   /boot/config-6.5.0-3-amd64:CONFIG_HZ=250
   /boot/config-6.7.7-amd64:CONFIG_HZ_250=y
   /boot/config-6.7.7-amd64:CONFIG_HZ=250
and
   /boot/config-6.17.13+deb14-amd64:CONFIG_HZ_250=y
   /boot/config-6.17.13+deb14-amd64:CONFIG_HZ=250

So this hasn't been correct since at least bookworm,
and still isn't in sid.

Best,

-- System Information:
Debian Release: 12.11
   APT prefers oldstable-updates
   APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 
'oldstable-debug'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-35-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, 
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cpulimit depends on:
ii  libc6  2.36-9+deb12u10

cpulimit recommends no packages.

cpulimit suggests no packages.

-- no debconf information

Reply via email to