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

fix: RAPL sensor now properly use CPU share instead of full measure #13

Merged
merged 9 commits into from
Nov 6, 2023

Conversation

metacosm
Copy link
Owner

@metacosm metacosm commented Nov 2, 2023

No description provided.

@metacosm metacosm self-assigned this Nov 2, 2023
throw new RuntimeException(e);
private static ByteBuffer mapRaplFile(Path file) throws IOException {
try (var channel = FileChannel.open(file, StandardOpenOption.READ)) {
ByteBuffer buffer = ByteBuffer.allocate((int) channel.size());

Choose a reason for hiding this comment

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

The ByteBuffer here should be better pooled somewhere

Copy link
Owner Author

Choose a reason for hiding this comment

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

My brain is fried, I guess, can't get it to work now, will get back to it on Monday.

@metacosm metacosm merged commit bba6ca2 into main Nov 6, 2023
@metacosm metacosm deleted the fix-linux branch November 6, 2023 21:45
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