1753821 Members
8872 Online
108805 Solutions
New Discussion юеВ

Re: Process

 
Indrajit Bhagat
Regular Advisor

Process

How to check the Process running in background, & if suppose some process consuming more , then how can we can we change the nice value?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Process

Shalom,

http://www.hpux.ws/?p=8

This script will help you. You may want to modify the parameters, your choice. Read the docs on the site.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Indrajit Bhagat
Regular Advisor

Re: Process

Is there not any commands to check it ?
Bill Hassell
Honored Contributor

Re: Process

You can see the priority of each command using the -f option in ps. If you want to see the processes sorted by CPU usage, just run the command: top. NOTE: unless the processes are not doing any I/O (disk, network), there isn't a lot you can do to give more resources to one process versus another. The priority will be changing several times each second. Now if this is a real problem, you need to look at Process Resource Manager (PRM), a priced product from HP.


Bill Hassell, sysadmin
Kapil Jha
Honored Contributor

Re: Process

You can use top and ps command to see various stats of I/O,cpu memory utilization.
To change priority use "nice" command.
BR,
Kapil
I am in this small bowl, I wane see the real world......
Dennis Handly
Acclaimed Contributor

Re: Process

>Kapil: To change priority use "nice" command.

nice(1) only works at the start. If you want to change it later use renice(1):
$ renice -n 20 PID
Kapil Jha
Honored Contributor

Re: Process

Thanks Dennis :) !!!!
I am in this small bowl, I wane see the real world......