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 698545

Summary: migrate vm to file twice when vm stopped,file size differs
Product: Red Hat Enterprise Linux 6 Reporter: Xiaoqing Wei <xwei>
Component: qemu-kvmAssignee: Juan Quintela <quintela>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: akong, ehabkost, gcosta, juzhang, michen, mkenneth, shu, tburke, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 713104 (view as bug list) Environment:
Last Closed: 2012-03-13 14:26:05 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:    
Bug Blocks: 713104    

Description Xiaoqing Wei 2011-04-21 08:07:22 UTC
Description of problem:
when a vm is running,type stop in monitor,
after vm stopped,migrate to file twice ,file size differs

Version-Release number of selected component (if applicable):

qemu-kvm-0.12.1.2-2.158.el6.x86_64
How reproducible:
100%

Steps to Reproduce:
1.boot a guest
qemu-kvm -name 'rhel47-32' -monitor stdio -E,path=/tmp/serial-20110420-134929-ocyE,server,nowait -device isa-serial,chardev=E -drive file='2.qcow2',werror=stop,rerror=stop,index=0,if=ide,cache=unsafe -device rtl8139,netdev=idvjxRgD,mac=9a:fe:9d:9b:1e:a4,id=ndev00idvjxRgD,bus=pci.0,addr=0x3 -netdev tap,id=idvjxRgD,ifname='t0',script='/.',downscript='no' -m 4096 -smp 4,cores=2,threads=1,sockets=2 -cpu cpu64-rhel6,+sse2,+x2apic -vnc :0 -rtc base=utc,clock=host,driftfix=none -M rhel6.1.0 -boot order=cdn,once=c,menu=off   -usbdevice tablet -no-kvm-pit-reinjection -enable-kvm  


2. after guest fully booted,type "stop" in monitor
3. exec     "migrate -d "exec:gzip -c > /tmp/mig1.gz"
after finish migration,do 
  "migrate -d "exec:gzip -c > /tmp/mig2.gz"
Actual results:
/tmp/mig1    /tmp/mig2    size differs

ll /tmp/mig*

-rw-r--r--. 1 root root 2503468 Apr 21 12:45 /tmp/mig1.gz
-rw-r--r--. 1 root root 2503467 Apr 21 12:45 /tmp/mig2.gz

[root@rhel6xwei tmp]# md5sum  mig*
c268c82cce9b83f2a5b7f7b339ad39f5  mig1.gz
22705f6213f6de1b25cd091869e11641  mig2.gz

Expected results:
mig1.gz mig2.gz  size the same,md5sum the same.

Additional info:
host info :kernel-2.6.32-130.el6.x86_64
processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz
stepping        : 10
cpu MHz         : 2660.161
cache size      : 3072 KB

guest info : OS rhel4.9-32 / Win2008-64

Comment 2 Juan Quintela 2011-06-08 09:37:46 UTC
This wolud be fixed depending on capacity.  Basically we don't care about what is on the image, and it can change depending of timing.  It is possible to have it identical, but not a priority.

Comment 4 Dor Laor 2012-03-13 14:26:05 UTC
It's not a bug, the amount of ram saved depends on the guest scheduling and even the content (same page of identical bytes).