Package: htop
Version: 3.2.2-2
Severity: normal

Dear Maintainer,

It seems that htop 3.2.2 for Debian 12/Bookworm contains a patch which
removes LXC specific code to identify cgroup limited cpu cores.

Due to that patch, which removes that cgroup limit lookup, htop shows
all physical cores inside a LXC container. The container in question has
a cpu limit set to 2 CPUs. htop should show two CPUs at the top of the
ncurses UI - however on Debian 12 all physical cores are showing up.

Manually compiling and running htop 3.2.2 from source shows the correct
number of cgroup limited CPUs inside a LXC container. 

To me it looks as if the patch, added in the deb package, is a
regression. Was there a specific reason to add this patch? I cant see
what is supposed to be broken without that patch.

-- System Information:
Debian Release: 12.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-0.deb10.16-amd64 (SMP w/16 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages htop depends on:
ii  libc6             2.36-9+deb12u3
ii  libncursesw6      6.4-4
ii  libnl-3-200       3.7.0-0.2+b1
ii  libnl-genl-3-200  3.7.0-0.2+b1
ii  libtinfo6         6.4-4

htop recommends no packages.

Versions of packages htop suggests:
pn  lm-sensors  <none>
ii  lsof        4.95.0-1
pn  strace      <none>

-- no debconf information

Reply via email to