Skip to content

Conversation

@portante
Copy link
Member

No description provided.

@portante portante requested review from atheurer and ndokos May 25, 2018 20:02
@portante portante added this to the v0.51 milestone May 29, 2018
kill -s KILL $pid 2>/dev/null
return 2
pid_to_kill=$pid
# else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add an explanation of why there are other processess running?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we actually know, but we will emit a message on line 298 if we don't find a pid to kill.

Copy link
Member

@ndokos ndokos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@portante portante modified the milestones: v0.51, v0.52 Jul 16, 2018
return 2
fi

if [[ $len > 4 || ($len > 3 && $tool != "turbostat") ]] ;then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a comment here that explain why there is a special case for turbostat?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes there should be. Does anybody know the history of that check?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ndokos, it looks like the turbostat check landed in PR #199, back in v0.39 of the pbench-agent.

Do you remember why we need to check for turbostat?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry - I don't remember. I'll try to instrument safer_kill and see why turbostat seems to behave differently from everything else.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get 3 pids from pidof -x turbostat and also 3 pids from pidof -x iostat. The only difference is that there is a turbostat-datalog between the pbench-tool turbostat call and the "real" one, but pidof does not count the datalog process. So far, there does not seem to be a reason for treating turbostat differently.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, can we track this as a separate piece of work in issue #887, and not make further changes here, since this PR did not change that behavior?

Copy link
Member

@ndokos ndokos Aug 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I've already approved, I'll wait for an OK from either @k-rister or/and @atheurer and merge it.

Copy link
Member

@k-rister k-rister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@portante portante merged commit d73c044 into distributed-system-analysis:master Aug 20, 2018
@portante portante deleted the fix-tool-warnings branch February 24, 2019 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants