[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] understanding xens use of smp



Quoting Tom Brown <tbrown@xxxxxxxxxxxxx>:

On Sat, 1 Oct 2005, Ted Kaczmarek wrote:


On Sat, 2005-10-01 at 12:58 -0400, Brock Palen wrote:
> Im trying to find some clarification of xen-2.0.7 use of smp machines,
> the output from 'xm dmesg' shows cpus0 and cpu1, and the FAQ says why dom0 > doesnt show the second cpu, how do i know that my single domU is bound to cpu1
> ?

2.0.7 does not support SMP domU's.

That wasn't his question.

xm list will show which domains are running on which CPUs. Unfortunately,
if you have hyperthreading enabled, you need to know which cpus map to
which threads on which cores... otherwise you can easily have two doms
running on opposite threads on the same core, and the other core being
idle :(  [in fact that is the default]

I don't have the official CPU numbering in my head, but I believe a dual
CPU system with hyperthreading enabled will have cpu's 0 and 1 on the two
threads of the first core, and 2 and 3 on the threads of the second
core... so if you only have dom0 and one domU running, you would want to

I have from xm list
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----   7543.7
mls                1      499    1  -b---   4764.2    9601

Its a duel P3 so no hyperthreading, and xm info shoes only 1 hypterthread per
cpu, and 2 cores,  so domain mls (domU) is using the second cpu, thats great
thankyou!


 xm pincpu domUname 2

or put cpu=2 into the config file for the domU

-Tom


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






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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.