HP Process Resource Manager User's Guide

Chapter 9 173
9 Administering PRM
This chapter explains the tasks involved in the daily administration of
PRM.
Various PRM commands are mentioned in this chapter. See “Command
reference” on page 201 for information on these commands.
Moving processes between PRM groups
This section explains how to move a process from one PRM group to
another. You might want to move a process to a different PRM group if it
is either not getting enough of or using too much of the resources
allocated to its current group.
You can move processes by:
Process ID
Process group ID
User login
To move a process:
Step 1. Use ps -efP to get a list of all the processes on the system. This
command shows the PRM groups, PIDs, and parents of the processes.
Step 2. Issue the prmmove command. The syntax is shown below:
prmmove [ targetgrp | -i ][-p PID ... ][-g pgrp ... ][-u
login ... ]
targetgrp cannot be a parent in a group hierarchy. When specifying a
leaf group, you can use either its PRMID or its group name. For
information on hierarchies, see “Hierarchical PRM groups” on page 38.
Consider the following examples:
To move a process with process ID (PID) 100 to the PRM group with
PRMID 2:
# prmmove 2 -p 100