-
Notifications
You must be signed in to change notification settings - Fork 491
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
[Warning] of online processor count #37
Comments
Hi dhxsy1994, thanks for reporting! |
The range of cpu number is 0~1023, sched_getaffinity() may not work with the 1024th cpu, this processor is not online. Maybe this warning is not important, many versions have this warning with my test. Thanks! |
Indeed, Dragonwell does not ship any processors related patches in the GA release, it's behavior ought to exactly the same as the reference implementation. I was just trying to figure out whether sched_getaffinity() and JDK's behavior was correct about the 1024th (id=1024) cpu. |
I'm closing this issue, since it sounds like a problem upstream OpenJDK also has, please re-open if you feel that we should do something in Dragonwell. |
The topic is back: Since kernel 6.1.0 I see: Java HotSpot(TM) 64-Bit Server VM warning: sched_getaffinity failed (Invalid argument)- using online processor count (2) which may exceed available processors On kernel 6.0.12 and older: issue not observable I jumped directly from 6.0.12 to 6.1.0 and then to 6.1.1 My interpretation: something in recent kernel interfaces to USER world irritates JAVA. |
Description
The testing device is kunlun-9032 with 1024 processors, when I run java program it will report the warning:
OpenJDK 64-Bit Server VM warning: sched_getaffinity failed (Invalid argument)- using online processor count (1024) which may exceed available processors
Expected behavior
the warning may also can reproduce on other jdk versions, but it may not fixed on redhat version, it should be fixed.
seen: https://bugs.openjdk.java.net/browse/JDK-8157478
JDK version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (Alibaba Dragonwell 8.0.0-b48) (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell 8.0.0-b48) (build 25.212-b04, mixed mode)
Execution environment
The text was updated successfully, but these errors were encountered: