HP Process Resource Manager User Guide
Legal Notice
Contents
Using PRM with HP Systems Insight Manager SIM
PRM configuration planning
Setting up PRM
Using PRM with HP System Management Homepage SMH
Administering PRM
Fine-tuning your PRM configuration
Ovpm
Command reference 101
Glossary 145 Index 148
Notational conventions
Preface
New in this edition
Supported platforms
Providing feedback
Associated documents
Support and patch policies Training
Overview
What is HP Process Resource Manager?
Introduction to PRM commands
Why use HP Process Resource Manager?
Resources managed by PRM
Standard HP-UX resource allocation
How PRM can improve on standard allocation
Balancing resource use between users
Prioritizing resource use for applications
Prioritizing resource use between users
Isolating resource use for applications and users
Limiting resource consumption
Understanding how PRM manages resources
How PRM controls resources
PRM groups
Processor sets example
Resource allocation
What are processor sets?
How processor sets work?
Converting shares to percentages
Altered configuration
What are shares?
How shares work
Parent, child, sibling, and leaf PRM groups
Hierarchical PRM groups
Hierarchical PRM groups-Development’s child groups
Hierarchical PRM groups-top level
How PRM manages CPU resources
PRM CPU resource management
Example PRM CPU resource management
Capping CPU resource use
CPU allocation and number of shares assigned
How PRM manages CPU resources for real-time processes
Hyper-Threading
Multiprocessors and PRM
How HP-UX manages memory
How PRM manages real memory resources
Available memory
How PRM controls memory usage
Example of available memory on a 1024-Mbyte system
Reducing memory shares
Capping memory use
Implementation of shares and caps
Isolating a group’s private memory resources
How PRM manages shared memory
How PRM manages locked memory
Locked memory distribution
Example memory management
How PRM manages applications
How resource allocations interact
How PRM handles child processes
Pattern matching for filenames
PRM’s group assignments at process start-up
Opt/specialapps/bin/*GroupS
Pattern matching for renamed application processes
Precedence of PRM group assignments
Phonehome
Myfavoriteapp
Prmrun -g GroupA barnone
Bar
Understanding how PRM manages resources
Budget model configurations
PRM configuration planning
Using multiple configurations
Selecting a configuration model
Application priority model configurations
MEM
Quick analysis
Identifying resource use
Detailed analysis
Using prmanalyze to quickly identify resource use
Initial configuration based on prmanalyze’s CPU report
#prmanalyze -s command -r mem -p -t summary -1filename
Initial configuration based on prmanalyze’s memory report
25%
Installing PRM Setting PRM to start automatically at reboot
Setting up PRM
Installing PRM
Setting PRM to start automatically at reboot
Using PRM with HP System Management Homepage SMH
Quick start to using PRM’s SMH interface
#/opt/prm/bin/prmsmhconfig -c
#ps -efP
Using PRM with HP Systems Insight Manager SIM
Configuring user authorizations
What PRM tasks are available through SIM?
Role PRM operator
Quick start to using PRM’s SIM interface
Role PRM administrator
HP SIM toolboxes needed for PRM administrator role
#ps -efP
#prmconfig -i -fconfigfile
Configuring and enabling PRM on the command line
Quick start to using PRM’s command-line interface
#prmconfig -s -c -fconfigfile
Configuring PRM
PRM configuration file
#prmconfig -e
Configuration tips and requirements
Reserved PRM groups
Specifying PRM groups/controlling CPU resource use
Development/Compilers/Fortran
Group/CPU record syntax
Hier
Explained in the section Group/CPU record syntax
Adding/modifying PRM groups and CPU allocations
Removing groups/CPU allocations
Capping CPU resource use
Controlling memory use
Memory record syntax
Private memory
#!PRMMEM
Megabytes
Shared memory
Explained in the section Memory record syntax
#prmconfig -e MEM
Adding/modifying private memory shares/caps
Adding/modifying shared memory allocations
Removing shared memory allocations
Removing private memory shares
Isolating private memory for a group
Application record syntax
Controlling applications
Duplicate application records
Missing applications are ignored
See Pattern matching for filenames
See Launching a Java program under PRM
Adding/modifying an application’s group assignment
# prmmove critapps -g
#prmconfig -e Appl
# prmconfig -k
Removing an application’s group assignment
# prmrun criticalapp
Launching an application under PRM
#prmrun -g sales CustomerOrder
Launching a script under PRM
Launching an application in its assigned group
Launching an application in a user-specified group
Prmmove -p $$groupname
Specifying PRM users
Launching a Java program under PRM
User record syntax
Displaying netgroup expansions
User
Adding/modifying a user’s group assignment
Removing a user’s group assignment
Example Changing the initial group of a user
#prmmove purchasing -u advisor6
Compartment record syntax
Assigning secure compartments to PRM groups
Adding/modifying a compartment’s group assignment
Removing a compartment’s group assignment
Explained in the section Compartment record syntax
Assigning Unix groups to PRM groups
Unix group record syntax
Adding/modifying a Unix group’s PRM group assignment
Explained in the section Unix group record syntax
Removing a Unix group’s PRM group assignment
Loading the PRM configuration
Checking the configuration file
Enabling resource managers
Loading the PRM configuration with prmconfig
Differences in loads when a configuration is already loaded
Prmconfig
Updating the configuration
Enabling resource managers with prmconfig
Enabling specific resource management on the command line
#prmconfig -i -fconfigfile -s -c
Using prmanalyze to analyze your configuration
Fine-tuning your PRM configuration
#prmanalyze -r mem -E -1 -t hourly -s prmid myacct
Example Locating system bottlenecks
Daily weekly monthly
#prmanalyze -r cpu -1 -t hourly -s prmid myacct
#prmanalyze -s prmid -r cpu -p -t daily -x 0 filename
Example Checking for patterns and configuration accuracy
Example High-level views of usage
#prmanalyze -t weekly -d 16 *.acct98 Jan.acct99 Feb.acct99
Using GlancePlus to analyze your configuration
GlancePlus information on PRM
Analyzing memory use
Var/adm/syslog/syslog.log file
#prmconfig -L MEM Stop
#ps -ef grep prm2d
#tail -f /var/adm/syslog/syslog.log grepPIDofcurrentprm2d
Administering PRM
Moving processes between PRM groups
Displaying application filename matches
#prmlist
Displaying netgroup expansions
Bin/b*Bapplications
#prmlist -a
#prmlist -u +prime
Displaying accessible PRM groups
Displaying state and configuration information
#prmconfig
Setting the interval with prmconfig
Displaying application and configuration information
Setting the memory manager’s polling interval
Setting the application manager’s polling interval
Disabling PRM
Resetting PRM
Disabling PRM with prmconfig
Resetting PRM with prmconfig
Logging PRM application messages
Controlling memory logging with prmconfig
Controlling application logging with prmconfig
Logging PRM memory messages
#prmmonitor 30
Displaying groups’ allocated and used resources
Displaying user information
Displaying available memory to determine number of shares
Displaying number of cores to determine number of shares
Displaying past process information
Displaying current process information
Mwa restart scope
Monitoring PRM with GlancePlus
#ps -R Others
Log global application=prm process dev=disk,lvm transaction
PRMSLEEP=n
Automating PRM administration with scripts
Protecting the PRM configuration from reboots
PRMCONFIGFILE=/etc/opt/prm/conf/dayconf.prm
PRMINTLAPPL=seconds
Reconstructing a configuration file
Internal copies of configuration files
Special case of interest Client/server connections
Backing up PRM files
Online cell operations
Plock
Command reference
Prmagt Prmagt -plock -stop -intervalseconds
Prmagt user options/parameters
Prmanalyze -s command -r cpu -t summary /var/adm/pacct
Stop
Interval seconds
Disk mem cpu
Auto uid gid command prmid
Fconfigfile
Prmanalyze options/parameters
Daily , weekly , monthly
Summary conflict hourly daily weekly monthly
Conflict
Hourly
Xexcludevaluekey
Prmavail Prmavail -p -f CPU Disk MEM
Dresourcedensity
Mminimumduration
Prmconfig user options
Prmconfig root user options
Configfile-i -k -s -c
Configuration lock already held by %s
Manager
Iintervalmanager
Mmode
Prminitconfig -a -r -h
Prmconfig -r to reset
Lmanager logarg
Group
Prminitconfig options/parameters
Prmloadconf Prmloadconf -fconfigfile
Prmlist user options
Prmloadconf root user options
Interval
Differences in output from prmmonitor and top
Prmmonitor user options/parameters
Resource
Prmrecover Prmrecover resource
Prmrecover user options/parameters
Prmmove user options/parameters
Prmrun user options/parameters
Prmsmhconfig -c -u -h
Prmsmhconfig options/parameters
Prmrun -w
Scomp2prm options/parameters
Prm2scomp -pprmpath-sscomppath-i
Prm2scomp options/parameters
Scomp2prm -m -pprmpath
Fbasepath
Srpgen options/parameters
HP-UX command/system call support
HP-UX commands/system calls that support PRM groups
PRM options in HP-UX commands
Structure of PRM’s Snmp data prmReadOnly
Monitoring PRM through Snmp
Using OpenView’s snmpwalk
Accessing PRM’s Snmp data
#/opt/OV/bin/xnmbrowser
Using OpenView’s xnmbrowser
#/opt/prm/bin/prmagt
Start xnmbrowsesr
Enter public in the field Community Name
Navigate to the PRM’s data by following the hierarchy
Monitoring PRM through Snmp
Graphing resource usage
Monitoring PRM through Snmp
Mailserver
PRM groups in xnmbrowser graph
Databases/inventory
Databases/order
Creating Secure Resource Partitions
SERVICECMD0=/opt/prm/bin/prmrun -g mathdeptapplication
Using PRM with Serviceguard
EOF1
PRM and Virtual Machines
Using PRM with HP Integrity Virtual Machines
PRM resource managers disabled
PRM error messages
Prmmonitor error messages
PRM is not configured
Prmconfig error messages
-f option requires an argument
Message Cannot display configuration. PRM is not configured
Message PRM is disabled and not configured
Message The -i and -k options cannot be used together
Prmconfig command
-M option requires a keyword argument
Unrecognized keyword argument for -M option
Prmmove error messages
User %s does not have permission to move process %d
Could not find group %s in configuration file
Requires users to be specified by login names
Requires that PRM be configured
Prmrun error messages
Application file %s is empty
Could not launch application %s in group %sperror
Users Path environment variable is empty
Application file %s does not exist
Prmlist error messages
Please specify only one -s option
Could not find group %s in the configuration file
Could not find user %s in the configuration file
Could not find full path of application %s
Prmrecover error messages
Prmloadconf error messages
Prmavail error messages
Prmanalyze error messages
Unable to read event temp file %s
Unable to create temp file in /tmp
Unable to open temp file %s
File format with acctcom
Prmagt error messages
Alternate group
Glossary
Others group
UID
CPU
Index
Syntax, 111 prmrecover
Index