• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to assign CPU/Memory/MAU resources to Guest LDOMs [OVM for SPARC]

by admin

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]

Filed Under: LDOMs

Some more articles you might also be interested in …

  1. How to create an I/O domain
  2. How to add/remove vdisk to/from Guest LDOMS online
  3. How to reset LDOM configuration to factory default
  4. How to install and configure LDOMs (Oracle VM for SPARC)
  5. How to save LDOM configuration and restore from xml file
  6. How to Collect a Forced Crash Dump of a Hanging Solaris Guest LDom
  7. LDOMs (OVM for SPARC) Command line reference [cheat sheet]
  8. How to clone LDOMs using ZFS
  9. OVM for SPARC (LDOMs) : Troubleshooting console issues
  10. Oracle VM Server for SPARC (Ldoms) : How to Change Primary/Control Domain’s UUID

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright