Jump to content
Welcome to our new Citrix community!
  • 0

Could not receive information about quantity of physical processor cores from Xenserver host


Ziganshin Marat

Question

We have encountered a problem, that we cannot receive information about quantity of physical processor cores from Xenserver host. We have tried two different C# libraries https://www.nuget.org/packages/CitrixXenServer70SDK/ and SDK 8.2 from https://www.citrix.com/downloads/citrix-hypervisor/, but the result was the same. 

The command host.get_cpu_info returns the following response:
{
    "result": {
        "cpu_count": "32",
        "socket_count": "2",
        "vendor": "GenuineIntel",
        "speed": "2000.018",
        "modelname": "Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz",
        "family": "6",
        "model": "45",
        "stepping": "7",
        "flags": "fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ht syscall nx lm constant_tsc arch_perfmon rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor est ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm ida arat epb pln pts dtherm xsaveopt",
        "features": "1fbee3ff-bfebfbff-00000001-2c100800",
        "features_pv": "17c9cbf5-96b82203-2191cbf5-00000003-00000001-00000000-00000000-00000000-00001000-8c000000-00000000-00000000-00000000-00000000",
        "features_hvm": "17cbfbff-97ba2223-2d93fbff-00000003-00000001-00000000-00000000-00000000-00001000-9c000000-00000000-00000000-00000000-00000000"
    },
    "error": null,
    "id": 0
}
But our host has 2 sockets with 8 cores per socket and 2 threads per core, so we get quantity of logical processor cores in "cpu_count" field. 

The command host.get_cpu_configuration returns empty JSON:
{"result": {}, "error": null, "id": 0}

We would like to know, if there is a possibility to get quantity of physical processor cores through API? Can we force host.get_cpu_configuration to send us information about threads per core? Can we execute shell command (xl info/lscpu) and get output without connecting via SSH?
Version of our XenServer is XenServer 7.1 CU1 (LTSR).

Link to comment

4 answers to this question

Recommended Posts

  • 0
16 hours ago, Tobias Kreidl said:

Is hyperthreading enabled in the BIOS?  What CPU count do you see in top or xentop? You are running CH 8.2, correct?

Yes, hyperthreading is enabled and we have 2 sockets with 8 cores per socket and 2 threads per core. Version of our XenServer is XenServer 7.1 CU1 (LTSR).

xl info:

image.thumb.png.bb2c6349edf9f5a6eec04efdfcd3bdca.png

xentop:

image.thumb.png.c106f1169f33517fbb36eb2bc776768c.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...