XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Determine if an Host has Hypertreading enabled

    Scheduled Pinned Locked Moved REST API
    18 Posts 3 Posters 987 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      rtjdamen @julien-f
      last edited by

      @julien-f i have discussed with our developer and i would like to ask you the following

      As per their feedback, the XCP-NG API itself gives the double amount of cores per CPU in its output.

      For a 2 CPU x 16 core configuration, the system gives 32 cores per CPU, instead of 16.

      Please consult with Vates, if they can modify the current API/CPU core count enumeration, to show the actual physical CPU core counts, instead of logical ones in the API output.

      julien-fJ 2 Replies Last reply Reply Quote 0
      • julien-fJ Offline
        julien-f Vates 🪐 Co-Founder XO Team @rtjdamen
        last edited by

        @rtjdamen Please give me the name of the class field and its value in the XAPI and the same in XO REST API so we can compare.

        1 Reply Last reply Reply Quote 0
        • julien-fJ Offline
          julien-f Vates 🪐 Co-Founder XO Team @rtjdamen
          last edited by

          @rtjdamen You'll likely just need to take a look at cpus field and multiply cores and sockets.

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            rtjdamen @julien-f
            last edited by

            @julien-f Hi julien, the cpu field gives a incorrect view of the real world. because of the hypertreading enabled it gives you double the number of cpu cores there actually is. We are looking for a good way to determine REAL PHYSICAL cores. Reason for that is Microsoft is licensing datacenter licenses on a physical core basis. can u help us with the correct way to find this out?
            in Xoa there is a field shown for hypertreading enabled. if that value is shown into the rest api we are there, but if it is not we need a different way to find out if this is enabled or not.

            julien-fJ 1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              @julien-f the HT detection we created (via a plugin) is already detecting "threads_per_core" or something like that. IIRC, in XO, if it's >1, we can tell hyperthreading is enabled. So we might need to expose thread per core or something equivalent we did in XO directly in the REST API

              1 Reply Last reply Reply Quote 0
              • julien-fJ Offline
                julien-f Vates 🪐 Co-Founder XO Team @rtjdamen
                last edited by

                @rtjdamen REST API now expose the SMT status: https://github.com/vatesfr/xen-orchestra/commit/7fc5d62ca95ba91666f5d5a2268a7871c484ac6a

                0 julien-f committed to vatesfr/xen-orchestra
                feat(xo-server/rest-api): export hosts' SMT status
                
                Fixes https://xcp-ng.org/forum/post/71374
                R 1 Reply Last reply Reply Quote 0
                • olivierlambertO Offline
                  olivierlambert Vates 🪐 Co-Founder CEO
                  last edited by

                  Also, we are working to get the info directly in XAPI: https://github.com/xapi-project/xen-api/issues/5462

                  olivierlambert created this issue in xapi-project/xen-api

                  closed SMT discoverability: add thread_per_core info in host.cpu_info #5462

                  1 Reply Last reply Reply Quote 1
                  • R Offline
                    rtjdamen @julien-f
                    last edited by

                    @julien-f do i need to update anything on my end to get this visible? or is this centrally managed?

                    julien-fJ 1 Reply Last reply Reply Quote 0
                    • julien-fJ Offline
                      julien-f Vates 🪐 Co-Founder XO Team @rtjdamen
                      last edited by

                      @rtjdamen You need to rebuild your xo-server if you are using it from the sources. I you are using an official XOA, you will need to wait for the next release (last day of the month) and upgrade using the latest channel.

                      R 1 Reply Last reply Reply Quote 0
                      • R Offline
                        rtjdamen @julien-f
                        last edited by

                        @olivierlambert is it possible to apply this changes allready to our XOA? it would help with the development.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post