Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cap CPU usage for users?[Resolved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
guitarman
Guru
Guru


Joined: 26 Apr 2004
Posts: 307
Location: http://mattsbox.dyndns.org:81/

PostPosted: Mon Dec 27, 2004 8:48 pm    Post subject: Cap CPU usage for users?[Resolved] Reply with quote

Is there a way to cap the cpu usage for normal users? I want to make it so that users would only be able to use 98% so that programs that are very cpu intensive dont lock up my system. I want the last 2% so I have enough just to switch from the xorg to the console and login as root so I can kill any process.

Last edited by guitarman on Tue Jan 11, 2005 2:07 am; edited 1 time in total
Back to top
View user's profile Send private message
JPMRaptor
Guru
Guru


Joined: 04 Oct 2002
Posts: 410
Location: Maryland

PostPosted: Tue Dec 28, 2004 1:28 am    Post subject: Reply with quote

I have no idea how to limit CPU usage but one option may be to login the users somehow using the nice command so everything they run is at a lower priority. This would allow root to have priority over any user process.
_________________
Underwater photo gallery
New pictures, Oct 2005
Back to top
View user's profile Send private message
fishhead
Apprentice
Apprentice


Joined: 07 Mar 2003
Posts: 162
Location: Pasadena, CA

PostPosted: Wed Dec 29, 2004 10:08 am    Post subject: Reply with quote

JPMRaptor wrote:
I have no idea how to limit CPU usage but one option may be to login the users somehow using the nice command so everything they run is at a lower priority. This would allow root to have priority over any user process.


If you compiled with USE=pam, which you should have, then you can set the priority to run the user processes with in /etc/security/limits.conf
Back to top
View user's profile Send private message
guitarman
Guru
Guru


Joined: 26 Apr 2004
Posts: 307
Location: http://mattsbox.dyndns.org:81/

PostPosted: Wed Dec 29, 2004 2:33 pm    Post subject: Reply with quote

Thanks, thats exactly lwhat i was lookin for.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum