Giter VIP home page Giter VIP logo

Comments (5)

luchsh avatar luchsh commented on May 22, 2024

Hi dhxsy1994, thanks for reporting!
Unfortunately, I cannot find a powerful machine like yours to reproduce this case.
the warning was produced by this code.
As I read from the code and Linux manual (man 3 CPU_SET), the maximum number of processors currently supported by CPU affinity is 1024 (CPU_SETSIZE). Are you suggesting that something is wrong with handling the 1024th core?

from dragonwell8.

hz0ne avatar hz0ne commented on May 22, 2024

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!

from dragonwell8.

luchsh avatar luchsh commented on May 22, 2024

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.
If it looks like incorrect behavior, maybe we should raise a bug to upstream OpenJDK.

from dragonwell8.

luchsh avatar luchsh commented on May 22, 2024

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.
Thanks

from dragonwell8.

ErichLoew avatar ErichLoew commented on May 22, 2024

The topic is back:
My CPU: Intel(R) Core(TM)2 Duo CPU E8400
Kernel: 6.1.1
OS: OpenSUSE Leap 15.2
java: java 19 2022-09-20
Java (TM) SE Runtime Environment (build 19+36-2238)
Java HotSpot(TM) 64-Bit Server VM (build 19+36-2238, mixed
mode, sharing)

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.

from dragonwell8.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.