cpupstat Command
Purpose
Detects configurations that could cause a CPU DR operation to fail.
Syntax
Description
The purpose of this command
is to detect configurations that could cause a CPU DR operation to
fail. There are multiple steps to the command.
- Parse and validate the input.
- Check all the WLM class control block rsets for rsets with a single active CPU matching the passed in CPU. Class control block rsets are located in ccb[cid]->cl_rset, to iterate through all of them the value of CID must be incremented and class validity checked for each possible value. A count of the number of classes with such an rset will printed. If the verbose option is given, the names of the classes will be printed as well.
- Check all the kernel registry rsets for rsets with a single active cpu matching the passed in CPU. A count of the number of processes with attachments to such rsets will be printed to the user. If the verbose option is given, the process IDs will be printed as well.
- A count of bindprocessor attachments for the highest numbered bind ID will be printed for the user. If the verbose option is given, the process IDs will be printed as well.
Flags
Item | Description |
---|---|
-i | The index of the logical CPU ID. |
-v | Verbose option. |
Exit Status
If an error is encountered in the execution a suitable error message is written to stderr, and the command exits with a non-zero exit status.
Examples
-
# cpupstat -i 2 3 WLM classes have single CPU rsets with CPU ID 2. 0 processes have single CPU rset attachments with CPU ID 2. 0 processes are bound to bind ID 2.
-
# cpupstat -v -i 2 3 WLM classes have single CPU rsets with CPU ID 2. c1 c1.Default c1.Shared 0 processes have single CPU rset attachments with CPU ID 2. 0 processes are bound to bind ID 2.
-
# cpupstat -i 2 0 WLM classes have single CPU rsets with CPU ID 2. 2 processes have single CPU rset attachments with CPU ID 2. 0 processes are bound to bind ID 2.
-
For bound processes, the last list, the output is the same as for rset attachments, where the PID gets printed if the -v option is specified.# cpupstat -v -i 2 0 WLM classes have single CPU rsets with CPU ID 2. 2 processes have single CPU rset attachments with CPU ID 2. 16600 26444 0 processes are bound to bind ID 2.
Location
/usr/bin/cpupstat