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

    cpu cores reported mismatched

    Scheduled Pinned Locked Moved Xen Orchestra
    8 Posts 3 Posters 934 Views 2 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.
    • okynnorO Offline
      okynnor
      last edited by okynnor

      Hi,

      There is a weird issue happening because the number of cores reported between XO, Xcp-ng and lscpu + htop are different.

      XO and xcp-ng report that there are 24 logical cores. Great. Also the BIOS sees 2 physical CPUs x 6 physical cores = 24 logical cores.

      However, when I run lscpu and htop from the command line, they report that there are only 8 logical cores or 4 physical cores.

      Has anyone bumped into this issue before?

      are there 24 or 8 cores?

      A 1 Reply Last reply Reply Quote 0
      • A Online
        Andrew Top contributor @okynnor
        last edited by

        @okynnor If you running lscpu from Dom0 then it reports the number of cores Dom0 is configured for at boot time. It normally does not get access to all cores in the system. XO should give you the right info.

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

          Indeed, remember that dom0 is NOT the host, it's "just" a VM with permission to see all the hardware (in short).

          1 Reply Last reply Reply Quote 0
          • okynnorO Offline
            okynnor @Andrew
            last edited by

            @Andrew If I am understanding your reply on dom0 correctly, does this mean that when I into the xcp-ng terminal and type htop and lscpu and they are both reporting 8 cores instead of 24, that's correct?

            I have two identical servers. The other server, reports the right number of cores though.

            How do I reconcile the difference between the two servers?

            The only difference between them is the amount of ECC RAM (24GB vs 64GB) but I doubt that it would make a difference on this topi c.

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

              Both htop and lscpu are Linux tools to report number of cores in your VM, not your host.

              Do a xl info to get the host number 🙂

              okynnorO 1 Reply Last reply Reply Quote 0
              • okynnorO Offline
                okynnor @olivierlambert
                last edited by okynnor

                @olivierlambert Thanks. I understand Dom0 and VM0 principles. I didn't know that exited in
                xsconsole, resulting terminal being a VM.

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

                  Indeed, that's not "usual" if you comes from a purely Linux/KVM world, where the host is the entire machine.

                  okynnorO 1 Reply Last reply Reply Quote 0
                  • okynnorO Offline
                    okynnor @olivierlambert
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post