Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
@ 2021-12-22 11:42 Mek101
  2021-12-23  4:23 ` ericonr
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Mek101 @ 2021-12-22 11:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 634 bytes --]

New issue by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/34663

Description:
### System
* xuname: Void 5.15.9_1 x86_64 AuthenticAMD uptodate rFF
* package: iotop-0.6_9

### Expected behavior
`iotop` should report the IO percentage

### Actual behavior
`iotop` complains `CONFIG_TASK_DELAY_ACCT not enabled in kernel, cannot determine SWAPIN and IO %`, but according to the kernel config, it enabled
```
$ zgrep CONFIG_TASK_DELAY_ACCT /proc/config.gz
CONFIG_TASK_DELAY_ACCT=y
```

### Steps to reproduce the behavior
Install the `iotop` package and run it with root privileges

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
  2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
@ 2021-12-23  4:23 ` ericonr
  2021-12-23  9:31 ` Mek101
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ericonr @ 2021-12-23  4:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/34663#issuecomment-1000033467

Comment:
```
class Stats(DumpableObject):
    members_offsets = [
        ('blkio_delay_total', 40),
        ('swapin_delay_total', 56),
        ('read_bytes', 248),
        ('write_bytes', 256),
        ('cancelled_write_bytes', 264)
    ]

    has_blkio_delay_total = False

    def __init__(self, task_stats_buffer):
        sd = self.__dict__
        for name, offset in Stats.members_offsets:
            data = task_stats_buffer[offset:offset + 8]
            sd[name] = struct.unpack('Q', data)[0]

        # This is a heuristic to detect if CONFIG_TASK_DELAY_ACCT is enabled in
        # the kernel.
        if not Stats.has_blkio_delay_total:
            Stats.has_blkio_delay_total = self.blkio_delay_total != 0
```

It's poking at a lot of things, it's not surprising that the heuristic broke.

https://repo.or.cz/w/iotop.git has some more commits, do you think you could test if the more recent version works fine?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
  2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
  2021-12-23  4:23 ` ericonr
@ 2021-12-23  9:31 ` Mek101
  2021-12-23 14:17 ` ericonr
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Mek101 @ 2021-12-23  9:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

New comment by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/34663#issuecomment-1000165995

Comment:
It's worse: `CONFIG_TASK_DELAY_ACCT and kernel.task_delayacct sysctl not enabled in kernel, cannot determine SWAPIN and IO %`

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
  2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
  2021-12-23  4:23 ` ericonr
  2021-12-23  9:31 ` Mek101
@ 2021-12-23 14:17 ` ericonr
  2021-12-23 21:27 ` Mek101
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ericonr @ 2021-12-23 14:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/34663#issuecomment-1000334699

Comment:
Not sure how to go about fixing this :/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
  2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
                   ` (2 preceding siblings ...)
  2021-12-23 14:17 ` ericonr
@ 2021-12-23 21:27 ` Mek101
  2021-12-23 21:28 ` Mek101
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Mek101 @ 2021-12-23 21:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

New comment by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/34663#issuecomment-1000530743

Comment:
They had the issue and solved it: https://github.com/Tomas-M/iotop/issues/21

Apparently `iotop` needs `kernel.task_delayacct` to be enabled, however since kernel 5.15 it seems to be disabled by default

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
  2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
                   ` (3 preceding siblings ...)
  2021-12-23 21:27 ` Mek101
@ 2021-12-23 21:28 ` Mek101
  2021-12-23 21:33 ` Mek101
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Mek101 @ 2021-12-23 21:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

New comment by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/34663#issuecomment-1000530743

Comment:
They had the issue and solved it: https://github.com/Tomas-M/iotop/issues/21

Apparently `iotop` needs `kernel.task_delayacct` to be enabled, however since kernel 5.15 it seems to be disabled by default https://www.kernel.org/doc/html/latest/accounting/delay-accounting.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
  2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
                   ` (4 preceding siblings ...)
  2021-12-23 21:28 ` Mek101
@ 2021-12-23 21:33 ` Mek101
  2021-12-23 21:35 ` Mek101
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Mek101 @ 2021-12-23 21:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

New comment by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/34663#issuecomment-1000532634

Comment:
Add `delayacct` to the kernel command line as a workaround

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
  2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
                   ` (5 preceding siblings ...)
  2021-12-23 21:33 ` Mek101
@ 2021-12-23 21:35 ` Mek101
  2021-12-29 18:07 ` Mek101
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Mek101 @ 2021-12-23 21:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

