Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1209891

Summary: changing the pinning with virsh setvcpupin does not work
Product: Red Hat Enterprise Linux 6 Reporter: Jan Kurik <jkurik>
Component: libvirtAssignee: Peter Krempa <pkrempa>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.6CC: dyuan, honzhang, jdenemar, jherrman, jsuchane, lhuang, mtessun, mzhan, pkrempa, pmanzell, pm-eus, rbalakri, rhodain, tscherf
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: libvirt-0.10.2-46.el6_6.6 Doc Type: Bug Fix
Doc Text:
Previously, when the default CPU mask was specified while using Non-Uniform Memory Access (NUMA) pinning, virtual CPUs (vCPUs) could not be pinned to physical CPUs that were not contained in the default node mask. With this update, the control groups (cgroups) code correctly attaches only vCPU threads instead of the entire domain group, and using NUMA pinning with the default cpuset subsystem now works as expected.
Story Points: ---
Clone Of: 1198096 Environment:
Last Closed: 2015-04-29 10:10:14 UTC Type: ---
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: 1198096    
Bug Blocks:    

Description Jan Kurik 2015-04-08 12:27:46 UTC
This bug has been copied from bug #1198096 and has been proposed
to be backported to 6.6 z-stream (EUS).

Comment 6 Jiri Denemark 2015-04-10 11:39:19 UTC
The patch for this bug introduces a memory leak.

Comment 8 Luyao Huang 2015-04-13 05:50:40 UTC
Verify this bug with libvirt-0.10.2-46.el6_6.6.x86_64 :

Steps:

1.
# valgrind --leak-check=full libvirtd
==8417== Memcheck, a memory error detector
==8417== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==8417== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==8417== Command: libvirtd
==8417== 

2. open another terminal and prepare a vm:

# virsh dumpxml r6
...
  <vcpu placement='static' cpuset='0-3'>4</vcpu>
...

3. start the vm:

# virsh start r6
Domain r6 started

4. check cgroup settings:

# cgget -g cpuset /libvirt/qemu/r6/vcpu3 |grep .cpus
cpuset.cpus: 0-3
# cgget -g cpuset /libvirt/qemu/r6/vcpu2 |grep .cpus
cpuset.cpus: 0-3
# cgget -g cpuset /libvirt/qemu/r6/vcpu1 |grep .cpus
cpuset.cpus: 0-3
# cgget -g cpuset /libvirt/qemu/r6 |grep .cpus
cpuset.cpus: 0-7
# cgget -g cpuset /libvirt/qemu/r6/emulator |grep .cpus
cpuset.cpus: 0-3

5. change vcpupin:
# virsh vcpupin r6 0 4-7

# virsh vcpupin r6 1 4-7

# virsh vcpupin r6 2 4-7

# virsh vcpupin r6 3 4-7


6. recheck cgroup

# cgget -g cpuset /libvirt/qemu/r6/vcpu1 |grep .cpus
cpuset.cpus: 4-7
# cgget -g cpuset /libvirt/qemu/r6/vcpu1 |grep .cpus
cpuset.cpus: 4-7
# cgget -g cpuset /libvirt/qemu/r6/vcpu2 |grep .cpus
cpuset.cpus: 4-7
# cgget -g cpuset /libvirt/qemu/r6/vcpu3 |grep .cpus
cpuset.cpus: 4-7
# cgget -g cpuset /libvirt/qemu/r6/emulator |grep .cpus
cpuset.cpus: 0-3
# cgget -g cpuset /libvirt/qemu/r6 |grep .cpus
cpuset.cpus: 0-7

7. check valgrind no memory leak around this issue.

Comment 12 errata-xmlrpc 2015-04-29 10:10:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0916.html