Bug 1188205
| Summary: | hotplugged vcpu is not consistent with guest NUMA topology | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jincheng Miao <jmiao> | ||||
| Component: | qemu-kvm | Assignee: | Igor Mammedov <imammedo> | ||||
| Status: | CLOSED DEFERRED | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.1 | CC: | dyuan, ehabkost, hhuang, honzhang, huding, imammedo, juzhang, lmiksik, mrezanin, mzhan, rbalakri, virt-bugs, virt-maint, xfu | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 1188200 | Environment: | |||||
| Last Closed: | 2015-09-18 18:03:43 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 1188200 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Jincheng Miao
2015-02-02 10:40:05 UTC
Can you please check if the fix for bug 1162080 at http://brewweb.devel.redhat.com/brew/taskinfo?taskID=8682975 affects this bug too? Scratch build was tested for bug 1188200. Clearing needinfo. pls retest with latest qemu-kvm Test this bug using lastest qemu-kvm: qemu-kvm-1.5.3-103.el7.x86_64, found this bug is not fixed.
1. boot guest with two numa nodes:
/usr/libexec/qemu-kvm -name rhel7 -S -machine pc-i440fx-rhel7.0.0,accel=kvm,usb=off -m 2048 -realtime mlock=off -smp 2,maxcpus=4,sockets=4,cores=1,threads=1 -numa node,nodeid=0,cpus=0-1,mem=1024 -numa node,nodeid=1,cpus=2-3,mem=1024 -uuid 1edfafc5-a55a-4396-9595-46e590bfc79a -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/rhel7.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive file=/home/RHEL-Server-7.2-64-virtio.qcow2,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -net none -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -vnc :1 -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 -msg timestamp=on -qmp tcp:0:4445,server,nowait -monitor stdio -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=4e:63:28:bc:b1:25
2. check the numa topology inside guest:
available: 2 nodes (0-1)
node 0 cpus: 0 1
node 0 size: 1023 MB
node 0 free: 48 MB
node 1 cpus:
node 1 size: 1023 MB
node 1 free: 965 MB
node distances:
node 0 1
0: 10 20
1: 20 10
3. hotplug two vcpus:
{"execute":"qmp_capabilities"}
{"return": {}}
{"execute":"cpu-add","arguments":{"id":2},"id":"libvirt-10"}
{"return": {}, "id": "libvirt-10"}
{"execute":"cpu-add","arguments":{"id":3},"id":"libvirt-11"}
{"return": {}, "id": "libvirt-11"}
4. check the numa topology inside guest:
# numactl --hard
available: 2 nodes (0-1)
node 0 cpus: 0 1 2 3
node 0 size: 1023 MB
node 0 free: 40 MB
node 1 cpus:
node 1 size: 1023 MB
node 1 free: 942 MB
node distances:
node 0 1
0: 10 20
1: 20 10
vcpu2 and vcpu3 are not located in guest NUMA node1.
Based on the result of comment #7, set this bug to be "ASSIGNED". If I'm wrong, please fix me. Thanks. Hi Igor, Could you have a look comment7 and add comment? Best Regards, Junyi Guest-side NUMA topology is useless without corresponding host-side NUMA binding setup (which is not supported in qemu-kvm-1.5.3), so no real world use cases are affected. Closing the qemu-kvm bug as DEFERRED (as it is already fixed upstream and on qemu-kvm-rhev). Hi Mrezanin, Could you please remove this bz from RHEL7.2 qemu-kvm erratum according to comment10? Best Regards, Junyi |