Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Example of CPU management

&pagelevel(4)&pagelevel

This example explains the various outputs for CPU management in the various VM2000 information commands on SU /390.
Asynchronous messages are marked with %.

An example relating specifically to the management of the CPU pool is provided in section "Example of managing CPU pools".


/show-vm-resources information=*cpu
VM-ID        CPU-POOL  GR-CPU-Q  CPU-Q/ EFF-Q  MAX-U/ EFF-U  PROC

 1 MONITOR   *STDPOOL            20.00/ 10.00 100.00/ 25.00  1(+1)
 2 SYSTEM2   *STDPOOL    80.00   70.00/ 28.00 100.00/ 40.00  2(+1) ————  (1)
 3 SYSTEM3   *STDPOOL    80.00   30.00/ 12.00  20.00/ 20.00  1(+1)
 4 SYSTEM4   EXCLPOOL             1.00/ 50.00 100.00/ 50.00  2(+1) ————  (2)

              —————————————————————————————————————————————————————————— (3)
VM-ID        SCHED ACT-I  VIRT CPUS
 1 MONITOR    DC    NO    00(RUN),01(SLEEP) ———————————————————————————  (4)

 2 SYSTEM2    -     NO    00(INIT),01(INIT),02(OFF)
 3 SYSTEM3    -     NO    00(INIT),01(OFF)
 4 SYSTEM4    DC   AT-DC  00(RUN),01(RUN),02(OFF) —————————————————————  (5)
CPU-ATTR     CPU-POOL     REAL CPUS
NORMAL       *STDPOOL     00(ATT),01(ATT) —————————————————————————————  (6)

             EXCLPOOL     02(ATT),03(ATT)
EXTRA                     NONE         

SPARE                     04(DET)
/show-vm-group vm-group-name=*all,information=*all ————————————————————  (7)
VM-GROUP CPU-POOL  CPU-Q   MAX-U
EXTGROUP *STDPOOL  80.00   40.00

VM-GROUP CPU-POOL VM-ID       CPU-Q / EFF-Q   MAX-U / EFF-U
EXTGROUP *STDPOOL  2 SYSTEM2  70.00 / 28.00  100.00 / 40.00 ———————————  (8)
/start-vm ipl-unit=fc1a,vm-id=system2,information-byte=*dialog ————————  (9)
% VMS2023 CPU 00 OF VIRTUAL MACHINE (2,SYSTEM2) STARTED
/show-vm-resources information=*cpu
VM-ID        CPU-POOL  GR-CPU-Q  CPU-Q/ EFF-Q  MAX-U/ EFF-U  PROC

 1 MONITOR   *STDPOOL            20.00/ 10.00 100.00/ 25.00  1(+1)
 2 SYSTEM2   *STDPOOL    80.00   70.00/ 28.00 100.00/ 40.00  2(+1)
 3 SYSTEM3   *STDPOOL    80.00   30.00/ 12.00  20.00/ 20.00  1(+1)
 4 SYSTEM4   EXCLPOOL             1.00/ 50.00 100.00/ 50.00  2(+1)
VM-ID        SCHED ACT-I  VIRT CPUS
 1 MONITOR    DC    NO    00(RUN),01(SLEEP)
 2 SYSTEM2    DC    NO    00(RUN),01(STOP),02(OFF) ———————————————————— (10)
 3 SYSTEM3    -     NO    00(INIT),01(OFF)
 4 SYSTEM4    DC   AT-DC  00(RUN),01(RUN),02(OFF)

CPU-ATTR     CPU-POOL     REAL CPUS
NORMAL       *STDPOOL     00(ATT),01(ATT)
             EXCLPOOL     02(ATT),03(ATT)
EXTRA                     NONE
SPARE                     04(DET)
/show-vm-status information=*all,period=*recent(seconds=60) ——————————— (11)
/SHOW-VM-STATUS DATA OUTPUT: (PERIOD=    61.844 SEC)
CPU TIMER INFORMATION FOR REAL CPU(S) ————————————————————————————————— (12)

 CPU-POOL  REAL      HPV-ACTIVE         HPV-IDLE   ALL-VMS-ACTIVE
           CPU       TIME/    %       TIME/    %       TIME/    %

 *STDPOOL           0.017/ 0.01    123.625/99.95      0.046/ 0.04
            00      0.016/ 0.03     61.784/99.90      0.044/ 0.07
            01      0.001/ 0.00     61.841/  100      0.002/ 0.00
 EXCLPOOL           0.014/ 0.01      0.000/ 0.00    123.674/99.99
            02      0.007/ 0.01      0.000/ 0.00     61.837/99.99
            03      0.007/ 0.01      0.000/ 0.00     61.837/99.99
