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

arcstat.py better print 1 header per screen #2183

Closed
wants to merge 1 commit into from
Closed

arcstat.py better print 1 header per screen #2183

wants to merge 1 commit into from

Conversation

thegreatgazoo
Copy link

Now arcstat.py prints one header every hdr_intr
(20 by default) lines. It'd be nice if hdr_intr
is set according to terminal window size, i.e.
one header per screenful of outputs.

Signed-off-by: Isaac Huang he.huang@intel.com
Issue #2181

Now arcstat.py prints one header every hdr_intr
(20 by default) lines. It'd be nice if hdr_intr
is set according to terminal window size, i.e.
one header per screenful of outputs.

Signed-off-by: Isaac Huang <he.huang@intel.com>
Issue #2181
@prakashsurya
Copy link
Member

Looks good to me.

Although I'm not sure I like the new "one header per screen" behavior. I actually prefer having a header line shown more frequently than once per screen.

Would you be opposed to keeping the default behavior the same, but adding an option to use this behavior? Or maybe have this be the default, but add an option to specify the header interval explicitly?

@behlendorf
Copy link
Contributor

Personally, I prefer only getting one header per screen, it's more consistent with the vmstat behavior under Linux. And along those lines a --one-header option similar to vmstat's would be nice.

That said, we can certainly leave controlling the frequency of the header to a follow up patch. I'm going to merge this.

@thegreatgazoo thegreatgazoo deleted the 2181 branch March 13, 2014 06:45
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

Successfully merging this pull request may close these issues.

4 participants