only one CPU is detected when dom0 boots up
Harper,
You are right! The default build configuration linux-defconfig_xen0_x86_64/
linux-defconfig_xen0_x86_32 is UP, and we have manually changed the default
configure to make it SMP. We noticed that "uname -a" shows the dom0's kernel is
SMP, but the problem is that only one CPU is found when dom0 boots up.
With the same change, we know at least change set 10033 is OK to boot with multiple CPUs.
Ping
Quoted 39 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ryan Harper
Sent: 2006年5月25日 7:25
To: Zheng, Jeff
Cc: [email protected]
Subject: Re: [Xen-devel] only one CPU is detected when dom0 boots upQuoted 10 lines · Zheng, Jeff
When we changed build configure to:
KERNELS="linux-2.6-xen0 linux-2.6-xenU"
export KERNELSAfter reboot to this xen0, we found there is only one CPU in xen0. "uname -a" shows it's a SMP but "cat
/proc/cpuinfo" shows only one cpu.We see this issue on ChangeSet 10143 and 10151.
If we build with the default configure, we can see all cpus in xen0.
linux-defconfig_xen0_x86* does [1]not have
CONFIG_SMPset, so unless you've manually changed the linux config, you won't see more than one cpu.1. % grep
CONFIG_SMPbuildconfigs/linux-defconfig_xen0_x86_* buildconfigs/linux-defconfig_xen0_x86_32:#CONFIG_SMPis not set buildconfigs/linux-defconfig_xen0_x86_64:#CONFIG_SMPis not set--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253 T/L: 678-9253
[email protected]_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · Yu, Ping Y
Harper,
You are right! The default build configuration linux-defconfig_xen0_x86_64/
linux-defconfig_xen0_x86_32 is UP, and we have manually changed the default
configure to make it SMP. We noticed that "uname -a" shows the dom0's kernel is
SMP, but the problem is that only one CPU is found when dom0 boots up.
With the same change, we know at least change set 10033 is OK to boot with multiple CPUs.
Make sure CONFIG_HOTPLUG_CPU is also enabled. After having both CONFIG_SMP and CONFIG_HOTPLUG_CPU, try:
xm vcpu-set 0 2
replacing 2 with however many cpu's you think dom0 should have.
Signature · 5 lines
Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [email protected]