troubleshooting Question

How do I limit the system unit time that a process can use?

Avatar of demcmahan
demcmahanFlag for United States of America asked on
Unix OS
5 Comments1 Solution528 ViewsLast Modified:
I have some processes that often hang and I had this thought that maybe they could be killed after they used a fixed amount of cpu resources.  It's easy for me to see that these specific processes have hung by using AIX's "topas" utility.

When I do "ps -ef" I can easily spot the hung processes by looking at the values in the 'C' and 'TIME' columns.

I tried the "chuser" command with the "cpu=" and "cpu_hard=" parameters, but that did not work.

I have two questions:
1.  Can what I want to do be done?
2.  The man page for "chuser" says that "cpu" and "cpu_hard" sets the "largest amount of system unit time (in seconds) that a user's process can use".  How do I monitor "system unit time"?

Don
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros