1830938 Members
1919 Online
110017 Solutions
New Discussion

Limit User to cpu cycle

 
SOLVED
Go to solution
K.C. Chan
Trusted Contributor

Limit User to cpu cycle

I am running redhat8 and 9, is there a way to limit cpu cycle on per user basis? Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
5 REPLIES 5
Stuart Browne
Honored Contributor
Solution

Re: Limit User to cpu cycle

No.

All you can do is limit the 'nice' values so that system processes always have priority.
One long-haired git at your service...
KapilRaj
Honored Contributor

Re: Limit User to cpu cycle

Give it a try for ulimit ?? I hv'nt worked on Red-Hat hence see the man pages and give it a try

Kaps
Nothing is impossible
Martin P.J. Zinser
Honored Contributor

Re: Limit User to cpu cycle

ulimit -t should do the trick, also check

/etc/security/limits.conf for general settings.

Greetings, Martin
Peter McKenzie_1
New Member

Re: Limit User to cpu cycle

If you want to limit CPU but need something better than 'nice' you can consider using HP PRM for Linux: http://h30081.www3.hp.com/products/prm_linux/overview.html.

This will allow you to group different users according to the percentage of CPU they should get. In order to do this the default Linux scheduler has to be replaced. I have never tried it under Linux only HP-UX. You need to do a kernel recompile to use.

- Peter
Chris Saunderson
Frequent Advisor

Re: Limit User to cpu cycle

Not in the 2.4 kernel, though I have heard rumors that there has been some foundation work done on this.
http://ckrm.sourceforge.net/ has some info. A different poster suggested PRM, but as the project page states, this is only a proof of concept, and not supported by HP.
Ted Nugent called. He wants his shirt back.