Package: procps
Version: 2:3.3.15-2
Severity: wishlist
File: /usr/bin/top
File: /bin/ps

In some circumstances it is possible that reading /proc/1234/cmdline
will hang. I encountered this in a situation where the memory for that
file was swapped out and swapping it back in was taking a long time because the 
process also had a lot of other memory swapped out.

It would be nice if ps and top could behave more nicely when the system
is in a weird state. For /proc/1234/cmdline I'd suggest a short timeout
for reading it before falling back on /proc/1234/comm or
/proc/1234/stat* files.

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 
'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 
'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.2.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), 
LANGUAGE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages procps depends on:
ii  init-system-helpers  1.57
ii  libc6                2.28-10
ii  libncurses6          6.1+20190803-1
ii  libncursesw6         6.1+20190803-1
ii  libprocps7           2:3.3.15-2
ii  libtinfo6            6.1+20190803-1
ii  lsb-base             10.2019051400

Versions of packages procps recommends:
ii  psmisc  23.2-1+b1

procps suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to