JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle VM Server for SPARC 2.2 Administration Guide     Oracle VM Server for SPARC
search filter icon
search icon

Document Information

Preface

Part I Oracle VM Server for SPARC 2.2 Software

1.  Overview of the Oracle VM Server for SPARC Software

2.  Installing and Enabling Software

3.  Oracle VM Server for SPARC Security

4.  Setting Up Services and the Control Domain

5.  Setting Up Guest Domains

6.  Setting Up I/O Domains

7.  Using Virtual Disks

8.  Using Virtual Networks

9.  Migrating Domains

10.  Managing Resources

Resource Reconfiguration

Dynamic Reconfiguration

Delayed Reconfiguration

Resource Allocation

CPU Allocation

How to Apply the Whole-Core Constraint

Interactions Between the Whole-Core Constraint and Other Domain Features

CPU Dynamic Reconfiguration

Dynamic Resource Management

Domain Migration

Power Management

Tuning the SPARC CPU to Optimize Workload Performance on SPARC T4 Systems

CPU Threading Modes and Workloads

Selecting the CPU Threading Mode

Threading Control Limitations

Configuring the System With Hard Partitions

Checking the Configuration of a Domain

How to Determine Whether a Domain Is Configured With CPU Whole Cores

How to List the CPU Cores That Are Assigned to a Domain

Configuring a Domain With CPU Whole Cores

How to Create a New Domain With CPU Whole Cores

How to Configure an Existing Domain With CPU Whole Cores

How to Configure the Primary Domain With CPU Whole Cores

Interaction With Other Oracle VM Server for SPARC Features

CPU Dynamic Reconfiguration

CPU Dynamic Resource Management

CPU Power Management

Domain Reboot or Rebind

Domain Migration Incompatibility

Assigning Physical Resources to Domains

Managing Physical Resources on the Control Domain

Restrictions for Managing Physical Resources on Domains

Using Memory Dynamic Reconfiguration

Adding Memory

Removing Memory

Tracking the Progress of a Memory DR Request

Canceling a Memory DR Request

Partial Memory DR Requests

Memory Reconfiguration of the Control Domain

Decrease the Control Domain's Memory

Dynamic and Delayed Reconfiguration

Memory Alignment

Memory Alignment for Active Domains

Memory Alignment for Bound Domains

Memory Alignment for Inactive Domains

Adding Unaligned Memory

Memory DR Examples

Using Power Management

Listing Power-Managed CPU Threads and Virtual CPUs

How to List Power-Managed CPU Threads

How to List Power-Managed CPUs

Using Dynamic Resource Management

Listing Domain Resources

Machine-Readable Output

How to Show Syntax Usage for ldm Subcommands

Flag Definitions

Utilization Statistic Definition

Viewing Various Lists

How to Show Software Versions (-V)

How to Generate a Short List

How to Generate a Long List (-l)

How to Generate an Extended List (-e)

How to Generate a Parseable, Machine-Readable List (-p)

How to Generate a Subset of a Long List (-o format)

How to List a Variable

How to List Bindings

How to List Configurations

How to List Devices

How to List Available Memory

How to List Services

Listing Constraints

How to List Constraints for One Domain

How to List Constraints in XML Format

How to List Constraints in a Machine-Readable Format

11.  Managing Domain Configurations

12.  Performing Other Administration Tasks

Part II Optional Oracle VM Server for SPARC Software

13.  Oracle VM Server for SPARC Physical-to-Virtual Conversion Tool

14.  Oracle VM Server for SPARC Configuration Assistant (Oracle Solaris 10)

15.  Using the Oracle VM Server for SPARC Management Information Base Software

16.  Logical Domains Manager Discovery

17.  Using the XML Interface With the Logical Domains Manager

Glossary

Index

Configuring the System With Hard Partitions

This section describes hard partitioning with the Oracle VM Server for SPARC software, and how to use hard partitioning to conform to the Oracle CPU licensing requirements.

Checking the Configuration of a Domain

The tasks in this section explain how to determine whether a domain is configured with CPU whole cores and how to list the CPU cores that are assigned to a domain.

How to Determine Whether a Domain Is Configured With CPU Whole Cores

Example 10-2 Determining Whether a Domain Is Configured With CPU Whole Cores

The following command shows that the ldg1 domain is configured with CPU whole cores and a maximum of five cores:

# ldm list -o resmgmt ldg1
NAME
ldg1

CONSTRAINT
   whole-core
   max-cores=5

How to List the CPU Cores That Are Assigned to a Domain

When a domain is bound, CPU cores are assigned to the domain.

