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 - changing the pinning with virsh setvcpupin does not work
Summary: changing the pinning with virsh setvcpupin does not work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.6
Hardware: x86_64
OS: All
urgent
urgent
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1198096
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-08 12:27 UTC by Jan Kurik
Modified: 2019-06-13 08:23 UTC (History)
14 users (show)

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.
Clone Of: 1198096
Environment:
Last Closed: 2015-04-29 10:10:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0916 0 normal SHIPPED_LIVE libvirt bug fix update 2015-04-29 14:09:46 UTC

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


Note You need to log in before you can comment on or make changes to this bug.