Your message dated Mon, 14 Apr 2025 08:36:42 +0000
with message-id <[email protected]>
and subject line Bug#978688: fixed in procps 2:4.0.4-8
has caused the Debian Bug report #978688,
regarding /sbin/sysctl: sysctl -a stuck on vm.stat_refresh when RR tasks run
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
978688: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978688
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: procps
Version: 2:3.3.16-5
Severity: normal
File: /sbin/sysctl
X-Debbugs-Cc: [email protected]

/proc/sys/vm/stat_refresh is a special file that if read or written (by
root), triggers synchronization of all VM data from all CPUs, so other
files (i.e. /proc/meminfo in particular) show up to date values.

https://www.kernel.org/doc/Documentation/sysctl/vm.txt for more details.

sysctl -a does read this file.

strace:

strace sysctl -a 2>&1 | grep 'refresh'
stat("/proc/sys/vm/stat_refresh", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
stat("/proc/sys/vm/stat_refresh", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
openat(AT_FDCWD, "/proc/sys/vm/stat_refresh", O_RDONLY) = 5



However, in the presence of real time tasks, reading might block 
indefinitively, i.e.:

sudo schedtool -R -p 98 -a 7 -e stress-ng -c 1

time cat /proc/sys/vm/stat_refresh

This will never finish (I waited dozens of minutes).

I would suggest adding a special case to sysctl to not read
vm.stat_refresh. It produces no usable output, and reading it has side
effects, thus should be avoided.

Tested on Debian kernel Linux 5.9.11 with standard settings.


Also it does feel like a regression, because I do found reports from the
past that sysctl did not read vm.stat_refresh in the past, and done so on
purpose: https://bugzilla.redhat.com/show_bug.cgi?id=1473207

As of the blocking indefinitively, I will look into contacting kernel
devs about this issue, but even if this is fixed in the kernel, the
sysctl should still not touch the /proc/sys/vm/stat_refresh file.

Regards,
Witold


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-4-amd64 (SMP w/32 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages procps depends on:
ii  init-system-helpers  1.60
ii  libc6                2.31-6
ii  libncurses6          6.2+20201114-1
ii  libncursesw6         6.2+20201114-1
ii  libprocps8           2:3.3.16-5
ii  libtinfo6            6.2+20201114-1
ii  lsb-base             11.1.0

Versions of packages procps recommends:
ii  psmisc  23.3-1

procps suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: procps
Source-Version: 2:4.0.4-8
Done: Craig Small <[email protected]>

We believe that the bug you reported is fixed in the latest version of
procps, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Craig Small <[email protected]> (supplier of updated procps package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 14 Apr 2025 18:06:27 +1000
Source: procps
Architecture: source
Version: 2:4.0.4-8
Distribution: unstable
Urgency: medium
Maintainer: Craig Small <[email protected]>
Changed-By: Craig Small <[email protected]>
Closes: 729569 842879 978688 1054345 1061944 1072831 1077187 1080333 1080335 
1086441 1098385
Changes:
 procps (2:4.0.4-8) unstable; urgency=medium
 .
   * Port 4.0.5 patches:
     - library: recover from meminfo seek in LXC Closes: #1072831
     - library: print user/day when value is zero
     - library: Use clock_gettime for pids API Closes: #842879
     - kill: Correctly parse negative pids
     - sysctl: Don't read some keys Closes: #978688
     - skill: Fix lonesome : in help Closes: #1086441
     - sysctl.conf.5 Note changes with systemd Closes: #1077187
     - vmstat.8: si/so are changed by --unit Closes: #1061944
     - w: Don't crash with short option Closes: #1054345
     - w: Only count user sessions Closes: #1098385
     - w.1: Mention utmp only for non-systemd Closes: #1080333
     - watch.1: --chgexit only on visible changes Closes: #729569
   * Port 4.0.6 patches:
     - w: Add terminal mode -t option
     - w: Use process TTY for user TTY Closes: #1080335
Checksums-Sha1:
 a85ba176ca91aac13a9b781dd59aa89e13a714a4 2124 procps_4.0.4-8.dsc
 fe1779e1113b80412f0462b842ff01fa0b65ab21 45408 procps_4.0.4-8.debian.tar.xz
 fbb82afb3daac8395f3abf371a3335712bec72a6 7227 procps_4.0.4-8_amd64.buildinfo
Checksums-Sha256:
 996c2e0af9956dd1dfb9604720eb24ec21a79a53c320c7125794f8ac2791a640 2124 
procps_4.0.4-8.dsc
 0d1723a0134f8b6ae2619a4e9878084c06f92e36ab7c163086d713f2ed064f3d 45408 
procps_4.0.4-8.debian.tar.xz
 be18913f0a75bcb4ad772215c135104d8b7b9eb9651b7ef095285a5048a75de2 7227 
procps_4.0.4-8_amd64.buildinfo
Files:
 04763ca713d44bbdf625ccbab633efe4 2124 admin optional procps_4.0.4-8.dsc
 a1560600adc4858a0bddab1df138ea64 45408 admin optional 
procps_4.0.4-8.debian.tar.xz
 27aae028a419b7dbb46dbded81dbcfc9 7227 admin optional 
procps_4.0.4-8_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEXT3w9TizJ8CqeneiAiFmwP88hOMFAmf8woAACgkQAiFmwP88
hOOyPQ//fpw8/hLQHyA5Jm3ojtIlQfvgHSxXv4YPRXv39KfZxmkz+r7bUCwp4qlN
4QWiE94yo7Fn+QROc4v45SpAMd25f8HoD15bOISbyUE2RiPp+v8P3Yf/4N/Msp+d
+H26plwAI2M98OyJ9RGVEU9IKNqeOT0kDlaDs8zxcY11b/cXqNtFEpJc5KiVLBpU
IoUXIzEh2EnIgL128Ix+ldtAL2BdDMLoLBtUOY8PabDnAFEtJNfInOe369rFH6KO
xuBtZy1u7HonYLtLfM4+UAnxE99njT/tRR0YTh6zCjLezvPMnBgf/uoW9eLmNYJH
BKj0D2+zMFf4xU4EYQ86/W1fWVisDYKymnuZiQpmI7G7FVwLJ20wKFNjj0R7GrDq
oGhBiog1DPsgH6gME5tMSPoJoFW1lftSSb+rWG9+7HaveEaW49X2cqNGhf4x2Rgd
d/UEBPW1huLQfV/Hm9xjwOTXmurRR3Ldv21mSf0RHPdU490XqVrH5JOTJgZICTI/
+xpJK70rfqQSo410YB8z4Yh3JPWNHn/Vo95dveUd2D6Ysbfm9oHsJB0nUYPE+E+M
NmqSNgssLI3VutObTMGUzzo2Uahyerw/cJxW1K4oObZmqf2OIebGH0TJvU6f9+5h
9IZj/tIyi9PeFcDo/pdoY7UbkOVtCzlcb2AbBYCuWAqqXm6W0nQ=
=KBLu
-----END PGP SIGNATURE-----

Attachment: pgp2ZMaCt_GDc.pgp
Description: PGP signature


--- End Message ---

Reply via email to