Comment 3 for bug 1444232

Revision history for this message
zhangtralon (zhangchunlong1) wrote :

yeah, Daniel and Nikola, you are right.
Before, I find no numa in a host by the numactl --hardware, so I think that there may be no numa topo.
I made the following test, and find that the libvirt return a numa even if the value from the numactl is zero.
thanks.

root@tralon-Vostro-1400:~# virsh --version
1.2.2
root@tralon-Vostro-1400:~# numactl --hardware
available: 0 nodes ()
root@tralon-Vostro-1400:~# virsh capabilities
<capabilities>

  <host>
    <uuid>44454c4c-3500-1039-8038-b4c04f433258</uuid>
    <cpu>
      <arch>i686</arch>
      <model>n270</model>
      <vendor>Intel</vendor>
      <topology sockets='1' cores='2' threads='1'/>
      <feature name='lahf_lm'/>
      <feature name='lm'/>
      <feature name='pdcm'/>
      <feature name='xtpr'/>
      <feature name='cx16'/>
      <feature name='tm2'/>
      <feature name='est'/>
      <feature name='vmx'/>
      <feature name='ds_cpl'/>
      <feature name='dtes64'/>
      <feature name='pbe'/>
      <feature name='tm'/>
      <feature name='ht'/>
      <feature name='ss'/>
      <feature name='acpi'/>
      <feature name='ds'/>
      <feature name='pse36'/>
    </cpu>
    <power_management>
      <suspend_mem/>
      <suspend_disk/>
      <suspend_hybrid/>
    </power_management>
    <migration_features>
      <live/>
      <uri_transports>
        <uri_transport>tcp</uri_transport>
      </uri_transports>
    </migration_features>
    <topology>
      <cells num='1'>
        <cell id='0'>
          <memory unit='KiB'>3106852</memory>
          <cpus num='2'>
            <cpu id='0' socket_id='0' core_id='0' siblings='0'/>
            <cpu id='1' socket_id='0' core_id='1' siblings='1'/>
          </cpus>
        </cell>
      </cells>
    </topology>
    <secmodel>
      <model>apparmor</model>
      <doi>0</doi>
    </secmodel>
    <secmodel>
      <model>dac</model>
      <doi>0</doi>
      <baselabel type='kvm'>+117:+126</baselabel>
      <baselabel type='qemu'>+117:+126</baselabel>
    </secmodel>
  </host>

</capabilities>