HP Process Resource Manager (PRM) manual Administering PRM, Moving processes between PRM groups

Models: Process Resource Manager (PRM)

1 154
Download 154 pages 33.55 Kb
Page 89
Image 89

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” (page 101) 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:

1.Use ps -efPto get a list of all the processes on the system. This command shows the PRM groups, PIDs, and parents of the processes.

2.Issue the prmmove command. The syntax is shown below:

prmmove [ targetgrp -i ][-pPID... ][-gpgrp... ][-ulogin... ]

targetgrp cannot be a parent in a group hierarchy. When specifying a leaf group, you can use either its PRMID or its group name.

Consider the following examples:

To move a process with process ID (PID) 100 to the PRM group with PRMID 2:

#prmmove 2 -p 100

To move the same process to your initial group, use the -ioption:

#prmmove -i -p 100

To move multiple processes to your initial group:

#prmmove -i -p 100 -p 101 -p 102

To move the user’s shell (PID indicated by $$ below) to PRM group 15:

#prmmove 15 -g $$

To move all processes owned by user1 to PRM group projectX:

#prmmove projectX -u user1

NOTE: Be careful when using the -uoption: Configured applications that were invoked by the user (those assigned to a specific PRM group in the configuration file) are moved by this option as well.

This has no effect on subsequent logins of user1. To move all of a user’s processes permanently, change the user’s initial group in the configuration file, as discussed in the section “Specifying PRM users ” (page 71).

Displaying application filename matches

Because application records allow wildcards in filenames, keeping track of all the applications that a filename with wildcards matches can be difficult.

Moving processes between PRM groups 89

Page 89
Image 89
HP Process Resource Manager (PRM) manual Administering PRM, Moving processes between PRM groups