Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-18-2009, 10:46 AM   #1
Registered: Jun 2008
Posts: 405

Rep: Reputation: 31
How do I activate limits.conf

Ok, forget the other questions...

I've set limits in limits.conf but they don't seem to be having an effect (the easiest to test is maxlogins). Do I need to do something to enable the limits?


EDIT: old post

I know you can have file system quotas, is there any way to set a similar quota for CPU usage for particular users so that they can't hog all the system resources (either intentionally or accidentally)?

A preliminary Google search is suggesting it's not possible, but I can't believe that.

Ok, limits.conf and pam... I used bad search terms apparently. Now I just need to figure out how to use this stuff, but that shouldn't be an issue.

Last edited by davidstvz; 09-18-2009 at 12:45 PM. Reason: new question
Old 09-18-2009, 12:13 PM   #2
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
Ok, I can do what I need with pam, except CPU time. There doesn't seem to be a way to restrict a user to a max amount of CPU time as a percentage of the current second. Only a max number of time (in minutes) per sessions. That's relatively useless (I could set it to a high number and if a user brings the system down, then eventually it will get caught and stop using resources... but it has to be high enough not to interfere with normal use).

Does anyone have suggested settings for any of:

Old 09-18-2009, 12:46 PM   #3
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
Ok, I set some things but it's not actually having an effect.

Maybe I need to reboot? Usually you can just restart a process at worst...

Last edited by davidstvz; 09-18-2009 at 12:49 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
a dual-core CPU and 2x1G memory,but only a core and 1G memory work(debian) tomtforever Linux - Hardware 3 07-04-2008 09:39 AM
cpu and memory usage graziano1968 Linux - General 1 04-21-2007 06:49 AM
Is there something like memory and CPU quota? cyberfishee Linux - Security 2 03-06-2007 11:28 PM
ram, cpu and process quotas Mig21 Linux - Security 3 07-25-2005 03:12 AM
Help Configuring the Memory Used by a Process in RedHat? (Cache Memory on CPU) geogecko Linux - General 3 02-23-2005 03:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration