Critical-Thread

From pressy's brainbackup
Jump to: navigation, search

Critical Thread

Solaris should enable a critical thread for a process if necessary... To force it:

# priocntl -s -c FX -m 60 -p 60 -i pid <pid>


Oracle DB Critical Thread

Saw that on SuperCluster installations, so it might be always a good idea to force:

put that in your crontab:

#!/usr/bin/bash

ORA_PIDS=$( ps -efc | egrep '[o]ra_|[a]sm_|[m]db_' | egrep '_[l]ms|_[l]gw|_[v]ktm' )
LMS_VKT_RT_PIDS=$( echo "$ORA_PIDS" | egrep 'RT.*lms|RT.*vktm|TS.*lms|TS.*vktm'| awk  '{print $2}' )
LGW_TS_FSS_PIDS=$(echo "$ORA_PIDS" | egrep 'TS.*lgw|FSS.*lgw'|awk '{print $2}')
for PID in $LMS_VKT_RT_PIDS $LGW_TS_FSS_PIDS
do
ps -ef -o pid,class | grep $PID | grep FX  || \
        priocntl -s -c FX -m 60 -p 60 $PID
done