Consultor Eletrônico



Kbase P25356: How to implement SCHED_NOAGE on HP-UX 11.11 and higher
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   23/05/2006
Status: Unverified

GOAL:

How to implement SCHED-NOAGE on HP-UX 11.11 and higher

FIX:

The following script will search for Progress executable names and use the HP tool rtsched to reassign the priority and scheduling profile (rules).
If any custom executables have been made using the PROBUILD or OEBUILD process then please set the appropriate environment variable to point the the custom executable or modify the lines below to set the environment variables to point to the new relevant names.

#!/bin/sh
#If any probuild executables are made then they should also be searched for and added to the pslist variable.
PROSRV=${PROSRV-_mprosrv}
PROEXE=${PROEXE-_progres}
PROSHUT=${PROSHUT-_mprshut}
PROAPSV=${PROAPSV-_proapsv}
PROUTIL=${PROUTIL-_proutil}
pslist=`ps -ef|grep -v grep|grep -i $PROEXE|awk '{print $2}'`
pslist="$pslist `ps -ef|grep -v grep|grep -i $PROSRV|awk '{print $2}'`"
pslist="$pslist `ps -ef|grep -v grep|grep -i $PROSHUT|awk '{print $2}'`"
pslist="$pslist `ps -ef|grep -v grep|grep -i $PROUTIL|awk '{print $2}'`"
pslist="$pslist `ps -ef|grep -v grep|grep -i $PROAPSV|awk '{print $2}'`"
pslist="$pslist `ps -ef|grep -v grep|grep -i _rfutil|awk '{print $2}'`"
pslist="$pslist `ps -ef|grep -v grep|grep -i _dbutil|awk '{print $2}'`"
pslist="$pslist `ps -ef|grep -v grep|grep -i _sqlsrv2|awk '{print $2}'`"
pslist="$pslist `ps -ef|grep -v grep|grep -i java|awk '{print $2}'`"

for i in $pslist
do
{
rtsched -s SCHED_NOAGE -p 178 -P $i
}
done