qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Bug 992067] Re: Windows 2008R2 very slow cold boot whe


From: Matthew Anderson
Subject: Re: [Qemu-devel] [Bug 992067] Re: Windows 2008R2 very slow cold boot when >4GB memory
Date: Mon, 7 May 2012 18:47:18 +0000

Apologies for the late feedback,

I've tested with the 1.0 source from sourceforge and also from the Proxmox git, 
both appeared to behave the same. The proxmox version appeared to be slightly 
better in the sense that the VM never blue screened on boot and it eventually 
booted whilst the sourceforge version consistently blue screened. 

I've recently noticed VM's on another host, with 2GB allocated to the VM, are 
slow to boot under the 0.15.1 userspace. I don't think the problem is strictly 
related to the VM having more than 4GB of memory but rather the problem is more 
easily spotted.  The memory fill slowness appears to be linked to the number of 
VM's currently running on the host with anything over 5 concurrent VM's causing 
enough of a slow down that the large memory VM's fail to boot. 

The XML for one of the guests is below. The disabled HPET is due to Windows 
time keeping problems with it enabled. 

If I can do anything else to help diagnose the problem please let me know. I 
should have a free host with 48GB memory to test on shortly which may help 
further isolate the problem. 

Thanks
-Matt

<domain type='kvm'>
  <name>-Mosaic-TS</name>
  <uuid>57c86460-28a5-0ab3-314d-b428e19d2c54</uuid>
  <memory>8388608</memory>
  <currentMemory>8388608</currentMemory>
  <vcpu>4</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.14'>hvm</type>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
    <bootmenu enable='no'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qed' cache='writeback'/>
      <source file='/mnt/ssd/iHost/iHost-Mosaic-TS.qed'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' 
function='0x0'/>
    </disk>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    </disk>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x1'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:52:78:67'/>
      <source bridge='br0'/>
      <model type='e1000'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' 
function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
<video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' 
function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' 
function='0x0'/>
    </memballoon>
  </devices>
</domain>




-----Original Message-----
From: Alexandre DERUMIER [mailto:address@hidden 
Sent: Tuesday, 1 May 2012 7:05 PM
To: Gleb Natapov
Cc: Matthew Anderson; address@hidden; address@hidden
Subject: Re: [Qemu-devel] [Bug 992067] Re: Windows 2008R2 very slow cold boot 
when >4GB memory

Hi, I was having this problem with qemu 0.15 ,  (win2008R2 x64 > 4GB).
guest with 32gb ram take around 40min to boot. (When windows fill memory at 
boot, memory grow slowly)


but now with last qemu kvm git (proxmox 2.0 distrib), it's working fine. (can 
tell for qemu 1.0)



----- Mail original ----- 

De: "Gleb Natapov" <address@hidden>
À: address@hidden
Cc: address@hidden, address@hidden
Envoyé: Mardi 1 Mai 2012 10:03:44
Objet: Re: [Qemu-devel] [Bug 992067] Re: Windows 2008R2 very slow cold boot 
when >4GB memory 

On Mon, Apr 30, 2012 at 06:07:55PM -0000, Anthony Liguori wrote: 
> This should be resolved by using Hyper-V relaxed timers which is in 
> the latest development version of QEMU. You would need to add -cpu 
> host,+hv_relaxed to the command line to verify this.
> 
The described scenario still shouldn't happen and it doesn't for me. 
Is this 32 or 64 bit version of Windows. Are you running 32 bit version of the 
host may be (but Scientific Linux shouldn't have that)? 
What is your command line? 

> ** Changed in: qemu
> Status: New => Fix Committed
> 
> --
> You received this bug notification because you are a member of qemu- 
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/992067
> 
> Title: 
> Windows 2008R2 very slow cold boot when >4GB memory
> 
> Status in QEMU: 
> Fix Committed
> 
> Bug description: 
> I've been having a consistent problem booting 2008R2 guests with 
> 4096MB of RAM or greater. On the initial boot the KVM process starts 
> out with a ~200MB memory allocation and will use 100% of all CPU 
> allocated to it. The RES memory of the KVM process slowly rises by 
> around 200mb every few minutes until it reaches it's memory allocation 
> (several hours in some cases). Whilst this is happening the guest will 
> usually blue screen with the message of -
> 
> A clock interrupt was not received on a secondary processor within the 
> allocated time interval
> 
> If I let the KVM process continue to run it will eventually allocate 
> the required memory the guest will run at full speed, usually 
> restarting after the blue screen and booting into startup repair. From 
> here you can restart it and it will boot perfectly. Once booted the 
> guest has no performance issues at all.
> 
> I've tried everything I could think of. Removing PAE, playing with 
> huge pages, different kernels, different userspaces, different 
> systems, different backing file systems, different processor feature 
> set, with or without Virtio etc. My best theory is that the problem is 
> caused by Windows 2008 zeroing out all the memory on boot and 
> something is causing this to be held up or slowed to a crawl. The 
> hosts always have memory free to boot the guest and are not using swap 
> at all.
> 
> Nothing so far has solved the issue. A few observations I've made 
> about the issue are - Large memory 2008R2 guests seem to boot fine (or 
> with a small delay) when they are the first to boot on the host after 
> a reboot Sometimes dropping the disk cache (echo 1 > 
> /proc/sys/vm/drop_caches) will cause them to boot faster
> 
> 
> The hosts I've tried are -
> All Nehalem based (5540, 5620 and 5660) Host ram of 48GB, 96GB and 
> 192GB Storage on NFS, Gluster and local (ext4, xfs and zfs) QED, QCOW 
> and RAW formats Scientific Linux 6.1 with the standard kernel 2.6.32, 
> 2.6.38 and 3.3.1 KVM userspaces 0.12, 0.14 and (currently) 0.15.1
> 
> To manage notifications about this bug go to: 
> https://bugs.launchpad.net/qemu/+bug/992067/+subscriptions

--
Gleb. 




-- 

-- 




        Alexandre D erumier 
Ingénieur Système 
Fixe : 03 20 68 88 90 
Fax : 03 20 68 90 81 
45 Bvd du Général Leclerc 59100 Roubaix - France 
12 rue Marivaux 75002 Paris - France 
        

reply via email to

[Prev in Thread] Current Thread [Next in Thread]