Go to main content

Lift and Shift Guide - Migrating Workloads from Oracle Solaris 10 (ZFS) SPARC Systems to Oracle Solaris 10 Guest Domains

Exit Print View

Updated: February 2020
 
 

Reconfigure Zone CPU IDs

At this point, the processor sets in the new target domain are configured for CPU IDs that correspond to the source system. This configuration does not correspond to the CPU IDs available in the target system. Use this procedure to reset the pool configuration and assign the appropriate CPU IDs to the recreated processor sets and pools. The order of the core allocation is configured so that it is similar to the core allocation of the source system.

For additional information about resource management on Oracle Solaris zones, refer to the administration guide at: https://docs.oracle.com/cd/E26505_01/html/817-1592/toc.html.

  1. Display the CPUs and CPU IDs that are available in the target domain.

    In this example, the psrinfo command shows that the target guest domain has the following CPUs:

    root@TargetGuestDom# psrinfo -pv
    The physical processor has 16 virtual processors (0-15)
      SPARC-S7 (chipid 0, clock 4267 MHz)
    The physical processor has 32 virtual processors (16-47)
      SPARC-S7 (chipid 1, clock 4267 MHz)
    The physical processor has 32 virtual processors (48-79)
      SPARC-S7 (chipid 2, clock 4267 MHz)
  2. Reassign processors.

    On the source, the dbzone was assigned the last 32 virtual processors, and the webzone was assigned the previous 32 virtual processors. Therefore, on the target system, a similar configuration is applied where the dbzone is assigned the last 32 virtual processors (48-79) and the webzone is assigned processors 16-47.

    The following commands are used to reassign the dbzone processors. The startcpu variable specifies the starting CPU ID , and the endcpu variable specifies the ending CPU ID.

    TargetGuestDom# pooladm -x 
    TargetGuestDom# pooladm -c discover
    TargetGuestDom# poolcfg -c 'create pset dbzone-set(uint pset.min=32;uint pset.max=32)' 
    TargetGuestDom# poolcfg -c "create pool dbzone-pool" 
    TargetGuestDom# poolcfg -c 'associate pool dbzone-pool (pset dbzone-set)' 
    TargetGuestDom# startcpu=48; endcpu=79
    TargetGuestDom# i=$startcpu; while [ ${i} -le $endcpu ]; do set -x; poolcfg -c "transfer to pset dbzone-set ( cpu ${i} )"; set +x; i= $((${i} + 1)); done 

    The following commands are used to reassign the webzone processors.

    TargetGuestDom# poolcfg -c 'create pset webzone-set(uint pset.min=32;uint pset.max=32)'
    TargetGuestDom# poolcfg -c "create pool webzone-pool"
    TargetGuestDom# poolcfg -c 'associate pool webzone-pool (pset webzone-set)'
    TargetGuestDom# startcpu=16; endcpu=47
    TargetGuestDom# i=$startcpu; while [ ${i} -le $endcpu ]; do set -x; poolcfg -c "transfer to pset webzone-set ( cpu ${i} )"; set +x; i= $((${i} + 1)); done 
  3. Commit the changes.
    TargetGuestDom# pooladm -c
    
  4. Verify the processor configuration.
    root@TargetGuestDom# poolstat
                                  pset
     id pool                 size used load
      4 webzone-pool           32 0.00 0.00
      0 pool_default           16 0.00 0.05
      3 dbzone-pool            32 0.00 0.00