CPU TIMER INFORMATION FOR VM(S) ——————————————————————————————————————— (13)
 CPU-POOL
  VM-GROUP   VIRT   CPU-Q   CUR-Q   CUR-U        VM - ACTIVE
  VM-ID      CPU                                 TIME/     %
 *STDPOOL(P)                50.00   50.00       0.043/  0.01
   1 MONITOR        20.00   25.00   25.00       0.041/  0.02
              00                                0.041/  0.01
  EXTGROUP(G)       80.00   25.00   25.00       0.002/  0.00
   2 SYSTEM2        70.00   25.00   25.00       0.002/  0.00
              00                                0.002/  0.00
 EXCLPOOL(P)                50.00   50.00     123.653/ 49.98
   4 SYSTEM4         1.00   50.00   50.00     123.653/ 49.99
              00                               61.777/ 24.97
              01                               61.876/ 25.01
CPU COUNTER INFORMATION FOR REAL CPU(S) ——————————————————————————————— (14)
 CPU-POOL    REAL    I-O INT.  INTERCEPT.   EMULATION     SCHEDULE
             CPU    COUNT/  %   COUNT/  %   COUNT/  %    COUNT/  %
 *STDPOOL     00      281/100    1153/ 47       4/100     1153/ 47
              01        0/  0      61/  2       0/  0       61/  2
 EXCLPOOL     02        0/  0     625/ 25       0/  0      625/ 25
              03        0/  0     624/ 25       0/  0      624/ 25
CPU COUNTER INFORMATION FOR VM(S)
 CPU-POOL    VIRT    I-O INT.  INTERCEPT.   EMULATION     SCHEDULE
 VM-ID       CPU    COUNT/  %   COUNT/  %   COUNT/  %    COUNT/  %
 *STDPOOL
  1 MONITOR   00      281/100    1153/ 47       4/100     1153/ 47
  2 SYSTEM2   00        0/  0      61/  2       0/  0       61/  2
 EXCLPOOL
  4 SYSTEM4   00        0/  0     624/ 25       0/  0      624/ 25
              01        0/  0     625/ 25       0/  0      625/ 25
SCHEDULE INFORMATION FOR REAL CPU(S) —————————————————————————————————— (15)
 CPU-POOL    REAL      <-- TIME SLICE  -->  NON-AFFIN SCHED
             CPU        AVG %RUNOUT %SHORT    %IDLE %LOAD
 *STDPOOL     00        0.03      0     92  DEDICATED SCHED
              01        0.03      0    100  DEDICATED SCHED
 EXCLPOOL     02       VM-ACTIVE-IDLE       DEDICATED SCHED
              03       VM-ACTIVE-IDLE       DEDICATED SCHED
SCHEDULE INFORMATION FOR VM(S)
 CPU-POOL    VIRT <--    TIME SLICE    -->  NON-AFFIN SCHED  %WAIT
 VM-ID       CPU  DEF   AVG %RUNOUT %SHORT    %IDLE %LOAD     TIME
 *STDPOOL
  1 MONITOR   00  8.00  0.03      0     92  DEDICATED SCHED    --
  2 SYSTEM2   00  8.00  0.02      0    100  DEDICATED SCHED    --
 EXCLPOOL
  4 SYSTEM4   00 99.00 VM-ACTIVE-IDLE       DEDICATED SCHED    --
              01       VM-ACTIVE-IDLE       DEDICATED SCHED    --
%  VMS2023 CPU 01 OF VIRTUAL MACHINE (2,SYSTEM2) STARTED —————————————— (16)
%  VMS2023 CPU 02 OF VIRTUAL MACHINE (2,SYSTEM2) STARTED —————————————— (17)
%  VMS2037 NON-INTERRUPTIBLE WAIT STATE FOR VIRTUAL MACHINE (2,SYSTEM2),
           CODE 80FFFFFF, CPU 02
%  VMS2011 CPU 02 OF VIRTUAL MACHINE (2,SYSTEM2) STOPPED
%  VMS2050 GUEST SYSTEM ON VM (2,SYSTEM2) READY
/show-vm-status information=*timer,period=*recent(seconds=180) ———————— (18)

