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 1008500 - [TestOnly] Allow enable/disable ksm per VM
Summary: [TestOnly] Allow enable/disable ksm per VM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Libvirt Maintainers
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 635418 LibvirtKSMOff 769021 950968
Blocks: 635417 644849 655920
TreeView+ depends on / blocked
 
Reported: 2013-09-16 13:35 UTC by Paolo Bonzini
Modified: 2015-09-28 02:10 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: LibvirtKSMOff
Environment:
Last Closed: 2014-06-13 10:52:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Wayne Sun 2013-11-19 11:24:59 UTC
pkgs:
libvirt-1.1.1-12.el7.x86_64
qemu-kvm-rhev-1.5.3-10.el7.x86_64
kernel-3.10.0-9.el7.x86_64

steps:
1. Add the following xml info into guest 
...
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
...
2. Start the guest
# virsh start r7q
Domain r7q started

# ps aux|grep r7q
qemu     17219 95.8  0.0 1477604 61088 ?       Sl   19:04   0:05 /usr/libexec/qemu-kvm -name r7q -S -machine pc-i440fx-rhel7.0.0,accel=kvm,usb=off,mem-merge=off -m 977 -realtime mlock=off -smp 2,maxcpus=4,sockets=4,cores=1,threads=1 -uuid f8de2e07-3fdc-5425-6c72-30d400fb0679 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/r7q.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/libvirt/images/r7q-mjc.img,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=23,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:37:28:f5,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -vnc 127.0.0.1:0 -vga cirrus -device AC97,id=sound0,bus=pci.0,addr=0x4 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5

the mem-merge=off is added to qemu command line. 

remove the adding xml and restart, no mem-merge added to command line which is default to mem-merge=on

After enable ksm on host:

1.echo 1 > /sys/kernel/mm/ksm/run
2.echo 50 > /sys/kernel/mm/ksm/sleep_millisecs
3.echo 5000 > /sys/kernel/mm/ksm/pages_to_scan

check with steps with comments #7 in bug 769021, also works as expected.

Comment 3 Ludek Smid 2014-06-13 10:52:15 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.