WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: HVM CPU usage 100% after the migration
From: cendhu <cendhu@xxxxxxxxx>
Date: Fri, 24 Sep 2010 18:22:22 +0530
Delivery-date: Fri, 24 Sep 2010 05:54:07 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=IS6ukembWPxyocfgb11mvhzhbEGSwK9TAqdKlIvUju0=; b=vTdBdHt1rmN4PlUlWoZxl3xVX6mitgao3FCRHb8+bRDJJVU5dHjA70WGc60+2RxZV8 dBpad12o+wGnOMg7UbnnDSCVm+7QfJ7iPjDmI7ZRmfgMAIDwNf0eJdhtc3TWkyth46F7 mBh2tg+KZXoilKnvR9xMTdy0H6PRe3WiZ+Oj0=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTin=fLeUvbcy6q8ZfkyabaUUqEGrgZreRv0rBaM6@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTin=fLeUvbcy6q8ZfkyabaUUqEGrgZreRv0rBaM6@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>