NetBSD-Bugs archive

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

Re: port-xen/42441: DOM0 and DOMU work with only one cpu



The following reply was made to PR port-xen/42441; it has been noted by GNATS.

From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: port-xen-maintainer%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost,
        netbsd-bugs%NetBSD.org@localhost
Subject: Re: port-xen/42441: DOM0 and DOMU work with only one cpu
Date: Fri, 11 Dec 2009 12:43:15 +0100

 On Fri, Dec 11, 2009 at 09:50:00AM +0000, 
petea_garstea%fincombank.com@localhost wrote:
 > DOM-0:
 > NetBSD NetBSD 5.0.1 NetBSD 5.0.1 (XEN3_DOM0) #0: Thu Dec  3 17:56:47 EET 
 > 2009  peter@NetBSD:/usr/src/sys/arch/i386/compile/XEN3_DOM0 i386
 > 
 > DOMU
 > NetBSD  5.0.1 NetBSD 5.0.1 (XEN3_DOMU) #0: Tue Dec  8 21:21:30 EET 2009  
 > peter@NetBSD:/usr/objdir/sys/arch/i386/compile/XEN3_DOMU i386
 > >Description:
 > hello!
 > i updated the system and install the:
 > xentools3-3.1.4nb4
 > xenkernel3-3.1.4nb3
 > 
 > i have the system with 4 cpu and configured DOM0 to use only one cpu
 > (dom0-cpus 1) - in xend config file, and DOMU with the 1,2,3 cpus, it doesnt 
 > work, then i tried to do it manualy with the following commands:
 > 
 > DOM0:
 > xm vcpu-set 0 1
 > xm vcpu-pin 0 0 0
 > 
 > DOMU:
 > xm vcpu-set 2 3
 > xm vcpu-pin 2 0 1
 > xm vcpu-pin 2 1 2
 > xm vcpu-pin 2 2 3
 > 
 > xm vcpu-list
 > Name                                ID  VCPU   CPU State   Time(s) CPU 
 > Affinity
 > Domain-0                             0     0     0   r--     741.2 0
 > Domain-0                             0     1     -   --p       0.0 0
 > Domain-0                             0     2     -   --p       0.0 0
 > Domain-0                             0     3     -   --p       0.0 0
 > NetBSD-STABLE-DOMU                   2     0     1   -b-      12.4 1
 > NetBSD-STABLE-DOMU                   2     1     -   --p       0.0 2
 > NetBSD-STABLE-DOMU                   2     2     -   --p       0.0 3
 > 
 > So i see that dom0 has 4 vcpu but i gave to it only one vcpu, The domu has 
 > been created with the 3 vcpu and useses cpu 1,2,3 but second and third vcpu 
 > have pause state that means domu doesnt use it
 > 
 > xm list
 > Name                                        ID   Mem VCPUs      State   
 > Time(s)
 > Domain-0                                     0   256     1     r-----    
 > 744.0
 > NetBSD-STABLE-DOMU                           2   512     1     -b----     
 > 14.2
 > 
 > My conclusion is:
 > Im doing something wrong
 > or the hyperviosion is not working correctly. 
 
 NetBSD/Xen doesn't support SMP yet at the domains level (SMP will be used by
 the hypervisor to schedule different domains to different CPUs)
 
 -- 
 Manuel Bouyer <bouyer%antioche.eu.org@localhost>
      NetBSD: 26 ans d'experience feront toujours la difference
 --
 


Home | Main Index | Thread Index | Old Index