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

PUBDEV-8425: Add option to mimic "ActiveProcessorCount" for older JVMs #5898

Merged
merged 3 commits into from
Nov 19, 2021

Conversation

michalkurka
Copy link
Contributor

No description provided.

Copy link
Collaborator

@mn-mikke mn-mikke left a comment

Choose a reason for hiding this comment

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

What about LinuxProcFileReader.getProcessCpusAllowed()? Shouldn't it be also modified?

h2o-core/testMultiNode.sh Show resolved Hide resolved
@michalkurka
Copy link
Contributor Author

What about LinuxProcFileReader.getProcessCpusAllowed()? Shouldn't it be also modified?

This is on purpose, this method reads the information directly from the OS and bypasses java on Linux. This also means that specifying JVM option -XX:ActiveProcessorCount won't affect it (on Linux). It is used only for diagnostic purposes and doesn't affect parallelism in H2O as such.

It should be kept as-is but maybe I need to add a comment explaining why it is done this way.

Copy link
Collaborator

@mn-mikke mn-mikke left a comment

Choose a reason for hiding this comment

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

Thanks for answering my questions! LGTM

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