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

[WIP]Added few sensors to monitor processes and system and stored result to json file #1039

Closed
wants to merge 2 commits into from

Conversation

visheshh
Copy link
Contributor

@visheshh visheshh commented Mar 15, 2019

Added few sensors to monitor processes and system and stored result to json file

Bug/feature Description

Monitor processes provided as input in procmon with ps command and sar command and store the results to JSON output file

Affected Platform(s)

Linux

Cause / Analysis / Design

More information needed of monitoring pbs process and system for load/stress tests

Solution Description

Added few more sensors to monitor for ps command added info from sar command and system load average.
The monitoring output is stored to ptl_test_results.json file.

Testing logs/output

PTL output
ptl_output.txt

JSON output file
ptl_test_results.txt

Checklist:

For further information please visit the Developer Guide Home.

@sakshamgarg
Copy link
Contributor

Also post the test/output logs.

@visheshh
Copy link
Contributor Author

@sakshamgarg I have attached the logs and added the comment . Please review

Copy link
Contributor

@sakshamgarg sakshamgarg left a comment

Choose a reason for hiding this comment

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

Thanks @visheshh . Changes looks good to me.

@visheshh
Copy link
Contributor Author

@PBSPro/pbspro-maintainers Please review

@prakashcv13
Copy link
Contributor

@visheshh - could you please let us know the motivation/use case behind this change. Also, is there a design document or a requirement specification?

@visheshh
Copy link
Contributor Author

visheshh commented Apr 26, 2019

@prakashcv13 Motivation is to record process monitoring and system monitoring values in json output file i.e, ptl_test_results.json . So that after running a load/stress test we can see how system and pbs behaved while the test was going on.
I havent added a design change as i had just added few values and interface was already present will add if it is required .

@prakashcv13
Copy link
Contributor

prakashcv13 commented Apr 26, 2019

@visheshh - thank you. I wanted to understand as to how did we arrive at using -rSub options for the sar command. Using -P ALL would also be useful. Using -s for start time will also be needed.

@visheshh
Copy link
Contributor Author

visheshh commented Apr 30, 2019

Hi @prakashcv13 , There is a seperate design discussion going on towards how to add monitoring scripts.
http://community.pbspro.org/t/test-framework-should-provide-an-option-to-run-monitoring-scripts-along-with-the-tests/1566

Do you feel it is good idea to do system monitoring as part of that. rather than making it default.
We can just have ps by default which is already there and just add few options to add it to JSON file.

If its okay to have system monitoring as default with this PR, I will post a new EDD to mention what all is being captured as part of this implementation.

@prakashcv13
Copy link
Contributor

prakashcv13 commented Apr 30, 2019

hey @visheshh - thank you for pointing me to the discussion on adding monitoring scripts.
As I see it, we will be providing separate monitoring scripts that the test runner can use. Even in that case, if we decide to provide system monitoring scripts, we may choose to use the "sar" or "sadc" command.
So, whether we choose to have system monitoring by default or only when the test runner chooses to monitor the system, we would need a design document. I would leave the decision about choosing to make system monitoring to be done by default or not up to the community.

@visheshh visheshh changed the title Added few sensors to monitor processes and system and stored result to json file [WIP]Added few sensors to monitor processes and system and stored result to json file Aug 7, 2019
@agrawalravi90
Copy link

@visheshh this PR has been idle for 3+ months now, I'm closing it, please reopen/create a new one with you are ready with your changes

bhroam pushed a commit to bhroam/openpbs that referenced this pull request Feb 23, 2022
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.

None yet

4 participants