Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Two or one column per cpu stat #53

Closed
do11 opened this issue Aug 6, 2013 · 4 comments
Closed

Two or one column per cpu stat #53

do11 opened this issue Aug 6, 2013 · 4 comments

Comments

@do11
Copy link

do11 commented Aug 6, 2013

Modern server frequently have many CPUs so detailed output of dstat for cpu become very long and don't fit into the screen, being that it gets "trimmed" i.e. deleted.

I request feature to make shorter all-cpu output, which should show only cpu load per cpu. So instead of 7 columns per cpu 'usr sys idl wai hiq siq stl' it will be just one, which should be sum of (usr sys wai hiq siq stl) or just (100 - idle). Such way it will be possible to see 7 times more cpus than now.

Additional useful improvement to that would be to show two column per cpu: load and iowait time. Load should be sum of (usr sys hiq siq stl) and iowait is wai (as I understand). That would be useful to see if cpu is actually crunching.

@dagwieers
Copy link
Collaborator

The default in the master branch is -C total since some time.

@do11
Copy link
Author

do11 commented Sep 14, 2013

WIth `total' it's impossible to see which processor is loaded or idle.

@dagwieers dagwieers reopened this Nov 27, 2013
@dagwieers
Copy link
Collaborator

Then write a small plugin that does what you need, and if you contribute it I'll include it.

Writing a plugin is very easy and based on the existing plugin should only take you 30 minutes at most.

@dagwieers
Copy link
Collaborator

I am closing this issue as Dstat v0.7.3 includes the --cpu-use option to do just this.
Thanks for the feedback !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants