openwrt / openwrt/packages

htop is missing kernel options for I/O and it shows no perm

Open
#12,418 6 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

release/19.07 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: @champtar
Environment: all, OpenWrt 19.07 and OpenWrt master

Description:

If you would like to know I/O rate of read/write for processes which helps you to know which processes are writing it to flash memory, it is necessary to enable these kernel configs:

Both kernel options are not set.
https://github.com/openwrt/openwrt/blob/openwrt-19.07/target/linux/generic/config-4.14#L4875
https://github.com/openwrt/openwrt/blob/openwrt-19.07/target/linux/generic/config-4.14#L4873

And this is same for OpenWrt master:
https://github.com/openwrt/openwrt/blob/master/target/linux/generic/config-5.4#L5474
https://github.com/openwrt/openwrt/blob/master/target/linux/generic/config-5.4#L5472

Otherwise, htop shows you no perm.
Related discussion: http://forum.tinycorelinux.net/index.php?topic=23161.0

obrazek

This prevents to fully use htop. Can you please enable it in OpenWrt main repository?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking the referenced kernel configuration files, target/linux/generic/config-4.14 and config-5.4, in the relevant OpenWrt branches. Verify whether IO_ACCOUNTING and TASK_DELAY_ACCT are unset, then check the resulting htop behavior. Done means the required options are enabled for the supported configurations and htop no longer reports no perm.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.