Example 10-3 Listing the CPU Cores That Are Assigned to a Domain

The following command shows the cores that are assigned to the ldg1 domain:

# ldm list -o core ldg1
NAME 
ldg1

CORE 
CID    PCPUSET 
1    (8, 9, 10, 11, 12, 13, 14, 15) 
2    (16, 17, 18, 19, 20, 21, 22, 23)

Configuring a Domain With CPU Whole Cores

The tasks in this section explain how to create a new domain with CPU whole cores, how to configure an existing domain with CPU whole cores, and how to configure the primary domain with CPU whole cores.


Note - The ldm subcommands that are used to assign whole cores changed in the Oracle VM Server for SPARC 2.2 release.

The tasks and examples in this section use the new commands that were introduced with the Oracle VM Server for SPARC 2.2 software.

If you are using version 2.0 or 2.1 of the Logical Domains Manager to assign whole cores to domains, use the ldm add-vcpu -c, ldm set-vcpu -c, and ldm remove-vcpu -c commands instead of the ldm add-core, ldm set-core, and ldm remove-core commands, respectively.


Use the following command to configure a domain to use CPU whole cores:

ldm set-core number-of-cpu-cores domain

This command also specifies the maximum number of CPU cores for the domain, which is the CPU cap. See the ldm(1M) man page.

Starting with the Oracle VM Server for SPARC 2.2 release, the CPU cap and the allocation of CPU cores is handled by separate commands. By using these commands, you can independently allocate CPU cores, set a cap, or both. The allocation unit can be set to cores even when no CPU cap is in place. However, running the system in this mode is not acceptable for configuring hard partitioning on your Oracle VM Server for SPARC system.

How to Create a New Domain With CPU Whole Cores

  1. Create the domain.
    # ldm create domain
  2. Set the number of CPU whole cores for the domain.
    # ldm set-core number-of-cpu-cores domain

    This command also sets the maximum number of CPU cores for the domain to number-of-cpu-cores.

  3. Configure the domain.

    During this configuration, ensure that you use the ldm add-core, ldm set-core, or ldm rm-core command.

  4. Bind and start the domain.
    # ldm bind domain
    # ldm start domain

Example 10-4 Creating a New Domain With Two CPU Whole Cores

This example creates a domain, ldg1, with two CPU whole cores. The first command creates the ldg1 domain. The second command configures the ldg1 domain with two CPU whole cores. The second command also sets the maximum number of CPU cores for ldg1 to two.

At this point, you can perform further configuration on the domain, subject to the restrictions described in Step 3 in How to Create a New Domain With CPU Whole Cores.

The third and fourth commands show how to bind and start the ldg1 domain, at which time you can use the ldg1 domain.

# ldm create ldg1
# ldm set-core 2 ldg1
...
# ldm bind ldg1
# ldm start ldg1

How to Configure an Existing Domain With CPU Whole Cores

If a domain already exists and is configured to use CPU threads, you can change its configuration to use CPU whole cores.

  1. Stop and unbind the domain.
    # ldm stop domain
    # ldm unbind domain
  2. Set the number of CPU whole cores for the domain.
    # ldm set-core number-of-cpu-cores domain

    This command also sets the maximum number of CPU cores for the domain to number-of-cpu-cores.

  3. Rebind and restart the domain.
    # ldm bind domain
    # ldm start domain

Example 10-5 Configuring an Existing Domain With Four CPU Whole Cores

This example updates the configuration of an existing domain, ldg1. The first and second commands stop and unbind the ldg1 domain. The third command configures the ldg1 domain with four CPU whole cores. This command also sets the maximum number of CPU cores for ldg1 to four. The fourth and fifth commands bind and restart the ldg1 domain.

# ldm stop ldg1
# ldm unbind ldg1
# ldm set-core 4 ldg1
# ldm bind ldg1
# ldm start ldg1

How to Configure the Primary Domain With CPU Whole Cores

If the primary domain is configured to use CPU threads, you can change its configuration to use CPU whole cores.

  1. Place the primary domain in delayed reconfiguration mode.
    # ldm start-reconf primary
  2. Set the number of CPU whole cores for the primary domain.
    # ldm set-core number-of-cpu-cores primary

    This command also sets the maximum number of CPU cores for the primary domain to number-of-cpu-cores.

  3. Reboot the primary domain.

    Use the appropriate procedure to reboot the primary domain, which depends on the system configuration. See Rebooting the primary Domain.

Example 10-6 Configuring the primary Domain With Two CPU Whole Cores

