Running VM Monitor
To define the accounts
As part of installing UIE/VM, you need to define the VM accounts as follows:
Account | Class | Virtual storage | 3390 Cylinders | Block |
---|---|---|---|---|
UIEDRIVE | EG | 4M | 20 | 1K |
UIEMON | CEG | 32M | See the note that follows | 4K |
UIERUN | G | 64M | 100 | 4K |
UIEVM | G | 4M | 12 | 4K |
UIEDRIVE controls the VM Monitor data collection process. You run UIEMON EXEC on this account to send VM Monitor commands to the UIEMON account. This provides a mechanism to sample SEEKS records by alternately enabling and disabling the SEEKS domain. BMC Software recommends that you sample SEEKS records so that device usage information reported by UIE/VM can be as accurate as possible. UIEDRIVE should be given permission to XAUTOLOG and send commands to UIEMON and UIERUN. The following is a sample of a UIEDRIVE directory entry. A sample PROFILE EXEC called UIEDRIVE PROFILE is included on the UIE/VM distribution tape.
INCLUDE IBMDFLT
CPU 00 NODEDICATE
MACHINE ESA
IPL CMS PARM AUTOCR
CONSOLE 009 3270
LINK MAINT 19E 19E RR
MDISK 191 3390 2871 1 volser MR ALL readpw writepw
UIEMON is the account that runs the VM Monitor. UIEMON must be logged on with access to the necessary tape drives or project disk, before UIEDRIVE attempts to start the VM Monitor data collection process. A sample PROFILE EXEC called UIEMON PROFILE is included on the UIE/VM distribution tape.
When defining UIEMON, you need to include several directory entries, as follows:
XAUTOLOG UIEDRIVE
OPTION APPLMON
IUCV *MONITOR MSGLIMIT 255
NAMESAVE MONDCSS
CONSOLE vdev 3270 T UIEDRIVE
vdev is the virtual device number for the virtual console (for example, 3E0). The following is a sample of a UIEMON directory entry:
INCLUDE IBMDFLT
IUCV *MONITOR MSGLIMIT 255
CPU 00 NODEDICATE
MACHINE ESA
IPL CMS PARM AUTOCR
XAUTOLOG UIEDRIVE
OPTION APPLMON
NAMESAVE MONDCSS
CONSOLE 009 3215 T UIEDRIVE
LINK MAINT 19E 19E RR
MDISK 191 3390 5001 5000 ZVM281 MW readpw writepw multpw
UIERUN is the account from which you run UIE/VM. This account needs to link to and obtain read access to the UIEVM disk. When defining UIERUN, you need to include XAUTOLOG UIEDRIVE. The UIERUN memory requirements increase when:
- More intervals are processed per run
- More workloads are defined
- CMS users are included in the Visualizer file
The following is a sample of a UIERUN directory entry:
INCLUDE IBMDFLT
CPU 00 NODEDICATE
MACHINE ESA
IPL CMS PARM AUTOCR
CONSOLE 009 3215
LINK MAINT 19E 19E RR
MDISK 191 3390 0635 0150 VOLSER MR ALL readpw writep
UIEVM is the disk on which the UIE/VM software is to be installed. After UIE/VM is installed on this disk, no additional action on this disk is required. For more information, seeInstalling UIE/VM section in the BMC AMI Capacity Management documentation.
The following is a sample of a UIE/VM directory entry:
INCLUDE IBMDFLT
CPU 00 NODEDICATE
MACHINE ESA
IPL CMS PARM AUTOCR
CONSOLE 009 3215
LINK MAINT 19E 19E RR
MDISK 191 3390 1000 0150 VOLSER MR ALL readpw writepw
Deciding whether to collect VM Monitor data on tape or disk
Before deciding whether to collect VM Monitor on a disk or a tape, consider the advantages of each.
The advantages of collecting VM Monitor on disk:
- This method requires less user intervention making the process easier to automate
- VM Monitor data processing proceeds more quickly
The advantages of collecting VM Monitor data on tape:
- Disk space requirements are dramatically lower
- VM Monitor data can be archived
Collecting on disk
If you collect VM Monitor data on disk, you need to give UIEMON (or a project disk to which UIEMON has write access) a large amount of disk space as described in To define the accounts section. If you collect data for more than 22 hours per day on a daily basis, then the disk must be large enough to hold two days worth of data. In this case, UIE/VM can process one VM Monitor data file while another VM Monitor data file is being collected. If you collect data for fewer than 22 hours a day, then UIE/VM has a window of 2 hours or more to process the VM Monitor data before the collection for the next day begins.
Collecting on tape
If you collect VM Monitor data on tape, you need to decide if you want to devote one or two tape drives to the process.
- If you use a single tape drive, then that tape drive must be attached at address 181 after you log on to UIEMON. When the tape is filled, it is ejected from the tape drive and a blank must be inserted.
- If you use two tape drives, then those tape drives must be attached at addresses 181 and 182 after you log on to UIEMON. When a tape is filled, it is ejected, and VM Monitor data is written to the tape in the other tape drive. You need to be sure that a blank tape has been inserted into the tape drive that is not in use before the tape in the drive that is in use is filled.
If you collect VM Monitor on tape, we recommend that you devote two tape drives to UIEMON. Devoting two tape drives enables VM Monitor to switch to the other drive when the tape in the active drive is filled. If you just use one tape drive, a gap in the data will begin whenever a tape is filled, and that gap will persist until the tape has been rewound and ejected and a new tape has been inserted.
Setting up the UIEMON EXEC on the UIEDRIVE account
An EXEC called the UIEMON EXEC is distributed on the UIE/VM product tape. You should copy the UIEMON EXEC to the UIEDRIVE account. The top several lines of UIEMON EXEC have several parameters that need to be tailored. The parameters are as follows:
Parameter | Explanation |
---|---|
stop_time | The time, format HHMM for hour and minute, to stop the Monitor each day. We recommend that you do not run the VM Monitor beyond 11:45 p.m. (2345). UIE/VM cannot process data over a midnight boundary. You need to be sure to stop the Monitor before midnight. |
sampint | A period, in minutes, after which VM Monitor sample data is reported. We recommend a value of 1. Higher values conserve space. Lower values enhance accuracy. This value should not be more than one third the size of your intended UIE/VM interval. For example, if you intend to process 15 minute intervals with UIE/VM, then the VM Monitor sample interval should be no greater than 5 minutes. |
samprate | The frequency, in seconds, at which sample data is going to be sampled. We recommend a value of 2. A higher value conserves space – 30 is the maximum. The sample rate duration must be less than or equal to the sample interval duration. |
scheduler | If set to 0, scheduler domain records are not collected. If set to 1, scheduler domain records are collected. UIE/VM does not use these records, but another application might use. |
processor | If set to 0, processor domain records are not collected. If set to 1, processor domain records are collected. UIE/VM does not use these records, but another application might use. |
appldata | If set to 0, appldata domain records are not collected. If set to 1, appldata domain records are collected. UIE/VM does not use these records, but another application might use. |
seekint | A period, in seconds, from which you are taking a SEEKS record sample. If set to 0, then SEEKS records are not collected. If SEEKS are collected, we recommend a value of 5. A higher value conserves space. This value must divide evenly into 60. |
seeksamp | The amount of time, in seconds, within the SEEKS interval to sample. If set to 0, then SEEKS records are not collected. We recommend a value of 1. A higher value increases space requirements. Seeksamp must be less than seekint. |
numtape | Indicates where UIEMON writes the VM Monitor data. If 1 is specified, then UIEMON writes the VM Monitor data to a single tape drive at address 181. If 2 is specified, then UIEMON writes the VM Monitor data to two tape drives at addresses 181 and 182. If 0 is specified, then VM Monitor data is written to the file identified by the mon_name, mon_type, and mon_mode parameters. |
mname | If you are collecting VM Monitor data on disk, the file name of the output file. |
mtype | If you are collecting VM Monitor data on disk, the file type of the output file. |
mmode | If you are collecting VM Monitor data on disk, the file mode of the output file. |
mm | Indicates the VM monitor output file mode |
mvm | Indicates the user, such as UIEMON, which runs the VM monitor. |
Parameter settings in the UIEMON EXEC
Example 1
stop_time = 1700
sampint = 1
samprate = 2
scheduler = 0
processor = 0
appldata = 0
seekint = 5
seeksamp = 1
numtape = 0
mname = 'MONITOR'
mtype = 'DATA'
mtype2 = 'PROCESS'
mon_mode = 'J'
mvm = 'UIEMON'
In this example, the Monitor is stopped at 17:00 (5:00 P.M.). The Monitor sample interval is 1 minute, with a sampling rate of 2 seconds. For every 5 second period, 1 second of SEEKS records is recorded. The VM Monitor data is written to disk file called MONITOR DATA. UIEMON must obtain write access to a disk at file mode J.
When collection of VM Monitor data is complete, the VM Monitor file is renamed to have a file type of PROCESS. VM Monitor data from the SCHEDULER, PROCESSOR, and APPLDATA domains is not collected.
Example 2
stop_time = 2345
sampint = 2
samprate = 5
seekint = 0
seeksamp = 0
numtape = 2
In this example, the Monitor is stopped at 23:45 (11:45 P.M.). The Monitor sample interval is 2 minutes, with a sampling rate of 5 seconds. No SEEKS records are recorded. The VM Monitor data is written to tape. UIEMON has access to two tape drives at addresses 181 and 182.
Automating VM Monitor data collection and processing
After you have set up the accounts that are necessary to run VM Monitor and have defined the parameters that you plan to use to collect data, you can run the process on an automated basis. Perform the following steps:
- Have your VM Systems Programmer set up UIEDRIVE so that it is logged on automatically a few minutes before you want to start VM Monitor data collection. Or begin just after midnight if you want start the VM Monitor at the very beginning of the day.
At the end of the PROFILE EXEC on UIEDRIVE, add the lines:
‘EXEC UIEMON’
‘CP LINK uievm 191 401’ /* (where uievm is the UIE/VM installed disk) */
‘ACCESS 401 J’
‘EXECIO 0 CP (str XAUTOLOG UIERUN IPL CMS SYNCH #EXEC UIERUN study #LOGOFF’ /*
(where study is the name of a UIE/VM study) */
‘LOGOFF’If you are processing more than 22 hours of data a day and if you are collecting VM Monitor data on disk, you need to rename the VM Monitor file before you start processing it using UIE/VM. Then the collection of the VM Monitor data for the next day can begin while UIE/VM is running. You should define your UIE/VM study to use that new name.
By default, this is done in UIEMON EXEC. If you do not need to rename the VM Monitor file in UIEMON EXEC, you can comment out the following line:'EXECIO 0 CP (str SEND' mvm 'RENAME' mname mtype mm mname mtype2 mmThese statements appear in the UIEMON EXEC. You can comment them out or uncomment them, as necessary. A sample PROFILE EXEC called UIEDRIVE PROFILE is included on the UIE/VM distribution tape.
- If you are collecting VM Monitor data on tape, the appropriate tape drives need to be accessed by UIEMON after logging on. After collection of a day's VM Monitor data is complete, the tapes containing that data must be made available to UIERUN, the VM account that uses UIE/VM to process the VM Monitor data.
Running the VM Monitor manually
UIE/VM uses data from the VM Monitor domains in the following table:
Domain | Domain name | Notes |
---|---|---|
0 | SYSTEM | Always enabled by the VM Monitor |
1 | MONITOR | Always enabled by the VM Monitor |
3 | STORAGE | |
4 | USER | Should be enabled for all users |
6 | I /O | Should be enabled for all DASD and tape devices |
7 | SEEKS | (Optional) Can be sampled, and when used, should be enabled for all DASD and tape devices |
If you want to run the VM Monitor manually rather than by using the UIEMON EXEC, enter the following commands:
MONITOR SAMPLE ENABLE ALL
MONITOR EVENT DISABLE SEEKS ALL
MONITOR EVENT DISABLE SCHEDULER ALL
MONITOR EVENT DISABLE PROCESSOR
MONITOR EVENT DISABLE APPLDATA ALL
MONITOR SAMPLE DISABLE PROCESSOR
MONITOR SAMPLE DISABLE APPLDATA ALL
MONITOR SAMPLE INTERVAL 1 MINUTES
MONITOR SAMPLE RATE 5 SECONDS
MONITOR EVENT START
MONITOR SAMPLE START
MONWRITE MONDCSS *MONITOR DISK MONITOR DATA A
Avoiding Monitor Suspension Records
A Monitor Suspension Record (Domain 1 Record 3) shows the count of Event Records lost due to DCSS overflow, or loss of the IUCV path to MONWRITE. You may need to enlarge the MONITOR DCSS. For capacity planning studies, you should avoid intervals that contain Monitor Suspension Records.
Moving Monitor Data from disk to tape or from tape to disk
The writer virtual machine can use MONWRITE to write MONITOR data from the MONITOR saved segment (DCSS) to disk or tape. UIE/VM processes the data from both mediums as long as it is in MONWRITE format. Monitor data written to disk file fileid can be transferred to tape with the following statements:
FILEDEF OUT TAP1 (RECFM FB LRECL 4096 BLKSIZE 28672
MOVEFILE IN OUT
The sequence of steps outlined preserves the format of the data. However, do not use the VMFPLC2 or TAPE commands to transfer Monitor disk files to tape because they do not preserve the format of the data.