Issue with Profiling Workloads in HammerDB Using xtprof Module #731
-
Hi HammerDB Team,
The issue I'm facing is that only the VUs assigned to the last code block (workload2) are reporting back to the monitor thread or are being profiled. VUs in the workload1 block do not seem to be getting profiled.
Only the VUs that fall into the last block (i.e., workload2) are getting profiled, but not functions related to workload1. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Firstly note that there is another time profiler package called etprof that is a bit more generic. xtprof is specifically for the TPROC-C workload and captures timings for the 5 workload transactions. (etprof records everything in a proc). Loading the xtprof package initialises the timing for all virtual users. However VU1 the monitor virtual user does the timing so is excluded. Instead VU1 gathers and calculates the timings from all virtual users when the workload has finished with the xttimeproflog command. The virtual users report their own timings with xtreport that are gathered by VU1. (To be clear VU1 does not do any timing as it does not run the workload).
So when we run the workload with timing available, you can see the additional timing steps in the output.
in the CLI you can drill down into the timings
The web service will graph the timings. |
Beta Was this translation helpful? Give feedback.
Firstly note that there is another time profiler package called etprof that is a bit more generic. xtprof is specifically for the TPROC-C workload and captures timings for the 5 workload transactions. (etprof records everything in a proc).
Loading the xtprof package initialises the timing for all virtual users. However VU1 the monitor virtual user does the timing so is excluded. Instead VU1 gathers and calculates the timings from all virtual users when the workload has finished with the xttimeproflog command. The virtual users report their own timings with xtreport that are gathered by VU1. (To be clear VU1 does not do any timing as it does not run the workload).
so when you load time pro…