Operating System - HP-UX
1748123 Members
3202 Online
108758 Solutions
New Discussion

Re: Job/Proccess Priority in HP-UX

 
tak89
Occasional Visitor

Job/Proccess Priority in HP-UX

Hi All,

 

My system have cron run every minute. When my system have heavy load. All the proccess except the cron under root will be delay to proccess. Is the HP-UX have some priority proccess when handle the heavy load?

10 REPLIES 10
Dennis Handly
Acclaimed Contributor

Re: Job/Proccess Priority in HP-UX

My system cron has: 154 20

 

>My system have cron run every minute. 

 

Do you really need every minute?  Instead you may want to sleep.

 

>Is the HP-UX have some priority proccess when handle the heavy load?

 

It depends on the pri and the nice value.

tak89
Occasional Visitor

Re: Job/Proccess Priority in HP-UX

Hi Dennis Handly,

 

Milos_Lucic
Advisor

Re: Job/Proccess Priority in HP-UX

If you have root acces then you can place your cron in root crontab. Root process have highest priority.

Dennis Handly
Acclaimed Contributor

Re: Job/Proccess Priority in HP-UX

>

 

 

>Root process have highest priority.

 

Not unless you use super user to change the nice value.

tak89
Occasional Visitor

Re: Job/Proccess Priority in HP-UX

>

 

What are they doing is same checking the system status and send over to our central server monitoring.

 

>>Root process have highest priority.

>Not unless you use super user to change the nice value.

 

if like that, why the root cronjob is not effected?

Dennis Handly
Acclaimed Contributor

Re: Job/Proccess Priority in HP-UX

>if like that, why the root cronjob is not effected?

 

Are you saying that the cronjobs are exactly the same, except the user is different?

Milos_Lucic
Advisor

Re: Job/Proccess Priority in HP-UX

Check if cron runs

 

ps -ef  | grep cron

if cron doesn't runing

 

/sbin/init.d/cron start

sapoguheman
Frequent Advisor

Re: Job/Proccess Priority in HP-UX

Try to set nice value.

uxbeginner22
Trusted Contributor

Re: Job/Proccess Priority in HP-UX

Nice for new process

renice for process already running.

With ps you can see also PRI and NICE values of your process

For oracle stuff here's a nice guide

 

http://docs.oracle.com/cd/B19306_01/server.102/b15658/appb_hpux.htm#UNXAR347