Operating System - HP-UX
1833866 Members
2769 Online
110063 Solutions
New Discussion

Set Process Priority Help

 
SOLVED
Go to solution
Steven Chen_1
Super Advisor

Set Process Priority Help

Hi,

I would like to see if there is way to set Oracle import process into Unix priority. Unix is 11i 64bit, no other processes exist. But it takes a long time to complete. I would like to make it faster.

Could that be done? Would that be nice command?

Thanks,

Steven
Steve
4 REPLIES 4
harry d brown jr
Honored Contributor
Solution

Re: Set Process Priority Help


If the process is already running, thne do a renice:

renice -n -20 pid

if you want to start it that way, do this:

nice -n -20 command
Live Free or Die
James R. Ferguson
Acclaimed Contributor

Re: Set Process Priority Help

Hi Steven:

The 'nice' and 'renice" commands set and alter process priorities. Take a look at the man pages for both.

You say that your Oracle import is taking a long time and you want to make it run faster. CPU starvation may not be the only cause. What does your entire system look like during the import? Are the disks involved in the import particularly busy? Is there a high CPU run queue?

You could gather a better idea here by running 'glance' during the import process and looking not only at the import task but also other processes and global metrics.

Regards!

...JRF...
Ted M Johnson_1
Frequent Advisor

Re: Set Process Priority Help

...and Steven, if this is a really high priority for your commpany, you might want to look into the Process Resource Manager product. Then, you can not only set the priority higher, but you can turn other things down, and do this all automagically ;-)

-ted
Eugen Cocalea
Respected Contributor

Re: Set Process Priority Help

Hi

nice -

priority can be from -20 to 20 so you can

nice --20 #highest

to

nice -20 #lowest

E.
To Live Is To Learn