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

[sonic-bootchart] add document on integrating systemd-bootchart #1001

Merged
merged 4 commits into from
Jun 19, 2022

Conversation

stepanblyschak
Copy link
Contributor

@stepanblyschak stepanblyschak commented May 16, 2022

stepanblyschak and others added 3 commits May 4, 2022 17:48
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Update configuration example:

```
admin@sonic:~$ sudo sonic-bootchart config --samples 500 --frequency 10
Copy link
Contributor

Choose a reason for hiding this comment

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

Understand bootchart's parameters are sample and frequency, as cli wrapper, I suggest:

  1. Instead of sample counts, use time span as parameter, wrapper calculate the sample count = time span x frequency
  2. having meaningful default value for time span and frequency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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


N/A

### Open/Action items
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest adding code at initramfs stage to generate bootchart configuration file according to kernel parameters. So that we could have bootchart configured for upcoming boot generated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Instead of initramfs we may add this to sonic-installer (where we usually perform config/packages migration tasks).
Added an open action.

@paulmenzel
Copy link

Did you evaluate the script bootgraph.py from the project pm-graph, which gets also imported into the Linux kernel source tree tools/power/pm-graph/bootgraph.py? It has much more features, and is actively developed.

Also, please wrap lines after 80(?) characters in the Markdown documents, so it’s easier to comment on specific parts of a paragraph in GitHub.

@stepanblyschak
Copy link
Contributor Author

@paulmenzel No, this tool wasn't considered. If needed, one may change the tool used while still have the same SONiC CLI command.
Also, I wrapped lines after 80 chars as you requested.

@liat-grozovik
Copy link
Collaborator

@stepanblyschak please update the PR description with the list of PRs to get into as part of the feature.
@yxieca could you please help to review the code PRs or suggest someone to do so?

@stepanblyschak
Copy link
Contributor Author

stepanblyschak commented Jun 17, 2022

@liat-grozovik Updated description with PR list

@liat-grozovik liat-grozovik merged commit 920666e into sonic-net:master Jun 19, 2022
liat-grozovik pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Jul 6, 2022
- Why I did it
Implemented sonic-net/SONiC#1001

- How I did it
Install systemd-bootchart tool and provide default config for it.

- How to verify it
Run build and verify systemd-bootchart is installed.

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
liat-grozovik pushed a commit to sonic-net/sonic-utilities that referenced this pull request Jul 18, 2022
- What I did
Implemented sonic-net/SONiC#1001

- How I did it
Added a new sonic-bootchart script and added UT for it

- How to verify it
Run on the switch. Depends on sonic-net/sonic-buildimage#11047

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
malletvapid23 added a commit to malletvapid23/Sonic-Utility that referenced this pull request Aug 3, 2023
- What I did
Implemented sonic-net/SONiC#1001

- How I did it
Added a new sonic-bootchart script and added UT for it

- How to verify it
Run on the switch. Depends on sonic-net/sonic-buildimage#11047

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
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