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] pin cpu 0 to dom0.

To: "Mauro" <mrsanna1@xxxxxxxxx>,"J. Roeleveld" <joost@xxxxxxxxxxxx>
Subject: RE: [Xen-users] pin cpu 0 to dom0.
From: "Robert Dunkley" <Robert@xxxxxxxxx>
Date: Fri, 4 Jun 2010 12:41:56 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 04 Jun 2010 04:45:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: <AANLkTimj750o6z118GKV5plVy_S41HsZ2sp8YDrcHA-b@xxxxxxxxxxxxxx><C1EAC9C5E752D24C968FF091D446D82360D3FE@ALTERNATEREALIT><201006041323.46009.joost@xxxxxxxxxxxx> <AANLkTilj7uJOk12cqE-JnZOfDvM26_tAwiOyRldGDzZ-@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcsD2biuCDivR1LvQrOvbv227ANSjQAAHX6Q
Thread-topic: [Xen-users] pin cpu 0 to dom0.
Maybe things are different in Debian but the following does correctly pin the 
first 2 cores to Dom0 for me:

Grub.conf:
title CentOS (2.6.18-92.1.6.el5xen331)
        root (hd0,0)
        kernel /xen.gz-3.3.1 apic_verbosity=debug dom0_mem=4096M 
dom0_max_vcpus=2 acpi=on numa=on cpufreq=dom0-kernel
        module /vmlinuz-2.6.18-92.1.6.el5xen ro root=/dev/VolGroup00/LogVol00
        module /initrd-2.6.18-92.1.6.el5xen.img

xend-config.sxp:
(dom0-min-mem 0)
(dom0-cpus 2)

xm vcpu-list:
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
Domain-0                             0     0     0   -b-  3035828.2 0
Domain-0                             0     1     1   r--  1384542.3 1


The min-mem setting disables dom0 memory ballooning, its definitely recommended 
in NUMA type configs.


Rob



-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Mauro
Sent: 04 June 2010 12:28
To: J. Roeleveld
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] pin cpu 0 to dom0.

On 4 June 2010 13:23, J. Roeleveld <joost@xxxxxxxxxxxx> wrote:
> On Friday 04 June 2010 13:12:40 Robert Dunkley wrote:
>> Hi,
>>
>> First try setting the option in xend-config:
>> vi /etc/xen/xend-config.sxp  -  set “(dom0-min-mem 0)” and set “(dom0-cpus
>>  1)”
>
> NOTE: Please ignore this advice.
>
> The setting in the "xend-config.sxp" is ignored. (Tried it and it doesn't 
> work)
> Setting “(dom0-min-mem 0)” is not a good idea, this allows the dom0 to loose
> ALL memory.

I've (dom0-min-mem 196)

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

The SAQ Group

Registered Office: 18 Chapel Street, Petersfield, Hampshire GU32 3DZ
SAQ is the trading name of SEMTEC Limited. Registered in England & Wales
Company Number: 06481952

http://www.saqnet.co.uk AS29219

SAQ Group Delivers high quality, honestly priced communication and I.T. 
services to UK Business.

Broadband : Domains : Email : Hosting : CoLo : Servers : Racks : Transit : 
Backups : Managed Networks : Remote Support.

ISPA Member


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