Dear All, I had a Centos 5.8 server running xen 3.1.2-194.el5 for quite sometime and working fine i have just added a second cpu but am confused since the different utilities to check for the presence of the new installed CPU is conflicting what i mean is running cat /proc/cpuinfo shows one cpu ------ processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 44 model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz stepping : 2 cpu MHz : 2393.998 cache size : 12288 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu tsc msr pae cx8 apic mtrr cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc ida arat pni est ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm bogomips : 5987.92 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: -------------------- xm info show 2 cpus that is 2*8 -------------------- [root@kilaw ~]# xm info host : kilaw.kilaw.edu.kw release : 2.6.18-194.el5xen version : #1 SMP Fri Apr 2 15:34:40 EDT 2010 machine : x86_64 nr_cpus : 16 nr_nodes : 1 sockets_per_node : 2 cores_per_socket : 4 threads_per_core : 2 cpu_mhz : 2394 hw_caps : bfebfbff:2c100800:00000000:00000140:029ee3ff:00000000:00000001 total_memory : 32755 free_memory : 9285 node_to_cpu : node0:0-15 xen_major : 3 xen_minor : 1 xen_extra : .2-194.el5 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 xen_pagesize : 4096 platform_params : virt_start=0xffff800000000000 xen_changeset : unavailable cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-48) cc_compile_by : mockbuild cc_compile_domain : centos.org cc_compile_date : Fri Apr 2 14:50:53 EDT 2010 xend_config_format : 2 ---------------- xm top shows 2 ------------------ 5 domains: 1 running, 4 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown Mem: 33541220k total, 24033108k used, 9508112k free CPUs: 16 @ 2394MHz NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBD S VBD_OO VBD_RD VBD_WR SSID Domain-0 -----r 67011 1.9 4194560 12.5 no limit n/a 1 6 96323953 2594290 0 0 0 0 0 mail --b--- 135648 9.1 6299524 18.8 8404992 25.1 4 1 0 7 1 0 0 0 0 mailscanner --b--- 39610 4.3 4202372 12.5 8404992 25.1 2 1 0 15 1 0 0 0 0 web --b--- 33976 3.5 4202372 12.5 8404992 25.1 2 1 1672761 292667 1 0 0 0 0 webnew --b--- 61236 6.5 4202372 12.5 8404992 25.1 4 1 0 7 1 0 0 0 0 ----------------------------------------------- how do i correctly check and be confirmed that my linux xen server is using both Cpus. i have already assigned VM to the cores on the second cpu and everything is working fine but jus wanted to confirm. appreciate your kind help and advice regards simon _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hello. El 10/07/13 11:42, simon ben escribió:> Dear All, > > I had a Centos 5.8 server running xen 3.1.2-194.el5 for quite sometime > and working fine > > i have just added a second cpu but am confused since the different > utilities to check for the presence of the new installed CPU is conflicting > > what i mean is running cat /proc/cpuinfo shows one cpuThat shows how many CPU''s are visible for Dom0. Normally, the default is the number of PCPUs, but obviously it''s not your case. This is controlled via xen boot command line options, can''t think of a reason why this value is not on it''s defaults. http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html> xm info show 2 cpus that is 2*8xm extracts data directly from Xen hypervisor, who can see all the CPUs.> how do i correctly check and be confirmed that my linux xen server is > using both Cpus. > i have already assigned VM to the cores on the second cpu and everything > is working fine > but jus wanted to confirm.IMHO, xm and xentop output should be enough. To be sure sure sure, you may try to pin specific cores to specific DomU''s, using all 16 CPUs visible. If you happen to find a CPU that is not truly available, a DomU won''t be created anf you would get an error. You probably would also be able to see, how the DomU''s that shares the same physical core (visible as 2 due to HT) interfere with each other on CPU consumption. Greetings. -- Alexandre Kouznetsov
Dear Alexandre, I really appreciate your quick reply . as i had posted my xm top command and i have pinned my DomUs to vcpus and after using all the 8 cores of the first cpu i have begun with the second CPU also what i do is i create a new domu and i do reassign my memory and Vcpus after the domU is created bu modifying the etc/xen/domU file below is output of xm vcpu-list -------- Name ID VCPUs CPU State Time(s) CPU Affinity Domain-0 0 0 0 r-- 67122.7 0 mail 11 0 4 -b- 40867.3 2-5 mail 11 1 2 -b- 32873.6 2-5 mail 11 2 5 -b- 31382.7 2-5 mail 11 3 3 -b- 31436.2 2-5 mailscanner 12 0 10 -b- 25491.7 9-10 mailscanner 12 1 9 -b- 14385.9 9-10 web 10 0 8 -b- 22863.8 6-8 web 10 1 6 -b- 11429.9 6-8 webnew 9 0 13 -b- 27187.1 11-14 webnew 9 1 11 -b- 10607.2 11-14 webnew 9 2 14 -b- 11883.0 11-14 webnew 9 3 12 -b- 11952.7 11-14 ------------ I am using 14 cores 2 are remaining as of now and everything is working fine.. does the above confirm that both my cpus are being used .. thanks so much and apprecite regards simon ________________________________ From: Alexandre Kouznetsov <alk@ondore.com> To: Sent: Wednesday, July 10, 2013 8:24 PM Subject: Re: [Xen-users] how do i confirm my new second CPU Hello. El 10/07/13 11:42, simon ben escribió:> Dear All, > > I had a Centos 5.8 server running xen 3.1.2-194.el5 for quite sometime > and working fine > > i have just added a second cpu but am confused since the different > utilities to check for the presence of the new installed CPU is conflicting > > what i mean is running cat /proc/cpuinfo shows one cpuThat shows how many CPU''s are visible for Dom0. Normally, the default is the number of PCPUs, but obviously it''s not your case. This is controlled via xen boot command line options, can''t think of a reason why this value is not on it''s defaults. http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html> xm info show 2 cpus that is 2*8xm extracts data directly from Xen hypervisor, who can see all the CPUs.> how do i correctly check and be confirmed that my linux xen server is > using both Cpus. > i have already assigned VM to the cores on the second cpu and everything > is working fine > but jus wanted to confirm.IMHO, xm and xentop output should be enough. To be sure sure sure, you may try to pin specific cores to specific DomU''s, using all 16 CPUs visible. If you happen to find a CPU that is not truly available, a DomU won''t be created anf you would get an error. You probably would also be able to see, how the DomU''s that shares the same physical core (visible as 2 due to HT) interfere with each other on CPU consumption. Greetings. -- Alexandre Kouznetsov _______________________________________________ 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 Wed, Jul 10, 2013 at 11:17:41AM -0700, simon ben wrote:> Dear Alexandre, > > I really appreciate your quick reply . > as i had posted my xm top command and i have pinned my DomUs to vcpus and after using all the 8 cores of the first cpu i have begun with the second CPU > also what i do is i create a new domu and i do reassign my memory and Vcpus after the domU is created bu modifying the etc/xen/domU file below is output of xm vcpu-list > -------- > > Name ID VCPUs CPU State Time(s) CPU Affinity > Domain-0 0 0 0 r-- 67122.7 0 > mail 11 0 4 -b- 40867.3 2-5 > mail 11 1 2 -b- 32873.6 2-5 > mail 11 2 5 -b- 31382.7 2-5 > mail 11 3 3 -b- 31436.2 2-5 > mailscanner 12 0 10 -b- 25491.7 9-10 > mailscanner 12 1 9 -b- 14385.9 9-10 > web 10 0 8 -b- 22863.8 6-8 > web 10 1 6 -b- 11429.9 6-8 > webnew 9 0 13 -b- 27187.1 11-14 > webnew 9 1 11 -b- 10607.2 11-14 > webnew 9 2 14 -b- 11883.0 11-14 > webnew 9 3 12 -b- 11952.7 11-14 > > ------------ > > I am using 14 cores 2 are remaining as of now and everything is working fine.. > does the above confirm that both my cpus are being used .. >Yes, you''re definitely using you second physical CPU. The "CPU" column shows the physical core that a virtual CPU is running on. Wei.