linux/tools/power/x86
Yazen Ghannam d4794f25f1 tools/power turbostat: Make interval calculation per thread to reduce jitter
Turbostat currently normalizes TSC and other values by dividing by an
interval. This interval is the delta between the start of one global
(all counters on all CPUs) sampling and the start of another. However,
this introduces a lot of jitter into the data.

In order to reduce jitter, the interval calculation should be based on
timestamps taken per thread and close to the start of the thread's
sampling.

Define a per thread time value to hold the delta between samples taken
on the thread.

Use the timestamp taken at the beginning of sampling to calculate the
delta.

Move the thread's beginning timestamp to after the CPU migration to
avoid jitter due to the migration.

Use the global time delta for the average time delta.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2019-08-31 14:48:34 -04:00
..
intel_pstate_tracer treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 466 2019-06-19 17:09:10 +02:00
intel-speed-select tools/power/x86/intel-speed-select: Add .gitignore file 2019-07-12 16:00:38 +03:00
turbostat tools/power turbostat: Make interval calculation per thread to reduce jitter 2019-08-31 14:48:34 -04:00
x86_energy_perf_policy tools/power x86_energy_perf_policy: Fix argument parsing 2019-08-31 14:48:34 -04:00