Activity log for bug #976179

Date Who What changed Old value New value Message
2012-04-07 20:13:31 Daniel Nichter bug added bug
2012-04-07 20:14:30 Daniel Nichter description pt-stalk runs "top -bn1" which means that a single instance of top is ran. The result is that top can't calculate a useful CPU usage because it needs a basis of comparison. From https://bugzilla.redhat.com/show_bug.cgi?id=174619 we read: The top command calculates %CPU by looking at the change in CPU time values between samples. When you first run it, it has no previous sample to compare to, so these initial values are the percentages since boot. It means you need at least two loops. Michael discovered this because he specifically wanted historical CPU usage, knowing that it was running high, but the collected top output from pt-stalk was only showing 6% CPU usage--way below reality. Perhaps we need to run "top -bn$OPT_RUN_TIME". pt-stalk runs "top -bn1" which means that a single iteration of top is ran. The result is that top can't calculate a useful CPU usage because it needs a basis of comparison. From https://bugzilla.redhat.com/show_bug.cgi?id=174619 we read: The top command calculates %CPU by looking at the change in CPU time values between samples. When you first run it, it has no previous sample to compare to, so these initial values are the percentages since boot. It means you need at least two loops. Michael discovered this because he specifically wanted historical CPU usage, knowing that it was running high, but the collected top output from pt-stalk was only showing 6% CPU usage--way below reality. Perhaps we need to run "top -bn$OPT_RUN_TIME".
2016-11-21 17:06:37 Carlos Salguero percona-toolkit: status Confirmed Triaged
2016-11-21 17:06:41 Carlos Salguero percona-toolkit: assignee Carlos Salguero (carlos-salguero)
2016-11-21 17:06:44 Carlos Salguero percona-toolkit: importance Undecided Medium
2016-11-21 17:06:46 Carlos Salguero percona-toolkit: milestone 2.2.21
2017-03-01 15:58:29 Carlos Salguero tags pt-stalk wrong-output pt-stalk pt89 wrong-output
2017-03-01 17:08:34 Carlos Salguero percona-toolkit: status Triaged Fix Committed