[HPADM] Re: HP-UX equivalent for : a) cpulimit b) kill -STOP / -CONT



Hi again,


Btw, would "renice +15 -p pid" helps reduce the CPU utilization?
If renice only make the process give way to other process waiting
in the queue but once no other processes are using the CPU
anymore, this CPU hungry process would resume back 100%
utilization of CPU, then renice is not what I'm looking for.


Thanks again
U


On Tue, Apr 6, 2010 at 6:37 PM, sunhux G <sunhux@xxxxxxxxx> wrote:

Hi


I'm looking for something equivalent for HP-UX for the following :
http://www.cyberciti.biz/faq/cpu-usage-limiter-for-linux/


Sometimes a process hogs the CPU that it triggers alert
& slows down other processes but I can't kill this process.


In Linux, there's something call "kill -STOP & kill -CONT pid".
Alternatively, I thought of using a script to average it out :
kill -STOP pid # pause execution of the process so it doesnt chew CPU
sleep 1
kill -CONT pid # resume it
sleep 1
kill -STOP pid
sleep 1
......


What's the -STOP & -CONT equivalent in HP-UX?


Thanks
U





Relevant Pages

  • [HPADM] Summary: HP-UX equivalent for : a) cpulimit b) kill -STOP / -CONT
    ... the averaged overall CPU ... kill -26 9735 #continue ... Renice will change the priority that a process gets a timeslice. ... Because this has a sleep in it, ...
    (HP-UX-Admin)
  • Re: C# Threading, and suspending or killing a thread
    ... Other threads that are spawned like this go right back to zero CPU, ... the Process Explorer to kill it there. ... When you terminate a thread in a .NET application you should consider the whole appdomain doomed, as in, you should no longer keep it around. ... - deadlocks, if the thread locks internal resources it will never unlock them, thus blocking future threads from ever accessing the resources the lock protects ...
    (microsoft.public.dotnet.languages.csharp)
  • [HPADM] HP-UX equivalent for : a) cpulimit b) kill -STOP / -CONT
    ... Sometimes a process hogs the CPU that it triggers alert ... & slows down other processes but I can't kill this process. ... kill -STOP pid # pause execution of the process so it doesnt chew CPU ...
    (HP-UX-Admin)
  • Re: how to stop a running process
    ... I am finding that my code somehow does not let the main ... Perhaps your thread is hogging the CPU. ... select the process and kill it. ... remove the underscores from my email address (and please indicate which newsgroup and message). ...
    (microsoft.public.pocketpc.developer)
  • checking if a job still uses the CPU
    ... I want to check a job periodically whether it still uses the CPU. ... field: cutime) regularly. ... I kill jobs that are idling and have not used the CPU in $DELAY ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)