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-devel] Re: how to congure dom0 to 1G, and domU to 1G

To: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: [Xen-devel] Re: how to congure dom0 to 1G, and domU to 1G
From: lei yang <yanglei.fage@xxxxxxxxx>
Date: Thu, 20 May 2010 16:59:00 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Xen Mailing List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 20 May 2010 02:00:31 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Yk+Mr0J6TNFnIKu0G8m1pax/hvQZWiXVb/4o4HfXEMQ=; b=F292wZ/te7xAQHZijfac8MukBriaOvMzU+C3Dtf5BvDv4RCxQ6h7JVSD/OpP0GpBth Ag2jaRtzjp+FHilJ026zGhBItphncjhglJBaf8WAF6kypmA7GKjO4gT7fVGXUvEJ9UMs a5fgs4A0GJ8YLlbcrokKFV8BqmBc+RFc3V+I4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=AoSUgdkStxSo9pqNT8x/QtzQ5Bby9GBmhbIalajXAYyxVfG6GSgX5HkFnPyC4DK7Kt G+Kc7T1C28/XEOkvR/wJI/6WoOst4SHmhIXbIYMLIG8CJQ0t0mt4I3EFSsSVHh5jMwIG ll0NVZC2+NvrUZyidZw4uIBQ1fMEhTGVEBfaM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100520060420.GQ17817@xxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTikBLt0eA66OgcHxdZDtQvKM_PI_VdG4ks3rvzIW@xxxxxxxxxxxxxx> <20100520060420.GQ17817@xxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx


On Thu, May 20, 2010 at 2:04 PM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
On Thu, May 20, 2010 at 01:59:16PM +0800, lei yang wrote:
>    Hi Experts,
>

I removed xen-devel from CC since this is a very basic question,
and not related to Xen development.

>    I want to configure dom0 to 1g and dom0 to 1g ?
>
>    I know dom0_mem=1024M can do it for dom0, how about domU?
>

Uhm.. for domU you specify:

memory = 1024

in the domU configuration file (/etc/xen/<guest>).

>    My machine has 8 cores
>    how to  specify xen to 4 cpus?
>

Xen is the *hypervisor*, so it has to use ALL the physical CPUs/cores,
to be able to schedule vcpus!!


Do you mean we can't specify xen to 4 cpus, and if we specify "nosmp" what does it mean
it will use *just* one physical core to schedule vcpus? and dom0 and domU just can use one core?

 
>    how to specify dom0 4 cpus
>

dom0_max_vcpus=4 for xen.gz in grub.conf.
 
 Specified options "dom0_max_vcpus=2" and "dom0_vcpus_pin".
Specified option "dom0_max_vcpus=2".

what's the difference? which performance will be higher?

Thanks
Lei


>    how to specify domU 5 cpus ?
>

vcpus = 5

>    can we specify dom0 to 1 cpu, at same time domU to 6 cpu
>

dom0_max_vcpus=1 dom0_vcpus_pin

in grub.conf for xen.gz.

>    can we specify nosmp to xen, and then specify dom0 cpu > 1?
>

No.

See: http://wiki.xensource.com/xenwiki/XenBestPractices
and: http://wiki.xensource.com/xenwiki/XenCommonProblems

-- Pasi

>
>
>    Thanks
>    Lei
>
>    --
>    "We learn from failure, not from success!"



--
"We learn from failure, not from success!"
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel