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 911998 - memtune did not live update domain xml
Summary: memtune did not live update domain xml
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Gunannan Ren
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 911997
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-17 06:44 UTC by Wayne Sun
Modified: 2014-06-18 07:19 UTC (History)
7 users (show)

Fixed In Version: libvirt-1.0.4-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 911997
Environment:
Last Closed: 2014-06-13 13:22:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Wayne Sun 2013-02-17 06:44:44 UTC
this problem also on:
libvirt-1.0.2-1.el7.x86_64

+++ This bug was initially created as a clone of Bug #911997 +++

Description of problem:
When tuning memory parameters at domain shutoff, config xml is updated with <memtune> part, but when live tuning domain memory parameters, setting is done without live update domain xml. 

Version-Release number of selected component (if applicable):
libvirt-0.10.2-18.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.352.el6.x86_64
kernel-2.6.32-356.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. tuning memory parameter when domain is shut off
# virsh destroy libvirt_test_api
Domain libvirt_test_api destroyed

# virsh memtune libvirt_test_api --swap-hard-limit -1 --soft-limit -1

# virsh memtune libvirt_test_api --config
hard_limit     : 0
soft_limit     : unlimited
swap_hard_limit: unlimited

# virsh dumpxml libvirt_test_api
...
  <memtune>
    <soft_limit unit='KiB'>9007199254740991</soft_limit>
    <swap_hard_limit unit='KiB'>9007199254740991</swap_hard_limit>
  </memtune>
...

2. tuning memory parameter when domain is on
# virsh start libvirt_test_api
Domain libvirt_test_api started

# virsh memtune libvirt_test_api --live
hard_limit     : 25417216
soft_limit     : unlimited
swap_hard_limit: unlimited

# virsh memtune libvirt_test_api --swap-hard-limit 25417216000 --soft-limit 2541721600 --live

# virsh memtune libvirt_test_api --live
hard_limit     : 25417216
soft_limit     : 2541721600
swap_hard_limit: 25417216000

# virsh dumpxml libvirt_test_api
...
  <memtune>
    <soft_limit unit='KiB'>9007199254740991</soft_limit>
    <swap_hard_limit unit='KiB'>9007199254740991</swap_hard_limit>
  </memtune>
...

live update did not update the domain xml, it remains as set when domain is off. 
  
Actual results:
memtune did not live update domain xml 

Expected results:
memtune should live update domain xml 

Additional info:

Comment 2 Gunannan Ren 2013-03-05 16:22:27 UTC
Patch sent out
https://www.redhat.com/archives/libvir-list/2013-March/msg00159.html

Comment 3 Gunannan Ren 2013-03-06 03:40:29 UTC
commit 0047d5d6e86cf84e71b2503c3939fc97c3ffe8b9
Author: Guannan Ren <gren>
Date:   Wed Mar 6 00:24:57 2013 +0800

    qemu: update domain live xml for virsh memtune with --live flag
    
    virsh subcommand memtune forgot updating domain live xml
    after setting cgroup value.

Comment 4 Luwen Su 2013-04-10 09:54:04 UTC
Test on:
libvirt-1.0.4-1.el7.x86_64
qemu-kvm-1.4.0-2.el7.x86_64

same with the comment 0's step.

Before start the guest
#virsh dumpxml libvirt_test_api
.....
    <soft_limit unit='KiB'>9007199254740991</soft_limit>
    <swap_hard_limit unit='KiB'>9007199254740991</swap_hard_limit>
....
After start the guest

#virsh start libvirt_test_api
Domain libvirt_test_api started

#  virsh memtune libvirt_test_api --live
hard_limit     : 1857024
soft_limit     : unlimited
swap_hard_limit: unlimited

# virsh memtune libvirt_test_api --swap-hard-limit 25417216000 --soft-limit 2541721600 --live

#  virsh memtune libvirt_test_api --live
hard_limit     : 1857024
soft_limit     : 2541721600
swap_hard_limit: 25417216000

# virsh dumpxml libvirt_test_api
.....
    <soft_limit unit='KiB'>2541721600</soft_limit>
    <swap_hard_limit unit='KiB'>25417216000</swap_hard_limit>
....


So set it to VERIFIED

Comment 5 Ludek Smid 2014-06-13 13:22:20 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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