As mentioned in my earlier posts (years ago), you need to have your computational resources aligned with your Oracle Database and Application licenses..
In virtualized Oracle environments (OVM and KVM), you have the ability to dedicate your cpu cores to your virtual machines and keep them aligned with the licenses you have for your applications and databases.. This can also be thought as a capacity on demand solution.. That is, you grow as you pay and you license only the cpu cores you use..
Doing such a configuration starts with analyzing the licenses you have. If you have CPU-core license, you take your license counts and divide it with the core factor (for intel it is 0.5) to get the maximum count of cpus that you can have with those license you have.. For user named plus licenses, you also need to be sure that your user count is aligned with the user count defined in your named plus license.. But! again, you need to be aligned with the cpu count.. In other words, you can't have a 24 core machine to host a database or application which is licensed with 25 named users. So, there is a user count & cpu count alignment as well..
Okay enough with the intro : ) Check the articles below for more on this topic.
https://ermanarslan.blogspot.com/2017/03/rdbms-licensing-cpu-limits-for-named.html
https://ermanarslan.blogspot.com/2017/01/oda-quick-tip-for-cpu-vcpu-counts-named.html
In this blog post, I will give you the technical side for implementing license & cpu alignment in OVM environments..
So, as you can guess we configure Guest VM cpu resources according to the licenses we have.. But! not only that, we also neet do implement cpu pinning for the Guest VM to dedicate them to the specific CPU cores according to our license count.. Without this pinning action, it is not accepted to license only the cores that we use.. In other words, if you don't do this pinning action, you will need license all the cores on your Oracle VM server. (it is the same in KVM environments as well)
In order to configure the cpu cores of a guest machine and set CPU pinning, we use OVM Manager and Oracle VM Virtual Machine Control (ovm_vmcontrol utility.) -- supposing we are dealing with Oracle VM 3.4 and on-wards.. Note that, it is better to be on 3.4.3 and on-wards, because; on 3.4.1 and 3.4.2, CPU pinning with ovm_vmcontrol utility on running guest does not work.
We first start by setting the maximum number of virtual CPU cores (maxvcpu) and actual number of virtual cpu cores (vcpu) for our Guest VM.. We use OVM Manager for this task.
Note that, these numbers(maxvcpu and vcpu) are actually based on threads, not based actual physical cores.
In this context, if we have a 4 core intel - Linux machine and if we have hyper threading enabled, our host sees those cores as 8 threads. So, there in OVM Manager, we set maxvcpu and vcpu counts for a guest machine based on the thread count.
Note that, if we change maximum number of cpus for a Guest VM we need to reboot that vm after the value is changed.xenpm get-cpu-topology
xm vcpu-list
https://docs.oracle.com/cd/E50245_01/E50251/html/vmadm-utils-vmcontrol.html
Set CPU Pinning for VMs on Oracle VM 3.4.1 and 3.4.2 (Doc ID 2213691.1)
https://docs.oracle.com/cd/E50245_01/E50251/html/vmadm-utils-vmcontrol.html
No comments :
Post a Comment
If you will ask a question, please don't comment here..
For your questions, please create an issue into my forum.
Forum Link: http://ermanarslan.blogspot.com.tr/p/forum.html
Register and create an issue in the related category.
I will support you from there.