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: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] vcpus and the virtual machine manager
From: Mike Sievers <saturngeist@xxxxxxxxxxxxxx>
Date: Wed, 31 Aug 2011 09:36:20 +0200
Delivery-date: Wed, 31 Aug 2011 00:37:34 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DRxs9zfv5Ou5Pcgb/U7OgL6lJ8ADqBgOqGmuVn6BeGg=; b=cAIxeTLj4sSqeIp7dw13hQkxOD6+RQcQIiW6kRzs+6tE3G4v9Yh85GWYvosPDNSSfI 8tiZr/NtuF4HJsMwu4MxpmaiTKMudIuFHCuqIUMZVceWyV8xeZ5oLazc6H0eGIroKOkn nL2C/k8MM+Ba1ojqVIosDXyyj3+BciLhf8pZo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAPbp-BkrC5rTemur55D_KUp_ETW7jWami5e-6yEV13UnfhUhbQ@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> <CAPbp-BkrC5rTemur55D_KUp_ETW7jWami5e-6yEV13UnfhUhbQ@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
OK, thanks.

2011/8/26 Diego Dave <diego.dave.s@xxxxxxxxx>
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'

> > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------

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
<Prev in Thread] Current Thread [Next in Thread>