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

[Xen-users] Re: HVM CPU usage 100% after the migration


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: cendhu <cendhu@xxxxxxxxx>
  • Date: Fri, 24 Sep 2010 18:22:22 +0530
  • Delivery-date: Fri, 24 Sep 2010 05:54:07 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=Zv1zpNyaYDa5cv5PL3KeEKfRN0TKkZJqYAYp73rlZkY5a3HG8j6Z/WbxpBBqVBCUMn jqdhPNHdQ7ERqpRhTZV/5VTpcFBFCnGQco7c1rfYSDSgW1YERVVHtRGaoPycANZOnSyH SMx1v+MoWhc3o5s6jvRyCsQrLuT04LILaVUUU=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Solved.

Problem was due to the line "maxmem=2048" in the config file.

After removing this line, HVM's CPU usage is between 0 to 2%

But the maxmem is a valid option for HVM config file.


On Fri, Sep 24, 2010 at 3:25 PM, cendhu <cendhu@xxxxxxxxx> wrote:
Hi,

   I am not running any application inside the HVM. But, after the migration, it always uses 100% cpu.

Xen : 4.0.1
Dom0: Ubuntu 10.04 Server & 2.6.32-bpo.4-xen-amd64
HVM : Ubuntu 10.04 Server 

Xentop Value before the Migration (Sample)

 NAME  STATE   CPU(sec) CPU(%)     MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%) VCPUS 
 Domain-0 -----r       6965      2.7            647168   15.7       no limit         n/a                 1   
 lucid_hvm -----r        567      0.5            2101220   50.9     2101248       50.9                1  

I am using the following command to perform the migration

$xm migrate --live lucid_hvm 192.168.100.11

Xentop Value after the Migration (Sample)

 NAME  STATE   CPU(sec) CPU(%)     MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%) VCPUS 
 Domain-0 -----r       3965      5.7            642163   15.7       no limit         n/a                 1   
 lucid_hvm -----r        569      100.0        2101220   50.9     2101248       50.9               1  


This is how HVM config file looks

   import os, re
   arch = os.uname()[4]
   
   kernel = "/usr/lib/xen/boot/hvmloader"
   
   builder='hvm'
   
   memory = 2048
   maxmem=2048
   shadow_memory = 8
  
  name = "lucid_hvm"
  
  vif = [ 'mac=00:B6:3E:E8:41:2E' ]
  disk = [ 'file:/vmimage/lucid_hvm.img,xvda,w', 'file:/vmimage/ubuntu-10.04.1-server-i386.iso,xvdc:cdrom,r' ]
 
  device_model = '/usr/lib/xen/bin/qemu-dm'
 
  boot="c"
  
  sdl=0
  vnc=1
  vnclisten="0.0.0.0"
  vncconsole=1
  vncpasswd='xyz'
  stdvga=0
  serial='pty'
  usbdevice='tablet'
  
 >
 on_reboot   = 'restart'
 on_crash    = 'restart'

Thanks,
cendhu

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.