General
cancel
Showing results for 
Search instead for 
Did you mean: 

Limiting number of processes per user

Edgar Brito
Advisor

Limiting number of processes per user

Is it possible to assign a different limit of processes allowed to different users. For instance, user1 would have a limmit of processes allowed. User2 would have another limmit of processes allowed.

I know maxuprc can limmit the proccess for users, this limit is the same limit for all users.

How could I define different limit of processes allowed to different users?

Is it possible at OS level?

Does exist a tool for doing this? Can this be done with gWLM?

I will apprecite your help.

Regards.
7 REPLIES
Steven E. Protter
Exalted Contributor

Re: Limiting number of processes per user

Shalom,

Yes,

It is called maxuprc.

By default it is set to 75.

That applies to all users.

Except root.

Problem is it is system wide, and can not be set for individual users.

Setting it to say 10 would prevent oracle from running a database since the oracle user for any server usually requires more processes than that.

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
Pete Randall
Outstanding Contributor

Re: Limiting number of processes per user

Steve,

That would set it on a system wide basis. However, the question is: can it be done on a user by user basis and I know of no way to accomplish that.


Pete

Pete
Edgar Brito
Advisor

Re: Limiting number of processes per user

Could it be done defining a policy in gWLM?
Duncan Edmonstone
Honored Contributor

Re: Limiting number of processes per user

What are you actually trying to acheive here?

Are you attempting to limit the number of CPU cycles any given user can take?

If yes, then absolutely a gWLM policy could do this, as could PRM...

HTH

Duncan

HTH

Duncan
Edgar Brito
Advisor

Re: Limiting number of processes per user

The idea is to limit number of processes for user1 so user2 has more room to run processes.
Duncan Edmonstone
Honored Contributor

Re: Limiting number of processes per user

what do you mean by room? CPU cycles or memory? or both?

either way, I thinl PRM is what you are looking for here:

http://docs.hp.com/hpux/ha/index.html#Process%20Resource%20Manager

HTH

Duncan

HTH

Duncan
Hein van den Heuvel
Honored Contributor

Re: Limiting number of processes per user

>> limit number of processes for user1 so user2
>> Does exist a tool for doing this?

Yes: a Baseball Bat.

Threaten the users.
Make them behave!

or, as Duncan mentioned: HP Process Resource Manager

:-)

Hein.