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

sar: add page #1532

Merged
merged 5 commits into from
Oct 11, 2017
Merged

sar: add page #1532

merged 5 commits into from
Oct 11, 2017

Conversation

mfrw
Copy link
Member

@mfrw mfrw commented Oct 7, 2017

Fixes #1529.

  • The page (if new), does not already exist in the repo.

  • The page (if new), has been added to the correct platform folder:
    common/ if it's common to all platforms, linux/ if it's Linux-specific, and so on.

  • The page has 8 or fewer examples.

  • The PR is appropriately titled:
    <command name>: add page for new pages, or <command name>: <description of changes> for pages being edited

  • The page follows the contributing guidelines

@mfrw mfrw changed the title sar: add page (#1529) sar: add page Oct 7, 2017
Copy link
Member

@sbrl sbrl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the page! I've left a few comments 😺


> Monitor performance of various Linux subsystems.

- Report I/O and Transfer rate every 1 second:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think Transfer needs to have a capital letter at the beginning.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, acutally the manpage had I/O and Transfer in upper-case, so i did the same.
anyways changed


- Report I/O and Transfer rate every 1 second:

`sar -b 1`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There aren't any long forms of the options?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately not :(


`sar -u ALL 2`

- Report 20 memory utilization statistics every 1 second:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a bit awkward. Perhaps we could reword this to something like ...statistics, one per second?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be "once per second" ? I think that sounds better and more natural.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On further thought, I think it should be changed to "once every second". Because the other examples are of the form "every 2 seconds", "every 5 seconds" and then you have "one per second", "one per 2 seconds".

Either we use "per second" everywhere or "every second" everywhere. But mixing the 2 does not sound right to me.


`sar -q 1 1`

- Report paging statistics every 1 second:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we could change this example to every 5 seconds to change things up? 😺

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@agnivade agnivade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please wrap all of your variables in tokens. See the CONTRIBUTING page for how to do it.

Also, when you mention "Report n some statistics", what does it mean ? Does it mean it will print the statistics n times, every x seconds ?


> Monitor performance of various Linux subsystems.

- Report I/O and Transfer rate every 1 second:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What transfer rate are we talking about ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

physical devices, added to the description


- Report I/O and Transfer rate every 1 second:

`sar -b 1`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please wrap 1 in tokens.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for missing it ...
fixed


`sar -n DEV {{2}} {{10}}`

- Report CPU utilization every 2 seconds (press CTRL+C to quit):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to mention 'press ctrl-c to quit' after the first time. It's obvious.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure


`sar -u ALL {{2}}`

- Report a total of 20 memory utilization statistics, one per second:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double space between "," and "one"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad :(


- Report the run queue length and load averages:

`sar -q {{1}} {{1}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the first 1 mean its once per second, should we mention that if that is the case ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost every command has the same structure, the first arg is the refresh granularity, and the second (if any) is the total number of stats to print.
If the second arg is not provided, it assumes infinity.

So, I think this is obvious, and we should not write it explicitly to confuse people

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got a bit confused because you mention 2 things - queue length and load average, and then there are 2 params. Its not very obvious whether the two "1"s are for granularity and no. of stats, or the granularity for queue length and load svg.

That's why I wanted to be extra clear in case there's any confusion. What do you think ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think lets just skip the second param, if anyone wants, it is present in the man page.
This would make it less confusing.

@agnivade
Copy link
Member

Hey @mfrw - left a couple of comments.

Sorry for the back and forth. Our review process might feel a bit tedious. Thank you for the patience !

@mfrw
Copy link
Member Author

mfrw commented Oct 11, 2017

@agnivade your review process is amazing. I am getting to learn a lot of things. I am new to open-source.
Thanks for your patience :)

@sbrl sbrl merged commit 1f76947 into tldr-pages:master Oct 11, 2017
@sbrl
Copy link
Member

sbrl commented Oct 11, 2017

Thanks for the hard work, @mfrw! 😺

@mfrw mfrw deleted the sar branch September 6, 2018 14:54
@sbrl sbrl mentioned this pull request Sep 6, 2018
@tansiret tansiret added the new command Issues requesting creation of a new page. label Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new command Issues requesting creation of a new page.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

page request: sar
4 participants