what the blog?

{upgrade in progress..}

HPUX Managing CPU resource with PRM

Overview

Process Resource Manager (PRM) is a resource management tool used to control the amount of resources that processes use during peak system load (at 100% CPU resource or 100% memory resource). PRM can guarantee a minimum allocation of system resources available to a group of processes through the use of PRM groups.
A PRM group is a collection of users and applications that are joined together and assigned certain amounts of CPU and memory resource. The two types of PRM groups are FSS PRM groups and PSET PRM groups. An FSS PRM group is the traditional PRM group, whose CPU entitlement is specified in shares. This group uses the Fair Share Scheduler (FSS) in the HP-UX kernel within the system’s default processor set (PSET). A PSET PRM group is a PRM group whose CPU entitlement is specified by assigning it a subset of the system’s cores (PSET). (A core is the actual data-processing engine within a processor. A single processor might have multiple cores. A core might support multiple execution threads.) Processes in a PSET have equal access to CPU cycles on their assigned cores through the HP-UX standard scheduler.

Commands

#Configure PRM, initiate /etc/prmconf configuration file
prmconifg -i

#Check the configuration file settings
prmconfig -s

#Enable PRM
prmconfig -e

#Disable PRM
prmconfig -d

#Monitor PRM
prmmonitor

#List available PRM resource
prmavail

Configuration flow

1. Gather the basic resource information by prmavail
2. Initiate /etc/prmconf and start editing
3. Define the FSS group
4. Define the Resource type and limit
5. run prmconfig -i -e to enable PRM
6. Enable auto start up in /etc/rc.config.d/prm

PRM_CONFIG=1
PRM_ENABLE=1

SAMPLE Configuration

For users (/etc/passwd), SHARE basis 50% for GROUPA

#unix username::::FSS group name
user1::::GROUPA
user2::::GROUPA

#FSS_Group_Name:PRMID:LIMIT::
OTHERS:1:50::
GROUPA:2:50::

For unix users (/etc/passwd), PSET basis, assign 3 CPU core to GROUPA

Specify GROUPA unitize 3 core and the core id is 1,2,3, note that, you can’t specify core 0, that’s mean if you have 4 core CPU (ioscan -fnkC processor; will display 4 entries), you just can use 3 of them.

user1::::GROUPA
user2::::GROUPA

OTHERS:1:100::

#FSS_Group_Name:TYPE:::CORES:CORE_LIST
GROUPA:PSET:::3:1,2,3

For unix group?

!UXGRP:usersgroup:GROUPA

OTHERS:1:50::
GROUPA:2:50::

http://sysdoc.doors.ch/HP/B3834-90016.pdf

hpuxprm

levin • March 2, 2010


Previous Post

Next Post

Leave a Reply