I need how to calculate exact VCPU available so that, that many guests can be created without affecting the performance issue.
Below are some tentative info for two servers.
Server 1#
Make model: Sunfire 4170
Physical CPU’s :- 2 Quad core.
# cat /proc/cpuinfo
====================================================================================
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Xeon(R) CPU E5540 @ 2.53GHz
stepping : 5
cpu MHz : 2527.006
cache size : 8192 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc pni est popcnt [8]
bogomips : 5055.53
.
.
.
.
.
.
.
processor : 14
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Xeon(R) CPU E5540 @ 2.53GHz
stepping : 5
cpu MHz : 2527.006
cache size : 8192 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc pni est popcnt [8]
bogomips : 5055.53
processor : 15
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Xeon(R) CPU E5540 @ 2.53GHz
stepping : 5
cpu MHz : 2527.006
cache size : 8192 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc pni est popcnt [8]
bogomips : 5055.53
====================================================================================
# xm info |grep cpu
nr_cpus : 16
cpu_mhz : 2527
node_to_cpu : node0:0-15
====================================================================================
# xm list
Name ID Mem VCPUs State Time(s)
Host1 330 2048 2 -b---- 49919.2
Host2 362 2048 2 -b---- 14339.8
Host3 361 2048 2 -b---- 43879.4
Host4 343 2048 2 -b---- 46078.6
Domain-0 0 10240 16 r----- 4030385.4
Host5 382 2048 2 -b---- 6811.6
Host6 161 3072 2 -b---- 1913819.0
Host7 103 1024 1 -b---- 1209952.5
Host8 318 2048 2 r----- 2713828.9
Host9 320 2048 1 -b---- 1244127.8
Host10 383 2048 2 -b---- 1019.5
Host11 118 1024 2 r----- 7450919.9
Host12 380 2048 2 -b---- 6717.4
Host13 255 2048 2 r----- 3750566.2
Host14 45 3072 3 r----- 9280882.8
Host15 364 2048 2 r----- 597484.9
Host16 313 4096 2 r----- 3250160.8
====================================================================================
Above command shows that Dom 0 has 16 CPU which at most can be given to the guests. That is all the guest should not exceed total 16 VCPU or else it is in overcommiting mode which in above scenario is.
Domain-0 16 (available VCPU)
Dom-U (all guests) 31 (utilized VCPU)
So What is the exact procedure for vcpu calculation
In other server.
Physical CPU’s :- 4 Quad core
Make model: Sunfire 4470
Server 2#
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 46
model name : Intel(R) Xeon(R) CPU E7530 @ 1.87GHz
stepping : 6
cpu MHz : 1862.005
cache size : 12288 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush
acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc pni est popcnt [8]
bogomips : 3725.60
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 46
model name : Intel(R) Xeon(R) CPU E7530 @ 1.87GHz
stepping : 6
cpu MHz : 1862.005
cache size : 12288 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush
acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc pni est popcnt [8]
bogomips : 3725.60
•
•
•
•
•
•
processor : 31
vendor_id : GenuineIntel
cpu family : 6
model : 46
model name : Intel(R) Xeon(R) CPU E7530 @ 1.87GHz
stepping : 6
cpu MHz : 1862.005
cache size : 12288 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc pni est popcnt [8]
bogomips : 3725.60
====================================================================================
# xm list
Name ID Mem VCPUs State Time(s)
Host1 28 12288 2 r----- 321377.2
Host2 4 12288 2 -b---- 982142.3
Host3 29 10240 2 -b---- 156614.4
Host4 6 6144 2 -b---- 1437625.9
Host5 24 4096 2 rb---- 172915.2
Host6 30 8192 2 -b---- 46326.4
Host7 8 4096 2 -b---- 383307.8
Host8 9 8192 2 -b---- 737134.2
Host9 10 6144 2 ------ 488993.6
Domain-0 0 2048 32 r----- 2382374.3
Host10 26 4096 4 ------ 139057.7
Host11 14 8192 4 r----- 1163773.4
**Domain-0 32 VCPU**
**And total guest has 26 VCPU (Here we have not overcommitted)**
*** Also as per below links need some clarification on how to assign VCPU’s to guest for better performance:-**
1112300
# uname –a #### for both servers.
Linux HOSTNAME 2.6.18-128.2.1.4.9.el5xen #1 SMP Fri Oct 9 14:57:31 EDT 2009 i686 i686 i386 GNU/Linux
*** Is there any tool for oracle VM server like CapacityIQ as in VM ware or VDI calculator as in this site below ?**
**http://myvirtualcloud.net/?page_id=1076**
****Also need some info on Domain 0 vcpu reservation / limitation, as in 1st server its 16 VCPU, 2nd server its 32 but in VM manager for first Server it shows Available CPU is 16 (which is as in xm list) and for Second Server it is showing Available CPU it is 48. (But in xm list it only shows 32) so i guess its limitation.***