/SHOW-VM-STATUS DATA OUTPUT: (PERIOD=   184.745 SEC)
CPU TIMER INFORMATION FOR REAL CPU(S)

 CPU-POOL  REAL      HPV-ACTIVE         HPV-IDLE   ALL-VMS-ACTIVE
           CPU       TIME/    %       TIME/    %       TIME/    %
 *STDPOOL           2.004/ 0.54    356.243/96.41     11.243/ 3.04
            00      1.113/ 0.60    177.743/96.21      5.889/ 3.19
            01      0.891/ 0.48    178.500/96.62      5.354/ 2.90
 EXCLPOOL           0.044/ 0.01      0.000/ 0.00    369.446/99.99
            02      0.022/ 0.01      0.000/ 0.00    184.723/99.99
            03      0.022/ 0.01      0.000/ 0.00    184.723/99.99
CPU TIMER INFORMATION FOR VM(S)
 CPU-POOL
  VM-GROUP   VIRT   CPU-Q   CUR-Q   CUR-U        VM - ACTIVE
  VM-ID      CPU                                 TIME/     %
 *STDPOOL(P)                50.00   50.00      11.241/  1.52
#  1 MONITOR        20.00   10.00   25.00       0.161/  0.02 —————————— (19)
              00                                0.161/  0.02
# EXTGROUP(G)       80.00   40.00   40.00      11.080/  1.50
#  2 SYSTEM2        70.00   40.00   40.00      11.080/  1.50 —————————— (20)
              00                                9.889/  1.33

*             01                                1.191/  0.16
*             02                                0.000/  0.00
 EXCLPOOL(P)                50.00   50.00     369.377/ 49.98
   4 SYSTEM4         1.00   50.00   50.00     369.377/ 49.98
              00                              184.639/ 24.98
              01                              184.738/ 24.99
/show-vm-resources information=*cpu
VM-ID        CPU-POOL  GR-CPU-Q  CPU-Q/ EFF-Q  MAX-U/ EFF-U  PROC

 1 MONITOR   *STDPOOL            20.00/ 10.00 100.00/ 25.00  1(+1)
 2 SYSTEM2   *STDPOOL    80.00   70.00/ 28.00 100.00/ 40.00  2(+1)
 3 SYSTEM3   *STDPOOL    80.00   30.00/ 12.00  20.00/ 20.00  1(+1)
 4 SYSTEM4   EXCLPOOL             1.00/ 50.00 100.00/ 50.00  2(+1)
VM-ID        SCHED ACT-I  VIRT CPUS
 1 MONITOR    TS    NO    00(RUN),01(SLEEP)
 2 SYSTEM2    TS    NO    00(RUN),01(RUN),02(OFF) ————————————————————— (21)
 3 SYSTEM3          NO    00(INIT),01(OFF)
 4 SYSTEM4    DC   AT-DC  00(RUN),01(RUN),02(OFF)

CPU-ATTR     CPU-POOL      REAL CPUS
NORMAL       *STDPOOL      00(ATT),01(ATT)
             EXCLPOOL      02(ATT),03(ATT)
EXTRA                      NONE
SPARE                      04(DET)
/assign-vm-group-to-cpu-pool vm-group-name=extgroup,to-cpu-pool=exclpool,
                 cpu-quota=1,attached-vm-cpus=*check-number ——————————— (22)

VMS4627 CPU POOL ASSIGNMENT OF VM GROUP 'EXTGROUP' CHANGED FROM
        CPU POOL '*STDPOOL' TO CPU POOL 'EXCLPOOL'

/show-vm-resources information=*cpu
VM-ID        CPU-POOL  GR-CPU-Q  CPU-Q/ EFF-Q  MAX-U/ EFF-U  PROC

 1 MONITOR   *STDPOOL            20.00/ 25.00 100.00/ 25.00  1(+1) ———— (23)
 2 SYSTEM2   EXCLPOOL     1.00   70.00/ 17.50 100.00/ 40.00  2(+1)
 3 SYSTEM3   EXCLPOOL     1.00   30.00/  7.50  20.00/ 20.00  1(+1)
 4 SYSTEM4   EXCLPOOL             1.00/ 25.00 100.00/ 50.00  2(+1)
... (Ausgabe gekürzt)
/show-vm-group inf=*all ——————————————————————————————————————————————— (24)
VM-GROUP CPU-POOL  CPU-Q   MAX-U
EXTGROUP EXCLPOOL   1.00   40.00

VM-GROUP CPU-POOL VM-ID       CPU-Q / EFF-Q   MAX-U / EFF-U
EXTGROUP EXCLPOOL  2 SYSTEM2  70.00 / 17.50  100.00 / 40.00
                   3 SYSTEM3  30.00 /  7.50   20.00 / 20.00
/show-vm-status information=*timer,period=*recent(seconds=300)
/SHOW-VM-STATUS DATA OUTPUT: (PERIOD=   307.707 SEC)