New comment by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/34663#issuecomment-1000530743

Comment:
They had the issue and solved it: https://github.com/Tomas-M/iotop/issues/21

Apparently `iotop` needs `kernel.task_delayacct` to be enabled, however since kernel 5.15 it seems to be disabled https://www.kernel.org/doc/html/latest/accounting/delay-accounting.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
  2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
                   ` (6 preceding siblings ...)
  2021-12-23 21:35 ` Mek101
@ 2021-12-29 18:07 ` Mek101
  2022-01-09 21:36 ` bbonev
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Mek101 @ 2021-12-29 18:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 407 bytes --]

New comment by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/34663#issuecomment-1000530743

Comment:
They had the issue and solved it: https://github.com/Tomas-M/iotop/issues/21

Apparently `iotop` needs `kernel.task_delayacct` to be enabled, however since kernel 5.15 it seems to be disabled https://www.kernel.org/doc/html/v5.15/accounting/delay-accounting.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
  2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
                   ` (7 preceding siblings ...)
  2021-12-29 18:07 ` Mek101
@ 2022-01-09 21:36 ` bbonev
  2022-06-20  2:13 ` github-actions
  2022-07-04  2:15 ` [ISSUE] [CLOSED] " github-actions
  10 siblings, 0 replies; 12+ messages in thread
From: bbonev @ 2022-01-09 21:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]

New comment by bbonev on void-packages repository

https://github.com/void-linux/void-packages/issues/34663#issuecomment-1008428531

Comment:
> They had the issue and solved it: [Tomas-M/iotop#21](https://github.com/Tomas-M/iotop/issues/21)
> 
> Apparently `iotop` needs `kernel.task_delayacct` to be enabled, however since kernel 5.15 it seems to be disabled https://www.kernel.org/doc/html/v5.15/accounting/delay-accounting.html

The above link points to the C rewrite of `iotop` (packaged as `iotop-c` in many Linux distributions but not in Void Linux) while the python one is located at https://repo.or.cz/iotop.git; the OP obviously talks about the python version of `iotop`.
The fix mentioned above is for the C version where the user can toggle the `task_delayacct` sysctl with a shortcut. The python version only gives a warning in case the sysctl is off and SWAPIN/IO do not work (the fix is not in a released version yet, one option is to package the HEAD of the python iotop's repo).

Hope I could reduce the confusion...



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
  2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
                   ` (8 preceding siblings ...)
  2022-01-09 21:36 ` bbonev
@ 2022-06-20  2:13 ` github-actions
  2022-07-04  2:15 ` [ISSUE] [CLOSED] " github-actions
  10 siblings, 0 replies; 12+ messages in thread
From: github-actions @ 2022-06-20  2:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/34663#issuecomment-1159891916

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [ISSUE] [CLOSED] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is
  2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
                   ` (9 preceding siblings ...)
  2022-06-20  2:13 ` github-actions
@ 2022-07-04  2:15 ` github-actions
  10 siblings, 0 replies; 12+ messages in thread
From: github-actions @ 2022-07-04  2:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 637 bytes --]

Closed issue by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/34663

Description:
### System
* xuname: Void 5.15.9_1 x86_64 AuthenticAMD uptodate rFF
* package: iotop-0.6_9

### Expected behavior
`iotop` should report the IO percentage

### Actual behavior
`iotop` complains `CONFIG_TASK_DELAY_ACCT not enabled in kernel, cannot determine SWAPIN and IO %`, but according to the kernel config, it enabled
```
$ zgrep CONFIG_TASK_DELAY_ACCT /proc/config.gz
CONFIG_TASK_DELAY_ACCT=y
```

### Steps to reproduce the behavior
Install the `iotop` package and run it with root privileges

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-07-04  2:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-22 11:42 [ISSUE] iotop complains "CONFIG_TASK_DELAY_ACCT not enabled in kernel", but it is Mek101
2021-12-23  4:23 ` ericonr
2021-12-23  9:31 ` Mek101
2021-12-23 14:17 ` ericonr
2021-12-23 21:27 ` Mek101
2021-12-23 21:28 ` Mek101
2021-12-23 21:33 ` Mek101
2021-12-23 21:35 ` Mek101
2021-12-29 18:07 ` Mek101
2022-01-09 21:36 ` bbonev
2022-06-20  2:13 ` github-actions
2022-07-04  2:15 ` [ISSUE] [CLOSED] " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).