Hello, We are students of Computer Science and we are doing some experiments with XCP, we have a server with 2 xeon processors each one containing 4 physical cores with HT, but the XCP recognizes 16 cores (8 physical + 8 virtual) but uses only 4 (cpu 0,1,2 and 3). When accessing "/ proc / cpuinfo" are listed only 4 cores, but "/ sys / devices / system / cpu" lists 16 cores but the cpu file "online" for 4 to 15 cpu''s is set to "0". making: echo 1> / sys/devices/system/cpu/cpu4/online . . . echo 1> / sys/devices/system/cpu/cpu15/online all cores become activated. But when the server is restarted only cpus 0,1,2,3 are active. Is this a bug or a config error? Thanks.
Maybe the problem be compitibilty of processor WITH XCP. BRuno sevem Sent from my iPhone On 01/03/2012, at 13:57, Leonardo Pereira <leoudimg@gmail.com> wrote:> making:
The processor is Xeon E5620. Atenciosamente, Leonardo Em 1 de março de 2012 14:15, <aspenbr@gmail.com> escreveu:> Maybe the problem be compitibilty of processor WITH XCP. > > BRuno sevem > > Sent from my iPhone > > On 01/03/2012, at 13:57, Leonardo Pereira <leoudimg@gmail.com> wrote: > >> making:
On my servers occurs the same. Only processors 0,1,2,3 are anabled. But Xencenter show all processors. Em 1 de março de 2012 13:57, Leonardo Pereira <leoudimg@gmail.com> escreveu:> Hello, > > We are students of Computer Science and we are doing some > experiments with XCP, we have a server with 2 xeon processors each > one containing 4 physical cores with HT, but the XCP recognizes 16 > cores (8 physical + 8 virtual) but uses only 4 (cpu 0,1,2 and 3). > When accessing "/ proc / cpuinfo" are listed only 4 cores, but > "/ sys / devices / system / cpu" lists 16 cores but the cpu file > "online" for 4 to 15 cpu''s is set to "0". > > making: > echo 1> / sys/devices/system/cpu/cpu4/online > . > . > . > echo 1> / sys/devices/system/cpu/cpu15/online > > all cores become activated. > But when the server is restarted only cpus 0,1,2,3 are active. > > Is this a bug or a config error? > > Thanks. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >-- DJ ROGER www.bsbblack.com www.facebook.com/deejayroger twitter.com/djrogerbsbblack <http://www.tisolution.net> _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
My processors is Xeon E5645, E5610, E5630. Em 1 de março de 2012 14:26, Leonardo Pereira <leoudimg@gmail.com> escreveu:> The processor is Xeon E5620. > > Atenciosamente, > > Leonardo > > > > Em 1 de março de 2012 14:15, <aspenbr@gmail.com> escreveu: > > Maybe the problem be compitibilty of processor WITH XCP. > > > > BRuno sevem > > > > Sent from my iPhone > > > > On 01/03/2012, at 13:57, Leonardo Pereira <leoudimg@gmail.com> wrote: > > > >> making: > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >-- DJ ROGER www.bsbblack.com www.facebook.com/deejayroger twitter.com/djrogerbsbblack <http://www.tisolution.net> _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
It is neither a bug or a configuration error; XCP, like current versions of XenServer, only assigns 4 vCPUs to dom0 by default. There are very few scenarios where more dom0 vCPUs are beneficial. Regards, Trolle On Thu, Mar 1, 2012 at 11:57 AM, Leonardo Pereira <leoudimg@gmail.com>wrote:> Hello, > > We are students of Computer Science and we are doing some > experiments with XCP, we have a server with 2 xeon processors each > one containing 4 physical cores with HT, but the XCP recognizes 16 > cores (8 physical + 8 virtual) but uses only 4 (cpu 0,1,2 and 3). > When accessing "/ proc / cpuinfo" are listed only 4 cores, but > "/ sys / devices / system / cpu" lists 16 cores but the cpu file > "online" for 4 to 15 cpu''s is set to "0". > > making: > echo 1> / sys/devices/system/cpu/cpu4/online > . > . > . > echo 1> / sys/devices/system/cpu/cpu15/online > > all cores become activated. > But when the server is restarted only cpus 0,1,2,3 are active. > > Is this a bug or a config error? > > Thanks. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
2012/3/1 DJ Roger <djroger.abalando@gmail.com>:> On my servers occurs the same. Only processors 0,1,2,3 are anabled. But > Xencenter show all processors.If You see the CPUs in XenCenter, but not in dom0, then my guess is XCP only uses 4 CPUs for dom0. Check your Xen command line in the boot config. Normally 4 CPUs should be enough to do dom0''s work.
2012/3/1 DJ Roger <djroger.abalando@gmail.com>:> My processors is Xeon E5645, E5610, E5630. > > Em 1 de março de 2012 14:26, Leonardo Pereira <leoudimg@gmail.com> escreveu: > >> The processor is Xeon E5620. >> >> Atenciosamente, >> >> Leonardo >> >> >> >> Em 1 de março de 2012 14:15, <aspenbr@gmail.com> escreveu: >> > Maybe the problem be compitibilty of processor WITH XCP. >> > >> > BRuno sevem >> > >> > Sent from my iPhone >> > >> > On 01/03/2012, at 13:57, Leonardo Pereira <leoudimg@gmail.com> wrote: >> > >> >> making: >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users > > > > > -- > DJ ROGER > www.bsbblack.com > www.facebook.com/deejayroger > twitter.com/djrogerbsbblack > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-usersHi, Leandro: Are you sure it only recognizes 4? Did you tried starting up a VM with, let''s say, 8 processors? Same thing with memory. I guess Dom0 does NOT shows all memory available, as it''s a small (minimum?) OS just to manage... Regards. -- http://boris.insert-coin.org AADB 52A9 8C6B 1C73 D0C4 570E 952C 2DC1 D1D0 A4E7 gpg --keyserver pgp.mit.edu --recv-key D1D0A4E7
I can see all the cpus in the openxenmanager and in the dom0 too like i says in: When accessing "/ proc / cpuinfo" are listed only 4 cores, but "/ sys / devices / system / cpu" lists 16 cores but the cpu file "online" for 4 to 15 cpu''s is set to "0". Em 1 de março de 2012 14:39, Florian Heigl <florian.heigl@gmail.com> escreveu:> 2012/3/1 DJ Roger <djroger.abalando@gmail.com>: >> On my servers occurs the same. Only processors 0,1,2,3 are anabled. But >> Xencenter show all processors. > > If You see the CPUs in XenCenter, but not in dom0, then my guess is > XCP only uses 4 CPUs for dom0. Check your Xen command line in the boot > config. > Normally 4 CPUs should be enough to do dom0''s work. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users
I''m getting the impression you''re confused about what dom0 actually does; Xen is a Type-1 hypervisor, meaning DomUs don''t run "in" dom0, and dom0 is really just another VM, albeit one with special privileges. You cannot use "standard" linux monitoring tools in dom0 to find out usage of host resources, since those tools will only show you what goes on within dom0, and as stated above, dom0 is just another domU along with any other domUs that happen to be running on the host. CPUs don''t have to be available or online in dom0 for the hypervisor or other guest domains to put them to use. To see the actual host resource usage, you need to use the XCP management commands or xen-aware monitoring utilities like xentop. Regards, Trolle On Thu, Mar 1, 2012 at 12:40 PM, Leonardo Pereira <leoudimg@gmail.com>wrote:> This affects the performance? Because mpstat shows the cpus 4...15 isn''t > used. > > > Em 1 de março de 2012 14:36, Trolle Selander > <trolle.selander@gmail.com> escreveu: > > It is neither a bug or a configuration error; XCP, like current versions > of > > XenServer, only assigns 4 vCPUs to dom0 by default. There are very few > > scenarios where more dom0 vCPUs are beneficial. > > > > Regards, > > Trolle > > > > On Thu, Mar 1, 2012 at 11:57 AM, Leonardo Pereira <leoudimg@gmail.com> > > wrote: > >> > >> Hello, > >> > >> We are students of Computer Science and we are doing some > >> experiments with XCP, we have a server with 2 xeon processors each > >> one containing 4 physical cores with HT, but the XCP recognizes 16 > >> cores (8 physical + 8 virtual) but uses only 4 (cpu 0,1,2 and 3). > >> When accessing "/ proc / cpuinfo" are listed only 4 cores, but > >> "/ sys / devices / system / cpu" lists 16 cores but the cpu file > >> "online" for 4 to 15 cpu''s is set to "0". > >> > >> making: > >> echo 1> / sys/devices/system/cpu/cpu4/online > >> . > >> . > >> . > >> echo 1> / sys/devices/system/cpu/cpu15/online > >> > >> all cores become activated. > >> But when the server is restarted only cpus 0,1,2,3 are active. > >> > >> Is this a bug or a config error? > >> > >> Thanks. > >> > >> _______________________________________________ > >> Xen-users mailing list > >> Xen-users@lists.xen.org > >> http://lists.xen.org/xen-users > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
The dom0 does not need all of the CPUs or all of the memory. The only thing that is important is whether or not the hypervisor can see the resources and assign them to various domU. Use XenCenter or OpenXenManager to make sure the hypervisor can see the resources. Remember, the dom0 is not the hypervisor. The dom0 is simply one of the guests with special privileges and duties. This is often a source of confusion for new Xen users. The domU don''t run inside the dom0. The dom0 and domU run inside the hypervisor. -----Original Message----- From: xen-users-bounces@lists.xen.org [mailto:xen-users-bounces@lists.xen.org] On Behalf Of Leonardo Pereira Sent: Thursday, March 01, 2012 10:58 AM To: xen-users@lists.xen.org Subject: [Xen-users] Bug or cofiguration error? Hello, We are students of Computer Science and we are doing some experiments with XCP, we have a server with 2 xeon processors each one containing 4 physical cores with HT, but the XCP recognizes 16 cores (8 physical + 8 virtual) but uses only 4 (cpu 0,1,2 and 3). When accessing "/ proc / cpuinfo" are listed only 4 cores, but "/ sys / devices / system / cpu" lists 16 cores but the cpu file "online" for 4 to 15 cpu''s is set to "0". making: echo 1> / sys/devices/system/cpu/cpu4/online . . . echo 1> / sys/devices/system/cpu/cpu15/online all cores become activated. But when the server is restarted only cpus 0,1,2,3 are active. Is this a bug or a config error? Thanks. _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
But xentop only shows 4 (VCPUS) how can i measure the cpu consumption?? Atenciosamente, Leonardo Em 1 de março de 2012 15:49, <admin@xenhive.com> escreveu:> The dom0 does not need all of the CPUs or all of the memory. The only thing > that is important is whether or not the hypervisor can see the resources and > assign them to various domU. Use XenCenter or OpenXenManager to make sure > the hypervisor can see the resources. > > Remember, the dom0 is not the hypervisor. The dom0 is simply one of the > guests with special privileges and duties. This is often a source of > confusion for new Xen users. The domU don''t run inside the dom0. The dom0 > and domU run inside the hypervisor. > > -----Original Message----- > From: xen-users-bounces@lists.xen.org > [mailto:xen-users-bounces@lists.xen.org] On Behalf Of Leonardo Pereira > Sent: Thursday, March 01, 2012 10:58 AM > To: xen-users@lists.xen.org > Subject: [Xen-users] Bug or cofiguration error? > > Hello, > > We are students of Computer Science and we are doing some > experiments with XCP, we have a server with 2 xeon processors each > one containing 4 physical cores with HT, but the XCP recognizes 16 > cores (8 physical + 8 virtual) but uses only 4 (cpu 0,1,2 and 3). > When accessing "/ proc / cpuinfo" are listed only 4 cores, but > "/ sys / devices / system / cpu" lists 16 cores but the cpu file > "online" for 4 to 15 cpu''s is set to "0". > > making: > echo 1> / sys/devices/system/cpu/cpu4/online > . > . > . > echo 1> / sys/devices/system/cpu/cpu15/online > > all cores become activated. > But when the server is restarted only cpus 0,1,2,3 are active. > > Is this a bug or a config error? > > Thanks. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users
On 1 March 2012 19:49, <admin@xenhive.com> wrote:> The dom0 does not need all of the CPUs or all of the memory. The only thing > that is important is whether or not the hypervisor can see the resources and > assign them to various domU. Use XenCenter or OpenXenManager to make sure > the hypervisor can see the resources. > > Remember, the dom0 is not the hypervisor. The dom0 is simply one of the > guests with special privileges and duties. This is often a source of > confusion for new Xen users. The domU don''t run inside the dom0. The dom0 > and domU run inside the hypervisor. >Excellent explanation. Very helpful to someone who''s staring with Xen.
Yes, the admin is correct... now i can measure the real CPU utilisation with the command "xe host-cpu-param-get uuid=... param-name=utilisation" Thanks for your help. Leonardo Em 8 de março de 2012 10:20, eva <evammg@gmail.com> escreveu:> On 1 March 2012 19:49, <admin@xenhive.com> wrote: >> The dom0 does not need all of the CPUs or all of the memory. The only thing >> that is important is whether or not the hypervisor can see the resources and >> assign them to various domU. Use XenCenter or OpenXenManager to make sure >> the hypervisor can see the resources. >> >> Remember, the dom0 is not the hypervisor. The dom0 is simply one of the >> guests with special privileges and duties. This is often a source of >> confusion for new Xen users. The domU don''t run inside the dom0. The dom0 >> and domU run inside the hypervisor. >> > > Excellent explanation. Very helpful to someone who''s staring with Xen. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users