CPU TIMER INFORMATION FOR REAL CPU(S)
 CPU-POOL  REAL      HPV-ACTIVE         HPV-IDLE   ALL-VMS-ACTIVE
           CPU       TIME/    %       TIME/    %       TIME/    %
**STDPOOL           2.342/ 0.38    598.897/97.32     14.175/ 2.30
            00      1.277/ 0.42    299.216/97.24      7.214/ 2.34
            01      1.065/ 0.35    299.681/97.39      6.961/ 2.26
*EXCLPOOL           0.179/ 0.03    140.206/22.78    475.029/77.19
            02      0.088/ 0.03     70.114/22.79    237.505/77.19
            03      0.091/ 0.03     70.092/22.78    237.524/77.19
CPU TIMER INFORMATION FOR VM(S)
 CPU-POOL

  VM-GROUP   VIRT   CPU-Q   CUR-Q   CUR-U        VM - ACTIVE
  VM-ID      CPU                                 TIME/     %
**STDPOOL(P)                50.00   50.00       0.292/  0.02
#  1 MONITOR        20.00   25.00   25.00       0.292/  0.02
              00                                0.292/  0.02
*EXCLPOOL(P)                50.00   50.00     488.993/ 39.72
#  4 SYSTEM4         1.00   25.00   50.00     473.893/ 38.50
              00                              236.942/ 19.25
              01                              236.951/ 19.25
# EXTGROUP(G)        1.00   25.00   40.00      15.100/  1.23
#  2 SYSTEM2        70.00   25.00   40.00      15.100/  1.23
              00                               11.799/  0.95
*             01                                3.301/  0.26
*             02                                0.000/  0.00

--------------------------------------------------------------------------------------------------------------

(1)

Both a monitor VM with the CPU quota 20 and a VM group EXTGROUP with the CPU quota 80 (column GR-CPU-Q) have been created for this example. In other words the monitor VM and the VM group EXTGROUP are to share the CPU capacity of the standard CPU pool in a ratio of 20:80.

The member CPU quota for the VMs SYSTEM2 and SYSTEM3 of the VM group EXTGROUP is shown in the output column CPU-Q.

See also /SHOW-VM-GROUP (7).

(2)

The VM SYSTEM4 is assigned to the CPU pool EXCLPOOL.

(3)

The displayed planned values effective CPU quota (EFF-Q) and effective maximum CPU utilization (EFF-U) under idealized conditions are calculated using the formulae and constraints in section "Planning distribution of the CPU capacity to the VMs":

  • CPU capacity of *STDPOOL and EXCLPOOL: 50% each (two of four real CPUs each, see (6))

  • For the VMs and VM groups in the standard CPU pool:

    • Monitor VM: EFF-Q = 20*50/100 = 10% according to the formula (F1a)
                EFF-U = 1*100/4 = 25% according to the constraint (N3)

    • VM group EXTGROUP: EFF-Q = 80*50/100 = 40% acc. to the formula (F1a)
                       EFF-U = 40% by means of command

      • SYSTEM2: EFF-Q = 70*40/100 = 28% according to the formula (F1b)
                EFF-U = 40% according to the constraint (N1b)

      • SYSTEM3: EFF-Q = 30*40/100 = 12% according to the formula (F1b)
                EFF-U = 20% according to the constraint (N1a)

  • For the VM in the CPU pool EXCLPOOL:

    • SYSTEM4: EFF-Q = 1*50/1 = 50% according to the formula (F1)
              EFF-U = 2*100/4 = 50% according to the constraint (N2) or (N3)

(4)

In the standard CPU pool the monitor VM is using the scheduling procedure with fixed CPU assignment as only one virtual CPU is running but two real attached CPUs are available (see (6)). The virtual spare CPU 01 is operable (SLEEP status) so that it can immediately take over if the only virtual CPU fails.The VMs SYSTEM2 and SYSTEM3 have not yet been started.

(5)

In the CPU pool EXCLPOOL, the (only) VM SYSTEM4 is using the scheduling procedure with fixed CPU assignment with two virtual CPUs on two attached real CPUs (see (6)). The CPU quota is not relevant here; the VM uses the two available CPUs exclusively. The VM2000 administrator has set the attribute VM-ACTIVE-IDLE=*AT-DEDICATED-CPUS for this VM. This means that the VM retains control over a real CPU even if the virtual CPU which runs on it is inactive.

(6)