This example configures CPU whole cores on the primary domain. The first command initiates delayed reconfiguration mode on the primary domain. The second command configures the primary domain with two CPU whole cores. This command also sets the maximum number of CPU cores for the primary domain to two. The third command reboots the primary domain.

# ldm start-reconf primary
# ldm set-core 2 primary
# shutdown -i 5

Interaction With Other Oracle VM Server for SPARC Features

CPU Dynamic Reconfiguration

You can use CPU dynamic reconfiguration with domains that are configured with CPU whole cores. However, you can only add or remove entire CPU cores, not individual CPU threads. Thus, the hard partitioning state of the system is maintained by the CPU dynamic reconfiguration feature. In addition, if CPU cores are dynamically added to a domain, the maximum is enforced. Thus, the CPU DR command would fail if it attempted to exceed the maximum number of CPUs.


Note - The max-cores property cannot be altered, unless the domain is stopped and unbound. So, to increase the maximum number of cores from the value specified at the time the whole-core constraint was set, you must first stop and unbind the domain.


Use the following commands to dynamically add, set, or remove CPU whole cores to a bound or active domain:

ldm add-core number-of-cpu-cores domain
ldm set-core number-of-cpu-cores domain
ldm rm-core number-of-cpu-cores domain

Note - If the domain is not active, these commands also adjust the maximum number of CPU cores for the domain. If the domain is bound or active, these commands do not affect the maximum number of CPU cores for the domain.


Example 10-7 Dynamically Adding Two CPU Whole Cores to a Domain

This example shows how two CPU whole cores are dynamically added to the ldg1 domain. The ldg1 domain is an active domain that has been configured with CPU whole cores. The first command shows that the ldg1 domain is active. The second command shows that the ldg1 domain is configured with CPU whole cores and a maximum of four CPU cores. The third and fifth commands show the CPU cores that are assigned to the domain before and after the addition of two CPU whole cores. The fourth command dynamically adds two CPU whole cores to the ldg1 domain.

# ldm list ldg1
NAME    STATE   FLAGS   CONS  VCPU  MEMORY UTIL  UPTIME
ldg1    active  -n----  5000  16    2G     0.4%  5d 17h 49m
# ldm list -o resmgmt ldg1
NAME
ldg1

CONSTRAINT
   whole-core
        max-cores=4
# ldm list -o core ldg1
NAME 
ldg1

CORE 
CID    PCPUSET 
1    (8, 9, 10, 11, 12, 13, 14, 15) 
2    (16, 17, 18, 19, 20, 21, 22, 23)
# ldm add-core 2 ldg1
# ldm list -o core ldg1
NAME 
ldg1

CORE 
CID    PCPUSET 
1    (8, 9, 10, 11, 12, 13, 14, 15) 
2    (16, 17, 18, 19, 20, 21, 22, 23) 
3    (24, 25, 26, 27, 28, 29, 30, 31)
4    (32, 33, 34, 35, 36, 37, 38, 39)

CPU Dynamic Resource Management

Dynamic resource management (DRM) can be used to automatically manage CPU resources on some domains. If DRM is used, the DRM policies do not apply to those domains that are configured with CPU whole cores.

A DRM policy can include a domain that is configured with CPU whole cores. However, when such a policy is activated, it is automatically disabled for that domain. The domain remains configured with CPU whole cores, unless and until the domain is later reconfigured with CPU threads instead of CPU whole cores. When the domain is configured to use CPU threads, the DRM policy is automatically re-enabled for that domain.

CPU Power Management

You can use CPU power management (PM) with the performance or elastic policies enabled for domains that are configured with CPU whole cores. Using PM maintains the hard partitioning of the system.

Domain Reboot or Rebind

A domain that is configured with CPU whole cores remains configured with CPU whole cores when the domain is restarted, or if the entire system is restarted. A domain uses the same physical CPU cores for the entire time it remains bound. For example, if a domain is rebooted, it uses the same physical CPU cores both before and after the reboot. Or, if the entire system is powered off while a domain is bound, that domain will be configured with the same physical CPU cores when the system is powered on again. If you unbind a domain and then rebind it, or if the entire system is restarted with a new configuration, the domain might use different physical CPU cores.

Domain Migration Incompatibility

A CPU whole-core configuration is incompatible with a domain migration. However, you can still migrate a domain that is configured with CPU whole cores. After such a migration, hard partitioning is not enforced on the target system. Also, the whole-core configuration and the maximum number of CPU cores are not preserved by the migration on the target system.

If you migrate a domain that is configured with whole cores, you must reconfigure the target domain to use hard partitioning after the migration completes. Also, you must ensure that your license agreement permits you to use the domain on both the source and the target systems.