prmmonitor -V

prmmonitor [resource STOPPED] [-h] [-w] [-t] [-s] [interval[iterations]]Availability: Any user can run the prmmonitor command.

The prmmonitor command displays statistics calculated over specified intervals. Use this command to show the percentage of CPU and memory allocated to, and used by, PRM groups. By default, prmmonitor prints one iteration of CPU and memory resource information after a one-second wait. It also lists the name and timestamp of the configuration file.

Table 24 shows the available options.Table 24 prmmonitor user options/parameters

Option/parameter

Description

No options

Displays allocation and actual use of CPU and memory resources by PRM group.

 

 

-V

Displays version information and exits.

 

 

resource

Specifies the resource for which statistics are displayed. Valid resource keywords are:

 

CPU

 

MEM

 

MRG

 

 

(providing additional memory resource information for kernels with in-kernel memory controls)

 

/dev/vxxx

 

 

(where xxx completes the name of a valid logical volume group or disk group)

 

If a resource is not specified, statistics are displayed for CPU and memory resources.

 

 

STOPPED

Displays ps-like output for all processes stopped by the memory manager.

 

 

-h

Includes parent hierarchical groups in output. )

 

 

-w

Prints the PRM group names in wide-column format, exceeding the 30-column default if necessary

 

to avoid clipping any names.

 

 

-t

Lists the statistics without table headers.

 

 

-s

Starts output at PRMID 0 instead of 1.

 

 

interval

Specifies the length in seconds of the sample interval. The HP-UX memory manager typically

 

samples memory data every 10 seconds, so if you specify an interval value less than 10

 

seconds, the same memory statistics may be repeated in sequential displays.

 

 

iterations

Specifies the number of samples to take; if iterations is not specified, prmmonitor

 

continues until terminated with a CTRL-C.

 

 

 

Differences in output from prmmonitor and top

The prmmonitor output shows the MRG for a process, while the top output shows the PRM group for the process. Typically, the MRG and PRM group for a process match. However, the values may differ temporarily when a process is first moved to a new PRM group.

prmmove

Syntax:

prmmove -V

prmmove [-w]prmmove [targetgrp -i ][-pPID... ][-gpgid... ] [-u login ... ]Availability: Any user can run the prmmove command.

The prmmove command lets you dynamically move one or more processes between PRM groups. It also lists the process groups you can access.

prmmove 111