The CPU, Memory and MAU resources can be added/removed dynamically to/from the guest LDOMs. Before adding the resources to guest LDOMs make sure you check the available resources in the primary domain :
# ldm ls -o memory # ldm ls -o cpu # ldm ls -o mau
Resources and their meanings
The various resources and their meanings :
Abbreviation | Name | Purpose |
---|---|---|
VCPU | virtual CPU | Each thread of a T series CPU acts as a virtual CPU |
MAU | Mathematical arithmetic unit | Each core of T series CPU will have a MAU for accelerated RAS/DSA encryption |
Memory | Physical memory is mapped into virtual memory and assigned to ldoms |
Before changing the resource allocation of guest LDOM (ldom01), check the resources that are laready allocated to the guest LDOM.
# ldm list NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME primary active -n-cv SP 8 4G 17% 32d 2h 3m ldom01 active -n--- 5001 4 4G 0.5% 38d 13h 44m
# ldm ls -l ldom01 NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME ldom01 active -n--- 5001 4 4G 0.4% 38d 13h 51m SOFTSTATE Solaris running VCPU VID PID UTIL STRAND 0 4 100% 100% 1 5 1.1% 100% 2 6 0.9% 100% 3 7 0.0% 100% MAU ID CPUSET 0 (8, 9, 10, 11, 12, 13, 14, 15) MEMORY RA PA SIZE 0x8000000 0x108000000 2G 0x408000000 0x688000000 2G ..
Allocating VCPU
1. Setting the VCPUs to 6 :
# ldm set-vcpu 6 ldom01
2. To add additional 2 VCPUs :
# ldm add-vcpu 2 ldom01
3. To remove 2 VCPUs :
# ldm remove-vcpu 2 ldom01
Allocating Memory
1. Setting the Memory to 6 GB :
# ldm set-memory 6G ldom01
2. To add additional 2 GB memory :
# ldm add-memory 2G ldom01
3. To remove 2 GB memory :
# ldm remove-memory 2G ldom01
Allocating MAUs
1. Setting the MAU to 2 :
# ldm set-mau 2 ldom01
2. To add additional 1 MAU :
# ldm add-mau 1 ldom01
3. To remove 1 MAU :
# ldm remove-mau 1 ldom01
Saving the configuration
The new changes to persists across reboots must be saved to system controller (SC).
# ldm add-config config_12feb2014 # /opt/SUNWldm/bin/ldm list-config factory-default initconfig config_12feb2014 [current]