Improve system and process monitoring for tests in PTL
Links
- Link to discussion on Developer Forum: http://community.pbspro.org/t/improve-system-and-process-monitoring-for-tests-in-ptl/1594
- Link to pull request: https://github.com/PBSPro/pbspro/pull/1039
Overview
Present process monitoring of PTL tests only measures pid,rss,vsz,pcpu through ps command. We would like to measure more things when a Load/stress test is being run.
Synopsis:
- With PTL framework measuring pid,rss,vsz,pcpu through ps command i propose adding pmem,size,cputime to the existing ps -o command.
- In addition to process monitoring i would propose adding few system monitoring sensors to be monitored when proc monitor is called.
- Run sar command to measure rss,vsz,%memused,%system,%swpused,rtps,wtps.
- Measure os.getloadavg() to measure system load at that point of time.
- The data will be stored at test level in PTL JSON report.
Note:
Only Important sensors are stored out of the output from sar command. We should not fill the report with excess data.
%system - Percentage of CPU utilization that occurred while executing at the system level (kernel). Note that this field includes time spent servicing hardware and software interrupts
%memused - Percentage of used memory
rtps - Total number of read requests per second issued to physical devices
wtps - Total number of write requests per second issued to physical devices
%swpused - Percentage of used swap space
Project Documentation Main Page