IOTOP can not work due to "CONFIG_TASK_DELAY_ACCT not enabled in kernel, cannot determine SWAPIN and IO %"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iotop (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Focal |
Won't Fix
|
Low
|
Unassigned | ||
Jammy |
Won't Fix
|
Low
|
Unassigned | ||
Kinetic |
Fix Released
|
Low
|
Unassigned |
Bug Description
[Impact]
* Users of iotop reported a crash on Jammy.
* This crash is caused by the task_delayacct value, which was not checked previously. The fix is to add a function with a try-catch block to the data.py file and moreover to alter some code in ui.py to detect the output of the try-catch block.
[Test Plan]
Make a container for testing:
$ lxc launch ubuntu-daily:jammy jammy-test
$ lxc shell jammy-test
Type in:
# apt install iotop
# iotop
Example of failed output:
The data under SWAPIN IO> column is:
?unavailable?
Moreover at the bottom of the screen there is a message:
CONFIG_
Example of successful output:
There is a SWAPIN and IO % data that is readable.
[Where problems could occur]
* The patch itself modifies the format and refresh_display functions of the ui.py code, so the regressions should be limited to the behavior of data handling and display.
* Since the code changes affect task_delayacct, therefore potential regressions would most likely be related to other functionalities that make use of task_delayacct.
-------
iotop is not show disk usage due to error:
CONFIG_
Kernel params:
vodka@vodka-PC:~$ cat /boot/config-`uname -r` | grep CONFIG_
CONFIG_
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: iotop 0.6-24-
ProcVersionSign
Uname: Linux 5.15.0-41-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
Date: Mon Jul 25 09:36:16 2022
Dependencies:
InstallationDate: Installed on 2018-05-02 (1544 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: iotop
UpgradeStatus: Upgraded to jammy on 2022-04-27 (88 days ago)
Related branches
- git-ubuntu import: Pending requested
-
Diff: 104 lines (+84/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/lp1982727-config_task_delay_acct.patch (+75/-0)
debian/patches/series (+1/-0)
tags: | added: patch |
Changed in iotop (Ubuntu Jammy): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
Changed in iotop (Ubuntu Jammy): | |
assignee: | Michał Małoszewski (michal-maloszewski99) → nobody |
tags: | removed: server-todo |
tags: | removed: bitesize |
description: | updated |
description: | updated |
Changed in iotop (Ubuntu Jammy): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
status: | Confirmed → In Progress |
description: | updated |
description: | updated |
Hi, can confirm the same on Ubuntu 20.04 (kernel 5.15, HWE) - looks like the latest kernel has been built with this patch https:/ /git.kernel. org/pub/ scm/linux/ kernel/ git/torvalds/ linux.git/ commit/ ?id=e4042ad4923 57fa99592137646 2b04a025dd53b6 (and perhaps in the past this was not the case?).
Hence by default one should add to grub the kernel option "delayacct" (as mentioned here: https:/ /superuser. com/a/792913) as a workaround.