You are here

Hard and Soft Partitioning with Oracle VM

This guide presents Mokum's Oracle VM Private Cloud Reference Design. The Oracle VM Private Cloud Reference Design encompass the software, hardware, storage, network, and management components required to deploy a scalable, secure, and supportable Oracle VM 3.x private cloud.


Oracle Licensing and Hard and Soft Partitioning with Oracle VM

Two and four core CPUs are now end of life. New Intel and AMD x86 servers ship with quad-, hexa-, 8-, 10-, 12-, and 16-core CPUs. As Intel and AMD add more cores to CPUs, your next hardware refresh could dramatically increase your Oracle CPU license costs. The goal of this chapter of the Oracle Cloud Cookbook is to explain how Oracle VM for x86 can be used with hard and soft partitioning to gain total control over Oracle CPU license costs.
 


 

Hard Partitioning RAC and RAC One Node with Oracle VM

Oracle has a wide variety of high availability solutions for databases, applications and virtualization that offer different levels of availability. Hard and soft partitioning with Oracle VM can be used with Oracle RAC, RAC One Node, DataGuard and Application Server Guard to provide an additional layer of high availability with total control over Oracle CPU licensing costs.
 


 

How to Pin a Virtual Machine

This section will start with a brief review of Oracle VM's CPU credit scheduler. Next, we will walk through the procedure to pin a virtual machine's CPUs to a subset of an Oracle VM Server's CPU cores using the ovm_vmcontrol utility. The chapter concludes with CPU pinning examples by manually editing a vm.cfg file with the xm command.
 


 

Confirm the Oracle VM Server CPU Topology

Before you pin a virtual machine's CPUs to an Oracle VM Server's CPU cores, its necessary to understand the Oracle VM Server's CPU topology to be able to pin a virtual machine's CPUs to the desired Oracle VM Server's CPU cores and/or threads. There are a number of commands to list an Oracle VM Server's CPU topology. dmidecode and xenpm are my favorite commands to map out an Oracle VM Server's CPU topology.
 


 

Download and Install the Oracle VM Manager Utilities

Applicable to all Oracle VM 3.x Releases. The Oracle VM utilities (My Oracle Support Patch 13602094) are an Oracle VM Manager add-on that provide a command line interface for Oracle VM Manager. The Oracle VM utilities allows Oracle VM Manager administrative tasks to be performed from the command line or executed using scripts, including virtual machine CPUs pinning using the ovm_vmcontrol utility.
 


 

Pin CPUs with the ovm_vmcontrol Utility

In this section, we will pin a virtual machine with two CPUs to various CPU threads using the ovm_vmcontrol utility. A virtual machine's CPUs can be immediately pinned to any CPU core or thread using the ovm_vmcontrol utility as well as with the xm command, xm vcpu-set. This section of the Oracle Cloud Cookbook reviews CPU pinning with the ovm_vmcontrol utility.
 


 

CPU Pinning and the vm.cfg File

In this section, we show how to view the CPU pinning in a virtual machine's vm.cfg file. Each virtual machine has a vm.cfg file which controls the virual machine's resource allocations. vm.cfg files are managed by Oracle VM Manager, editing vm.cfg files by hand is not recomended and will cause unexpected results.
 


 

How to Remove CPU Pinning

In this section, we show how to remove CPU pinning. CPU pinning is controled in a virtual machine's vm.cfg file by adding the cpus attribute with a text editor, or with the ovm_vmcontrol utility. Before you can remove a virtual machine's CPU pinning, you must locate its vm.cfg file.