ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.8k stars 1.87k forks source link

使用iotop报错 #427

Closed Frank1003 closed 2 years ago

Frank1003 commented 2 years ago

Before You Open ISSUE, Make Sure You have Read Armbian Firmware Instructions and Documentation

Describe the bug 运行iotop时会报错

armbian:images:# iotop Could not run iotop as some of the requirements are not met:

To Reproduce 直接运行iotop

Expected behavior 运行正常

Screenshots 1658392290108

Armbian Version

Device (please complete the following information):

Additional context 老哥我觉得你的项目很好,也很感激你的无私奉献。 我有个小想法,虽然gitee可能有很多的问题,但是我想问一下你能不能把你的这个项目也发布到giteee上并申请公开,国内在github上下载的速度太慢了。

ophub commented 2 years ago

不发布了。

ophub commented 2 years ago

这个错误就是他的错误提示的内容,内核编译的时候.config要选择这三个选项,其中至少一项没启用导致的。

CONFIG_TASKSTATSCONFIG_TASK_DELAY_ACCTCONFIG_TASK_IO_ACCOUNTING 未找到

ophub commented 2 years ago
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y

https://bbs.archlinux.org/viewtopic.php?id=38646

https://github.com/ophub/amlogic-s9xxx-armbian/blob/ebc675ccfeb2f2b4e550c4657a0c8329857988e7/compile-kernel/tools/config/config-5.15.55#L119

ophub commented 2 years ago

make menuconfig

Snip20220721_15 Snip20220721_16 Snip20220721_17

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
# CONFIG_IRQ_TIME_ACCOUNTING is not set
CONFIG_SCHED_THERMAL_PRESSURE=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y
# CONFIG_PSI is not set
# end of CPU/Task time and stats accounting

https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/compile-kernel

Frank1003 commented 2 years ago

好的,谢谢指点

ophub commented 2 years ago

Snip20220722_1

我测试了可以使用,你测试下更新stable最新的内核:5.10.132、5.4.207

https://github.com/ophub/kernel/tree/main/pub/stable

5.15.56和5.18.12的在dev目录下的添加了支持,stable继续更新flippy分享的内核