Log pidstat while running power_LoadTest to get more insight into C0 residency |
|
Issue descriptionCurrently if there is a increase in C0 residency while running PLT it is hard to find out what caused this increase. If we could log pidstat(debug log) every one sec, that would help us understand if there are unexpected processes that are running.
,
Feb 16 2017
Sure. I will log into a separate file into the results directory.
,
Feb 16 2017
May want to checkout psutil module in python if you haven't already instead of making calls to pidstat. In particular psutil.process_iter to loop across the pids.
,
Feb 18 2017
Here is the initial CL for the same. https://chromium-review.googlesource.com/#/c/444965/ Please let me know incase you have any suggestion. This seems to add around 0.7% of load on the cpu(watched manually). One suggestion that todd mentioned was to add the page loaded at that time.
,
Feb 22 2017
Discussed a bit w/ Ravi and was thinking initially we should put this feature behind an argument as to not impact existing control files and instead enable in a new control file. Thoughts? I'd think copying control.1hour -> control.1hour_pidstat and enabling there. Would be interesting to validate tsproxy's impact ( crbug.com/653519 ) as one effort to weed out potential test related cpu load during PLT. On that note, it would be useful to add a helper script or postprocessing method to aggregate the pidstat results into a hotlist ... especially for long running pids in a separate CL to that in #c4 |
|
►
Sign in to add a comment |
|
Comment 1 by derat@chromium.org
, Feb 16 2017Summary: Log pidstat while running power_LoadTest to get more insight into C0 residency (was: Log pidstat while running PLT to get more insight into C0 residency)