X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=hostinfod%2Fhostinfo-protocol.pod;h=eb9f40cbcf9503e17f276817bd37c9840780a602;hb=f71a10c6282c56aac97e8b1651e018e5d63c7a4b;hp=c50d6e4b5fdcbe5138fb93e20e382172e625ea2e;hpb=b35d7170994157c60410c9d792e0a63ddf912d9b;p=virt-hostinfo.git diff --git a/hostinfod/hostinfo-protocol.pod b/hostinfod/hostinfo-protocol.pod index c50d6e4..eb9f40c 100644 --- a/hostinfod/hostinfo-protocol.pod +++ b/hostinfod/hostinfo-protocol.pod @@ -177,6 +177,135 @@ I<0x> to indicate hexadecimal literals. Boolean arguments should be sent as I or I. +=head2 AVAILCPUS + + AVAILCPUS + +=head3 Returns + +Number of available physical cores in the host. + +=head3 Example + + >>> AVAILCPUS + <<< 1.0 200 4 + +=head3 Description + +Returns the number of physical cores in the host that are available to +the virtualization system (ie. have not been disabled). See also +I which would in almost every case return the same number. + +=head2 CORESPERSOCKET + + CORESPERSOCKET + +=head3 Returns + +Number of cores per socket in the physical host. + +=head3 Example + + >>> CORESPERSOCKET + <<< 1.0 200 2 + +=head3 Description + +Returns the number of physical cores per socket in the host. + +=head2 MEMORY + + MEMORY + +=head3 Returns + +Amount of memory in host, in kilobytes. + +=head3 Example + + >>> MEMORY + <<< 1.0 200 2097022 + +=head3 Description + +Returns the total memory in the host, in kilobytes. + +=head2 MHZ + + MHZ + +=head3 Returns + +Speed of host cores in MHz. + +=head3 Example + + >>> MHZ + <<< 1.0 200 2047 + +=head3 Description + +Returns the clockspeed of host cores in MHz. + +=head2 MODEL + + MODEL + +=head3 Returns + +The host CPU model, a string such as C or C. + +=head3 Example + + >>> MODEL + <<< 1.0 200 x86_64 + +=head3 Description + +Returns the host CPU model. + +=head2 NODES + + NODES + +=head3 Returns + +The number of NUMA nodes in the host. + +=head3 Example + + >>> NODES + <<< 1.0 200 1 + +=head3 Description + +Returns the number of NUMA nodes in the host. If this is 1 +then host memory access is uniform. + +=head2 PHYSCPUS + + PHYSCPUS + +=head3 Returns + +The number of physical cores. + +=head3 Example + + >>> PHYSCPUS + <<< 1.0 200 4 + +=head3 Description + +Returns the number of physical cores available on the host. + +In some (highly unusual) situations, some cores might be +disabled. To get the number of cores available to do work, +use C. + +Note that it is common for the guest not to see all of the +physical CPUs (virtual CPUs E physical CPUs). + =head2 PING PING echodata @@ -230,6 +359,43 @@ I in the L manual page. =back +=head2 SOCKETSPERNODE + + SOCKETSPERNODE + +=head3 Returns + +The number of sockets on each node. + +=head3 Example + + >>> SOCKETSPERNODE + <<< 1.0 200 2 + +=head3 Description + +Returns the number CPU sockets in each NUMA node. + +=head2 THREADSPERCORE + + THREADSPERCORE + +=head3 Returns + +The number of hyperthreads per core. + +=head3 Example + + >>> THREADSPERCORE + <<< 1.0 200 1 + +=head3 Description + +If hyperthreading is enabled on the host, this returns +the number of threads on each real core. The numbers +returned by C and C are multiplied +accordingly. +