You are not logged in.

#1 2024-06-07 20:48:49

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

iotop CONFIG_TASK_DELAY_ACCT not enabled in kernel [solved]

According to iotop's page:

upstream wrote:

It requires Python ≥ 2.7 and a Linux kernel ≥ 2.6.20 with the TASK_DELAY_ACCT CONFIG_TASKSTATS, TASK_IO_ACCOUNTING and CONFIG_VM_EVENT_COUNTERS options on.

The current repo kernel (linux-6.9.3-1) as I write this) ships with these 4 enabled:

% for i in CONFIG_TASK_DELAY_ACCT CONFIG_TASKSTATS CONFIG_TASK_IO_ACCOUNTING CONFIG_VM_EVENT_COUNTERS; do ; zgrep $i /proc/config.gz ; done
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASKSTATS=y
CONFIG_TASK_IO_ACCOUNTING=y
CONFIG_VM_EVENT_COUNTERS=y

... yet I am still getting the following warn when running iotop:

CONFIG_TASK_DELAY_ACCT not enabled in kernel, cannot determine SWAPIN and IO %

What am I missing?

Last edited by graysky (2024-06-07 21:19:45)

Offline

#2 2024-06-07 21:08:19

loqs
Member
Registered: 2014-03-06
Posts: 18,875

Re: iotop CONFIG_TASK_DELAY_ACCT not enabled in kernel [solved]

Offline

#3 2024-06-07 21:18:46

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: iotop CONFIG_TASK_DELAY_ACCT not enabled in kernel [solved]

Thanks loqs - simply switching from iotop-0.6-11 to iotop-c-1.26-2 which includes the commit you linked fixes the issue.

Offline

Board footer

Powered by FluxBB