Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cachetop] fix stats computation per processes. #635

Merged
merged 1 commit into from
Jul 29, 2016

Conversation

chantra
Copy link
Contributor

@chantra chantra commented Jul 28, 2016

The current logic was only initializing page accesses, mark dirty.. at
the beginning of the method, preventing counters to be ever reset for
each PIDs.

Piggyback #615 (comment)

Tested by running both tools manually.

mpa = v.value
if mpa < 0:
mpa = 0
mpa = max(0, mpa)
Copy link
Member

Choose a reason for hiding this comment

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

should it be max(0, v.value) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

/facepalm. totally.... I only have 1 line right which was enough to visually look sane :s

The current logic was only initializing page accesses, mark dirty.. at
the beginning of the method, preventing counters to be ever reset for
each PIDs.

Piggyback iovisor#615 (comment)

Tested by running both tools manually.
@4ast 4ast merged commit a2d669c into iovisor:master Jul 29, 2016
palmtenor pushed a commit to palmtenor/bcc that referenced this pull request Jul 31, 2016
The current logic was only initializing page accesses, mark dirty.. at
the beginning of the method, preventing counters to be ever reset for
each PIDs.

Piggyback iovisor#615 (comment)

Tested by running both tools manually.
chantra added a commit to chantra/bcc that referenced this pull request Sep 16, 2016
The current logic was only initializing page accesses, mark dirty.. at
the beginning of the method, preventing counters to be ever reset for
each PIDs.

Piggyback iovisor#615 (comment)

Tested by running both tools manually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants