Detect the kernel.task_delayacct sysctl value
commitab35334d374e588bec12d201fb8869c536f0545d
authorPaul Wise <pabs3@bonedaddy.net>
Sat, 2 Oct 2021 04:13:16 +0000 (2 12:13 +0800)
committerPaul Wise <pabs3@bonedaddy.net>
Sat, 2 Oct 2021 04:15:13 +0000 (2 12:15 +0800)
treee354b878abdbdfddd0adb8713be63710aeb1eb02
parentdd4fcc71b1184264bed25fbc0ce7e2d758d8c396
Detect the kernel.task_delayacct sysctl value

If you have ever turned on the kernel.task_delayacct sysctl for the current
Linux boot, then the heuristic that iotop uses to find out if swapin/io are
available, gives a false negative, so the sysctl has to be checked too now.

Fixes: https://github.com/Tomas-M/iotop/issues/21
Reported-by: @ManuLinares
Forwarded-by: Boian Bonev <bbonev@ipacct.com>
iotop/data.py
iotop/ui.py