Closed gitranjithkk closed 1 month ago
When gathering the process/thread specific counters, there is a consistency check which ensures that the number of threads should never be smaller than the number of processes (even a zombie process still contains a thread). The number of threads is determined from the file /proc/loadavg
and the number of processes from the number of numerical subdirectories below the /proc
directory. The contents of the /proc/loadavg
in the strace
output is 0.05 0.15 0.28 1/7 3448043
which means that only 7 threads would be present in this system. This looks like a wrong value delivered by this version of the kernel. Issue #232 shows a similar situation.
The kernel source code file fs/proc/loadavg.c
shows that the contents of the kernel variable nr_threads
is inserted behind the slash.
Node OS:Virtuozzo Linux release 7.9 Node Kernel: 3.10.0-1160.105.1.vz7.220.3 VM OS:CloudLinux release 8.9 (Anatoly Levchenko) VM kernel:4.18.0 We are running imunify 360 as well in these VM. Atop installed: atop-2.9.0-1.x86_64 Atop output: `[root@server:/]$ atop
threads (6) < #procs (134)
`