Hello! I run Xen environment on Gentoo (built following how-to on Gentoo Wiki - http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo). It is Xen 3.0.2 with 2.6.16.28 kernel. It is a server with two Xeons. Xen "knows" all four cores (at least he sais so in /proc/cpuinfo and top). Three DomUs run there. I have noticed that all three DomUs use just only first core of first CPU. Output from top when all three DomUs are "under pressure": Cpu0 : 0.0% us, 0.7% sy, 0.0% ni, *0.0% id*, 97.3% wa, 1.0% hi, 1.0% si Cpu1 : 0.0% us, 0.0% sy, 0.0% ni, *100.0% id*, 0.0% wa, 0.0% hi, 0.0% si Cpu2 : 0.0% us, 0.0% sy, 0.0% ni, *100.0% id*, 0.0% wa, 0.0% hi, 0.0% si Cpu3 : 0.0% us, 0.0% sy, 0.0% ni, *100.0% id*, 0.0% wa, 0.0% hi, 0.0% si Is there som way to tell Xen to distribute the load to other cores? Or to tell what DomU should use what CPU? I tried this with different setting of cpus variable (including cpus="") in the configuration of DomUs but with no effect. I would be happy if someone could explain me what I should do. Thanks! -- Best regards! Robert Valík Research & Development Dept. VisionMedia s.r.o. Kopčianska 20 851 01 Bratislava _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
El lunes 23 de octubre del 2006 a las 09:06:05, Robert Valik escribió:> Hello!Hi Robert.> Is there som way to tell Xen to distribute the load to other cores? Or > to tell what DomU should use what CPU? I tried this with different > setting of cpus variable (including cpus="") in the configuration of > DomUs but with no effect.You must to use cpu and vcpu variables. vcpu tell to Xen how much vcpus going to use. Then, xm vcpu-list will list vcpu information for a specific domain and its affinity with physical cpus. For more information: man xm(8), man xmdomain.cfg(5). Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
El lunes 23 de octubre del 2006 a las 07:32:47, Daniel Bareiro escribió:> You must to use cpu and vcpu variables.Sorry, vcpus is the correct name. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Daniel, thanks for your answer. And thanks to all recomandations to read the fine manual. I did it and I wouldn''t ask if it would help me :) I relied on default values... # the number of cpus guest platform has, default=1 vcpus=1 # List of which CPUS this domain is allowed to use, default Xen picks cpus = "" # leave to Xen to pick After using xm vcpu-list I got something like this: Name ID VCPU CPU State Time(s) CPU Affinity Datamaster 42 0 1 -b- 546.6 any cpu Domain-0 0 0 0 r-- 3099.1 any cpu Domain-0 0 1 1 -b- 453.5 any cpu Domain-0 0 2 2 -b- 141.7 any cpu Domain-0 0 3 3 -b- 56.0 any cpu Merkur 22 0 3 -b- 14696.0 any cpu Testoo 48 0 3 -b- 15.5 any cpu So Xen uses every CPU. Top (under Dom0) says still something different - only one CPU is not 100% idle. Pleas correct me if I am wrong. When I use top on Dom0 - it sees only own load on CPUs and doesn''t see DomUs load. So it seems to it like the CPUs are idle. In fact they are not. So to see real load I *must* use xentop and I must not use top. Correct? If yes than my question was just small misunderstanding :) Daniel Bareiro wrote:> El lunes 23 de octubre del 2006 a las 09:06:05, > Robert Valik escribió: > >> Hello! > > Hi Robert. > >> Is there som way to tell Xen to distribute the load to other cores? Or >> to tell what DomU should use what CPU? I tried this with different >> setting of cpus variable (including cpus="") in the configuration of >> DomUs but with no effect. > > You must to use cpu and vcpu variables. vcpu tell to Xen how much vcpus > going to use. Then, xm vcpu-list will list vcpu information for a > specific domain and its affinity with physical cpus. > > For more information: man xm(8), man xmdomain.cfg(5). > > Regards, > Daniel > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Best regards! Robert Valík Research & Development Dept. VisionMedia s.r.o. Kopčianska 20 851 01 Bratislava _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tuesday, 24 October 2006 09:06:57 +0200, Robert Valik wrote:> Hi Daniel,Hi Robert.> I relied on default values...> # the number of cpus guest platform has, default=1 > vcpus=1If vcpus=1, then the domU will be assigned to only one virtual cpu. Try with vcpus=2. With cpus="0,3" we restrict the domU execution on 0 and 3 physical cpus. Regards, Daniel -- Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Etch - Linux user #188.598 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users