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