I''m using debian lenny with xen 3.2. I want to pin cpu 0 to dom0. My boot parameters are: boot/vmlinuz-2.6.26-2-xen-amd64 root=UUID=56288354-501c-48e7-80c1-1870898edf61 ro console=tty0 clocksource=jiffies dom0_max_vcpus=1 dom0_vcpus_pin but xm list still says: Name ID Mem VCPUs State Time(s) Domain-0 0 13068 16 and xm vcp-list: Name ID VCPU CPU State Time(s) CPU Affinity Domain-0 0 0 2 -b- 9.5 any cpu Domain-0 0 1 8 -b- 3.4 any cpu Domain-0 0 2 14 -b- 5.0 any cpu Domain-0 0 3 15 -b- 14.5 any cpu Domain-0 0 4 6 -b- 3.8 any cpu Domain-0 0 5 0 -b- 3.6 any cpu Domain-0 0 6 15 -b- 3.1 any cpu Domain-0 0 7 12 -b- 2.8 any cpu Domain-0 0 8 5 -b- 3.1 any cpu Domain-0 0 9 10 -b- 2.7 any cpu Domain-0 0 10 13 -b- 2.6 any cpu Domain-0 0 11 0 -b- 2.4 any cpu Domain-0 0 12 1 -b- 3.1 any cpu Domain-0 0 13 7 -b- 2.7 any cpu Domain-0 0 14 3 r-- 2.6 any cpu Domain-0 0 15 9 -b- 2.8 any cpu I think something goes worng. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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)” You might also need to fix the Dom0 Ram: dom0_mem=2048M (Put this in the kernel boot line) Rob -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Mauro Sent: 04 June 2010 11:40 To: xen-users Subject: [Xen-users] pin cpu 0 to dom0. I''m using debian lenny with xen 3.2. I want to pin cpu 0 to dom0. My boot parameters are: boot/vmlinuz-2.6.26-2-xen-amd64 root=UUID=56288354-501c-48e7-80c1-1870898edf61 ro console=tty0 clocksource=jiffies dom0_max_vcpus=1 dom0_vcpus_pin but xm list still says: Name ID Mem VCPUs State Time(s) Domain-0 0 13068 16 and xm vcp-list: Name ID VCPU CPU State Time(s) CPU Affinity Domain-0 0 0 2 -b- 9.5 any cpu Domain-0 0 1 8 -b- 3.4 any cpu Domain-0 0 2 14 -b- 5.0 any cpu Domain-0 0 3 15 -b- 14.5 any cpu Domain-0 0 4 6 -b- 3.8 any cpu Domain-0 0 5 0 -b- 3.6 any cpu Domain-0 0 6 15 -b- 3.1 any cpu Domain-0 0 7 12 -b- 2.8 any cpu Domain-0 0 8 5 -b- 3.1 any cpu Domain-0 0 9 10 -b- 2.7 any cpu Domain-0 0 10 13 -b- 2.6 any cpu Domain-0 0 11 0 -b- 2.4 any cpu Domain-0 0 12 1 -b- 3.1 any cpu Domain-0 0 13 7 -b- 2.7 any cpu Domain-0 0 14 3 r-- 2.6 any cpu Domain-0 0 15 9 -b- 2.8 any cpu I think something goes worng. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com 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@lists.xensource.com http://lists.xensource.com/xen-users
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.> You might also need to fix the Dom0 Ram: > dom0_mem=2048M (Put this in the kernel boot line)Again, wrong place to set this. The following options in "grub.conf" works on my system: -- title Xen 3.4.2 - Linux 2.6.29-r4 root (hd0,0) kernel /boot/xen.gz dom0_mem=768M console=vga dom0_max_vcpus=1 dom0_vcpus_pin module (hd0,0)/linux-2.6.29-xen-r4 root=/dev/md3 netloop.nloopbacks=32 -- Pinning dom0 to a single VCPU needs to be done with the XEN-part, the kernel can not do this. --- Joost Roeleveld _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 4 June 2010 13:12, Robert Dunkley <Robert@saq.co.uk> 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)” > > You might also need to fix the Dom0 Ram: > dom0_mem=2048M (Put this in the kernel boot line)Why I''ve to set dom0 mem? I''ve set (dom0-cpus 1) but I''ve noticed a little problem: when I shutdown virtual machines the command xm list still says that there are active domains. If I put (dom0-cpus 0) the command xm list doesn''t show any active domain if I shutdown my virtual machines. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 4 June 2010 13:23, J. Roeleveld <joost@antarean.org> 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@lists.xensource.com http://lists.xensource.com/xen-users
On Friday 04 June 2010 13:27:39 Mauro wrote:> On 4 June 2010 13:23, J. Roeleveld <joost@antarean.org> 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)I would leave this setting as it is. Did you manage to test the grub-changes? -- Joost _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Mauro Sent: 04 June 2010 12:28 To: J. Roeleveld Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] pin cpu 0 to dom0. On 4 June 2010 13:23, J. Roeleveld <joost@antarean.org> 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@lists.xensource.com 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@lists.xensource.com http://lists.xensource.com/xen-users
On Friday 04 June 2010 13:24:42 Mauro wrote:> On 4 June 2010 13:12, Robert Dunkley <Robert@saq.co.uk> 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)” > > > > You might also need to fix the Dom0 Ram: > > dom0_mem=2048M (Put this in the kernel boot line) > > Why I''ve to set dom0 mem?It''s generally best-practice to set the total available memory for dom0 to a fixed value. I have seen strange errors when i didn''t set this and the dom0 is generally only there for management purposes and isn''t for heavy loads.> I''ve set (dom0-cpus 1) but I''ve noticed a little problem: when I > shutdown virtual machines the command xm list still says that there > are active domains.How many active domains?> If I put (dom0-cpus 0) the command xm list doesn''t show any active > domain if I shutdown my virtual machines.As I mentioned in my previous email, please do not use the setting in the "xend-config.sxp" file. This is ignored during boot. -- Joost _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 4 June 2010 13:39, J. Roeleveld <joost@antarean.org> wrote:>> I''ve (dom0-min-mem 196) > > I would leave this setting as it is. > > Did you manage to test the grub-changes?Yes, now it works thank you very much. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 4 June 2010 13:42, J. Roeleveld <joost@antarean.org> wrote:> On Friday 04 June 2010 13:24:42 Mauro wrote: >> On 4 June 2010 13:12, Robert Dunkley <Robert@saq.co.uk> 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)” >> > >> > You might also need to fix the Dom0 Ram: >> > dom0_mem=2048M (Put this in the kernel boot line) >> >> Why I''ve to set dom0 mem? > > It''s generally best-practice to set the total available memory for dom0 to a > fixed value. > I have seen strange errors when i didn''t set this and the dom0 is generally > only there for management purposes and isn''t for heavy loads. > >> I''ve set (dom0-cpus 1) but I''ve noticed a little problem: when I >> shutdown virtual machines the command xm list still says that there >> are active domains. > > How many active domains?only 3 active domains. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users