Two attached real normal CPUs (state ATT) each are contained in the standard CPU pool and in the CPU pool EXCLPOOL. The CPU capacity of *STDPOOL and EXCLPOOL is 50% each (2 of 4 real normal CPUs of the Server Unit, according to the formula in section "Planning distribution of the CPU capacity to the VMs"). The detached extra and spare CPUs (DET status) are not relevant for this example.

(7)

For this example a VM group EXTGROUP has been created with a planned CPU quota of 80% and a planned maximum CPU utilization of 40% of the Server Unit’s CPU capacity (in this example this corresponds to 80% of the CPU capacity of the standard CPU pool).

(8)

The VM group EXTGROUP contains two VMs:

  • SYSTEM2 with a member CPU quota 70 and unrestricted CPU utilization

  • SYSTEM3 with a member CPU quota 30 and maximum CPU utilization of 20.

In other words SYSTEM2 and SYSTEM3 should share the CPU capacity intended for the VM group in a ratio of 70:30.

(9)

The VM2000 administrator starts the guest system on the VM SYSTEM2.

(10)

SYSTEM2 has been set up as a biprocessor system and initially starts up on the virtual CPU 00 (IPL-CPU, state RUN). The virtual CPU 01 is still in SVP stop (state STOP). Furthermore, VM2000 has also assigned the virtual spare CPU 02 to the VM. It is not operable (state OFF) as the startup phase is running and later two attached virtual normal CPUs will be available for this VM. Scheduling continues with fixed CPU assignment. Two virtual CPUs are now running on two real CPUs in the standard CPU pool.

(11)

To compare the planned values for distributing the CPU capacity to the VMs with the current measured values, the VM2000 administrator outputs the data collection of the last 60 seconds for all VMs.

(12)

Output of the CPU-specific information block for INFORMATION=*TIMER:

  • There is little load on the CPUs of the standard CPU pool

  • The CPUs of the CPU pool EXCLPOOL always remain under the control of the VM owing to the attribute VM-ACTIVE-IDLE=*AT-DEDICATED-CPUS

(13)

Output of the VM-specific information block for INFORMATION=*TIMER:

  • The CUR-Q and CUR-U columns display the calculated current CPU share and the calculated maximum CPU utilization in relation to the active objects in VM2000 operation (see "Planning distribution of the CPU capacity to the VMs"). These differ from the planned values under idealized conditions (cf. (3)) as only 4 of 6 normal CPUs and only 3 of 4 VMs are active. Each virtual CPU thus runs on a real CPU of the Server Unit.

  • Data for the VM SYSTEM3 is not displayed as no virtual CPU is active in this VM.

(14)

Output of the information blocks for INFORMATION=*COUNTER

(15)

Output of the information blocks for INFORMATION=*SCHEDULE

(16)

The second virtual CPU 01 of the guest system on the VM SYSTEM2 is attached.

(17)

The virtual spare CPU 02 is briefly started and then stopped again.

(18)

The VM2000 administrator checks the resultant changes to the time values.

(19)

The values CUR-Q and CUR-U for the monitor VM are now the same as the planned values EFF-Q and EFF-U as SYSTEM2 is active with two virtual normal CPUs. # indicates the changes to the current CPU share (CUR-Q) for the VMs MONITOR and SYSTEM2, and for the VM group EXTGROUP.

(20)

SYSTEM2, as the only active VM of the VM group EXTGROUP, is assigned all the VM group’s share of the Server Unit’s CPU capacity while SYSTEM3 is not active. * indicates rows which can contain falsified monitored data for ACTIVE times (the virtual CPUs 01 and 02 of the VM SYSTEM2 have been attached and detached in the monitoring interval).

(21)

Three virtual CPUs are now running on two real CPUs in the standard CPU pool. Time slicing (TS) is automatically used for scheduling.

(22)

The VM2000 administrator assigns the VM group EXTGROUP to the CPU pool EXCLPOOL. 1 is selected as the new CPU quota of the VM group, i.e. the VM group and the VM SYSTEM4 are to share the CPU capacity of the CPU pool EXCLPOOL. The command is executed when the number of attached virtual CPUs of every VM in the VM group is less than or equal to the number of attached real CPUs in the CPU pool to which the VM group is to be assigned.

(23)

The changes for all VMs compared to the output above become visible in this output.

(24)

The changes become visible with these commands, too. See also the explanations for (19) and (20).

Note

The CPUs in CPU pool EXCLPOOL are no longer running in the scheduling procedure with a dedicated CPU assignment. Consequently, attribute VM-ACTIVE-IDLE=*AT-DEDICATED-CPUS for VM SYSTEM4 has no effect any longer.