Giter Site home page Giter Site logo

Comments (3)

klauspost avatar klauspost commented on July 22, 2024

I am a bit unsure about how to do this. I looked at representing the Intel CPU topology, but it is very complex.

Ultimately I think the only way to really do it is through the runtime, since right now you can be rescheduled to any CPU at any time, and any information I could provide is temporary at best. I remember Dmitry Vyukov looked at a NUMA-aware scheduler for Go, but I haven't heard about it for a while.

from cpuid.

splace avatar splace commented on July 22, 2024

bit late but...

how could a CPU know if its in a multi-cpu motherboard anyway?

so doesn't that mean that checking the OS is required (maybe bios), which means parsing the output of /proc/cpuinfo is probably the way to go.

i suppose that could be done in this package? maybe with multiple OS support.

from cpuid.

mpictor avatar mpictor commented on July 22, 2024

since a goroutine can jump from one core to another, I'm also concerned that the information could be garbled in the (unlikely) event that you have two or more different processor models installed...

from cpuid.

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.