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

Re: [Xen-users] vcpus and the virtual machine manager

To: Mike Sievers <saturngeist@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] vcpus and the virtual machine manager
From: Diego Dave <diego.dave.s@xxxxxxxxx>
Date: Fri, 26 Aug 2011 10:44:02 -0300
Cc: xen-users <Xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 26 Aug 2011 06:44:48 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=E/mc7AmsTBfW6CaQz29F617o1UOW8k/tzGe7AFwWw2w=; b=P3xUfWcyJec0AeNDPGnZPi8TnCJN9ifcx2aake0Xj/1NNwgL9xTLQWnGFGpZikrF0e gCtrhtqwq84Dd6UsAUw3VL5ShfPxVuTxtMQtzwSCyFcvoFK6pgaIy5iCfum14DBmZjxM 61EikMMbV1KoCxWi+di48mgvoTR49t1uXSFBA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CALBpTaa9hXqrfMgaRiAyEWK2Z7Ht7-HFdu3u5TWpA412yC0mjw@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: <CALBpTabaC=dSAwotT=8wkdvmMrpdOSK4NbRjbPVniiVPCMrJUg@xxxxxxxxxxxxxx> <CAPbp-BmsZHweNK=Ky7aVKziZJJV=kCXE4HUW7t=S=Dj+3-3bOg@xxxxxxxxxxxxxx> <CALBpTaa9hXqrfMgaRiAyEWK2Z7Ht7-HFdu3u5TWpA412yC0mjw@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Mike,

The vcpus option should be together the cpus option, to assign each
vcpu to each phy cpu.

See one of my cfg files:

---------------------------------------------------------------------------------------------------------------------------------------------------------------
import os, re
arch = os.uname()[4]
if re.search('64', arch):
   arch_libdir = 'lib64'
else:
   arch_libdir = 'lib'

kernel = "/usr/lib/xen-default/boot/hvmloader"

builder='hvm'

memory = 8192

cpus = '6-7'

vcpus = 2

shadow_memory = 8

name = "correo"

pci = [ '02:00.0', '02:00.1' ]

disk = [ 'file:/home/correo.img,hda,w' ]

boot="dc"

vnc = 1
#vncunused=0
sdl = 0
vncconsole=1
vncdisplay=0
#vnclisten='0.0.0.0'
acpi = 1
apic = 1
device_model = '/usr/' + arch_libdir + '/xen-default/bin/qemu-dm'
stdvga=0
serial='pty'

usbdevice='tablet'

on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
---------------------------------------------------------------------------------------------------------------------------------------------------------------

Regards,

Diego



2011/8/26 Mike Sievers <saturngeist@xxxxxxxxxxxxxx>:
> Hi Diego,
>
> I wrote in my config: vcpus=4
> and I thought that the domU has the performance of 4 cpus.
>
> 1nd)
> xm vcpu-list | grep vm7
> vm7                              35     0     5   -b-     235.8 1,3,5,7
> vm7                              35     1     5   -b-     167.9 1,3,5,7
> vm7                              35     2     7   -b-      88.1 1,3,5,7
> vm7                              35     3     5   -b-      92.7 1,3,5,7
>
> 2nd)
> with cpus="4-7"
>
> xm vcpu-list | grep vm7
> vm7                              36     0     4   -b-       8.6 4-7
>
> More performance with the 2nd version?
>
> Best,
> Mike
>
> 2011/8/25 Diego Dave <diego.dave.s@xxxxxxxxx>
>>
>> Hi Mike,
>>
>> "vcpus" option set the virtual cpus, not the physical cpus to use.
>>
>> If your server have 8 cpus, they are numbered from 0 to 7.
>>
>> If you want to assign the last 4 physical cpus, you must add to the
>> DomU cfg file the option "cpus = '4-7'. Then you can see the assigning
>> using "xm vcpu-list" in command line.
>>
>> Is very good practice to manage the cpu assigning, it increases the
>> performance of VMs, and avoid problems when sharing cpus, like
>> freezing because of I/O events.
>>
>> Regards,
>>
>> Diego
>>
>> 2011/8/25 Mike Sievers <saturngeist@xxxxxxxxxxxxxx>:
>> > Hi List,
>> >
>> > with vcpus=4 I can choose the number of cpus.
>> >
>> > My virtual machine manager GUI shows:
>> > Maximum allocation: 2
>> > Host CPUs: 8
>> >
>> > How do I increase the maximum allocations?
>> >
>> > Best,
>> > Mike
>> >
>> > _______________________________________________
>> > Xen-users mailing list
>> > Xen-users@xxxxxxxxxxxxxxxxxxx
>> > http://lists.xensource.com/xen-users
>> >
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>

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