Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delay accounting #19

Open
jbd opened this issue Dec 4, 2017 · 0 comments
Open

Add delay accounting #19

jbd opened this issue Dec 4, 2017 · 0 comments

Comments

@jbd
Copy link
Contributor

jbd commented Dec 4, 2017

Hello,

is there any plan to add delay accounting in atop ?

From https://github.com/torvalds/linux/blob/master/Documentation/accounting/delay-accounting.txt:

The per-task delay accounting functionality measures
the delays experienced by a task while

a) waiting for a CPU (while being runnable)
b) completion of synchronous block I/O initiated by the task
c) swapping in pages
d) memory reclaim

and makes these statistics available to userspace through
the taskstats interface.

Code example from the kernel: https://github.com/torvalds/linux/blob/master/tools/accounting/getdelays.c
(recent) Implementation in htop: hishamhm/htop#665

Nice blog post about the htop implementation: https://andrestc.com/post/linux-delay-accounting/

@jbd jbd changed the title Add delaystats Add delay accounting Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant