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

Add option to mimic "ActiveProcessorCount" for older JVMs #7235

Closed
exalate-issue-sync bot opened this issue May 11, 2023 · 3 comments
Closed

Add option to mimic "ActiveProcessorCount" for older JVMs #7235

exalate-issue-sync bot opened this issue May 11, 2023 · 3 comments

Comments

@exalate-issue-sync
Copy link

Java 8u191 and later support JVM option ActiveProcessorCount, like this:

-XX:ActiveProcessorCount=2

#cpu cores affect built-in java thread pools and H2O uses it to determine parallelism of certain operations.

Because we do not have this option available in all Java versions, we want to be able mimic the behavior in h2o userspace code.

This will be for now independent of the {{nthreads}} argument option (we don’t want these 2 to clash).

@exalate-issue-sync
Copy link
Author

Michal Kurka commented: Users will be able to use the system property {{-Dsys.ai.h2o.activeProcessorCount=x}}

and accomplish similar effect as -XX:ActiveProcessorCount=2.

@h2o-ops-ro
Copy link
Collaborator

JIRA Issue Details

Jira Issue: PUBDEV-8425
Assignee: Michal Kurka
Reporter: Michal Kurka
State: Resolved
Fix Version: 3.34.0.5
Attachments: N/A
Development PRs: Available

@h2o-ops-ro
Copy link
Collaborator

Linked PRs from JIRA

#5898

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant