libvirt/src/conf
Michal Privoznik 8ba0a58f8d virCaps: Expose distance between host NUMA nodes
If user or management application wants to create a guest,
it may be useful to know the cost of internode latencies
before the guest resources are pinned. For example:

<capabilities>

  <host>
    ...
    <topology>
      <cells num='2'>
        <cell id='0'>
          <memory unit='KiB'>4004132</memory>
          <distances>
            <sibling id='0' value='10'/>
            <sibling id='1' value='20'/>
          </distances>
          <cpus num='2'>
            <cpu id='0' socket_id='0' core_id='0' siblings='0'/>
            <cpu id='2' socket_id='0' core_id='2' siblings='2'/>
          </cpus>
        </cell>
        <cell id='1'>
          <memory unit='KiB'>4030064</memory>
          <distances>
            <sibling id='0' value='20'/>
            <sibling id='1' value='10'/>
          </distances>
          <cpus num='2'>
            <cpu id='1' socket_id='0' core_id='0' siblings='1'/>
            <cpu id='3' socket_id='0' core_id='2' siblings='3'/>
          </cpus>
        </cell>
      </cells>
    </topology>
    ...
  </host>
  ...
</capabilities>

We can see the distance from node1 to node0 is 20 and within nodes 10.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2014-06-04 09:35:55 +02:00
..
capabilities.c virCaps: Expose distance between host NUMA nodes 2014-06-04 09:35:55 +02:00
capabilities.h virCaps: Expose distance between host NUMA nodes 2014-06-04 09:35:55 +02:00
cpu_conf.c conf: use typedefs for enums in "src/conf/cpu_conf.h" 2014-05-05 15:52:36 -06:00
cpu_conf.h conf: use typedefs for enums in "src/conf/cpu_conf.h" 2014-05-05 15:52:36 -06:00
device_conf.c Replace Pci with PCI throughout 2014-04-08 11:15:55 +01:00
device_conf.h conf: use typedefs for enums in "src/conf/cpu_conf.h" 2014-05-05 15:52:36 -06:00
domain_addr.c qemu: extract common PCI handling functions 2014-05-13 20:17:54 +04:00
domain_addr.h qemu: extract common PCI handling functions 2014-05-13 20:17:54 +04:00
domain_audit.c conf: more enum cleanups in "src/conf/domain_conf.h" 2014-06-02 15:32:58 -06:00
domain_audit.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
domain_conf.c conf: more enum cleanups in "src/conf/domain_conf.h" 2014-06-02 15:32:58 -06:00
domain_conf.h conf: more enum cleanups in "src/conf/domain_conf.h" 2014-06-02 15:32:58 -06:00
domain_event.c Indent top-level labels by one space in src/conf/ 2014-03-25 14:58:38 +01:00
domain_event.h qemu: create object for qemu monitor events 2014-03-20 11:25:37 -06:00
domain_nwfilter.c Use K&R style for curly braces in src/conf/ 2014-03-20 17:16:38 +01:00
domain_nwfilter.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
interface_conf.c conf: use typedefs for enums in "src/conf/{network,interface}_conf.h" 2014-05-05 16:04:53 -06:00
interface_conf.h conf: use typedefs for enums in "src/conf/{network,interface}_conf.h" 2014-05-05 16:04:53 -06:00
netdev_bandwidth_conf.c Indent top-level labels by one space in src/conf/ 2014-03-25 14:58:38 +01:00
netdev_bandwidth_conf.h Rename xml.{c,h} to virxml.{c,h} 2012-12-21 11:19:50 +00:00
netdev_vlan_conf.c Indent top-level labels by one space in src/conf/ 2014-03-25 14:58:38 +01:00
netdev_vlan_conf.h maint: avoid 'const fooPtr' in conf 2013-10-14 14:34:38 -06:00
netdev_vport_profile_conf.c Indent top-level labels by one space in src/conf/ 2014-03-25 14:58:38 +01:00
netdev_vport_profile_conf.h Rename xml.{c,h} to virxml.{c,h} 2012-12-21 11:19:50 +00:00
network_conf.c conf: use typedefs for enums in "src/conf/{network,interface}_conf.h" 2014-05-05 16:04:53 -06:00
network_conf.h conf: use typedefs for enums in "src/conf/{network,interface}_conf.h" 2014-05-05 16:04:53 -06:00
network_event.c Indent top-level labels by one space in src/conf/ 2014-03-25 14:58:38 +01:00
network_event.h event: move event filtering to daemon (regression fix) 2014-02-05 08:03:31 -07:00
node_device_conf.c Replace Pci with PCI throughout 2014-04-08 11:15:55 +01:00
node_device_conf.h conf: use typedefs for enums in node_device_conf, nwfilter_params 2014-05-12 16:49:43 -06:00
nwfilter_conf.c conf: use typedefs for enums in "src/conf/nwfilter_conf.h" 2014-05-14 09:49:57 -06:00
nwfilter_conf.h conf: use typedefs for enums in "src/conf/nwfilter_conf.h" 2014-05-14 09:49:57 -06:00
nwfilter_ipaddrmap.c Remove pointless storage of var names in virNWFilterHashTable 2014-04-25 15:44:09 +01:00
nwfilter_ipaddrmap.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
nwfilter_params.c conf: use typedefs for enums in node_device_conf, nwfilter_params 2014-05-12 16:49:43 -06:00
nwfilter_params.h conf: use typedefs for enums in node_device_conf, nwfilter_params 2014-05-12 16:49:43 -06:00
object_event_private.h event: prepare client to track domain callbackID 2014-02-12 10:48:15 -07:00
object_event.c Indent top-level labels by one space in src/conf/ 2014-03-25 14:58:38 +01:00
object_event.h event: add notion of remoteID for filtering client network events 2014-01-15 13:55:21 -07:00
secret_conf.c maint: shorten 'TypeType' function names 2014-05-16 00:22:18 -06:00
secret_conf.h maint: shorten 'TypeType' function names 2014-05-16 00:22:18 -06:00
snapshot_conf.c conf: restrict external snapshots to backing store formats 2014-04-15 13:57:15 +02:00
snapshot_conf.h conf: use typedefs for enums in "src/conf/snapshot_conf.h" 2014-05-14 10:26:29 -06:00
storage_conf.c maint: shorten 'TypeType' function names 2014-05-16 00:22:18 -06:00
storage_conf.h maint: shorten 'TypeType' function names 2014-05-16 00:22:18 -06:00
virchrdev.c Indent top-level labels by one space in src/conf/ 2014-03-25 14:58:38 +01:00
virchrdev.h conf: Add unix socket support to virChrdevOpen 2013-01-04 18:07:11 -07:00