virsh nodeinfo shows only 1 of 2 sockets

Bug #1174365 reported by mpopp
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

12.04 Server, libvirt-bin 0.9.8-2ubuntu17.8

The 2 AMD opterons are being displayed after a virsh capabilities.

<topology>
      <cells num='2'>
        <cell id='0'>
          <cpus num='6'>
            <cpu id='0'/>
            <cpu id='1'/>
            <cpu id='2'/>
            <cpu id='3'/>
            <cpu id='4'/>
            <cpu id='5'/>
          </cpus>
        </cell>
        <cell id='1'>
          <cpus num='6'>
            <cpu id='6'/>
            <cpu id='7'/>
            <cpu id='8'/>
            <cpu id='9'/>
            <cpu id='10'/>
            <cpu id='11'/>
          </cpus>
        </cell>
      </cells>
    </topology>

virsh nodeinfo output:

CPU-Modell: x86_64
CPU(s): 12
CPU-Frequenz: 1400 MHz
CPU-Socket(s): 1
Kern(e) pro Socket: 3
Thread(s) pro Kern: 2
NUMA-Zelle(n): 2
Speichergrösse: 16417932 kB

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug. Could you please show the result of

for d in `find /sys/devices/system/cpu -name topology`; do
 echo $d
 cat $d/physical_package_id
done

Changed in libvirt (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
mpopp (mathiaspopp) wrote :

Thanks for your reply.

Here's the desired output:

root@kvm-host:/sys/devices/system/cpu# for i in $(find . -name topology); do echo $i; cat $i/physical_package_id; done
./cpu0/topology
0
./cpu1/topology
0
./cpu2/topology
0
./cpu3/topology
0
./cpu4/topology
0
./cpu5/topology
0
./cpu6/topology
1
./cpu7/topology
1
./cpu8/topology
1
./cpu9/topology
1
./cpu10/topology
1
./cpu11/topology
1

mpopp (mathiaspopp)
Changed in libvirt (Ubuntu):
status: Incomplete → In Progress
mpopp (mathiaspopp)
Changed in libvirt (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libvirt (Ubuntu) because there has been no activity for 60 days.]

Changed in libvirt (Ubuntu):
status: Incomplete → Expired
Revision history for this message
blackbeardrrr (pdigioia) wrote :

I'm also seeing this.

----------------------------------------------------------------
lscpu
----------------------------------------------------------------
# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 24
On-line CPU(s) list: 0-23
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 2 <-----------------------------------
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 44
Stepping: 2
CPU MHz: 1600.000
BogoMIPS: 5333.20
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 12288K
NUMA node0 CPU(s): 0-5,12-17
NUMA node1 CPU(s): 6-11,18-23
----------------------------------------------------------------
virsh
----------------------------------------------------------------
# virsh nodeinfo
CPU model: x86_64
CPU(s): 24
CPU frequency: 1600 MHz
CPU socket(s): 1 <-----------------------------------
Core(s) per socket: 6
Thread(s) per core: 2
NUMA cell(s): 2
Memory size: 198416624 KiB
----------------------------------------------------------------
Serge Hallyn's script:
----------------------------------------------------------------
# for d in `find /sys/devices/system/cpu -name topology`; do
> echo $d
> cat $d/physical_package_id
> done
/sys/devices/system/cpu/cpu0/topology
0
/sys/devices/system/cpu/cpu1/topology
0
/sys/devices/system/cpu/cpu2/topology
0
/sys/devices/system/cpu/cpu3/topology
0
/sys/devices/system/cpu/cpu4/topology
0
/sys/devices/system/cpu/cpu5/topology
0
/sys/devices/system/cpu/cpu6/topology
1
/sys/devices/system/cpu/cpu7/topology
1
/sys/devices/system/cpu/cpu8/topology
1
/sys/devices/system/cpu/cpu9/topology
1
/sys/devices/system/cpu/cpu10/topology
1
/sys/devices/system/cpu/cpu11/topology
1
/sys/devices/system/cpu/cpu12/topology
0
/sys/devices/system/cpu/cpu13/topology
0
/sys/devices/system/cpu/cpu14/topology
0
/sys/devices/system/cpu/cpu15/topology
0
/sys/devices/system/cpu/cpu16/topology
0
/sys/devices/system/cpu/cpu17/topology
0
/sys/devices/system/cpu/cpu18/topology
1
/sys/devices/system/cpu/cpu19/topology
1
/sys/devices/system/cpu/cpu20/topology
1
/sys/devices/system/cpu/cpu21/topology
1
/sys/devices/system/cpu/cpu22/topology
1
/sys/devices/system/cpu/cpu23/topology
1
#

Changed in libvirt (Ubuntu):
status: Expired → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.