LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   ulimit -t (http://www.linuxquestions.org/questions/linux-security-4/ulimit-t-331687/)

juanbobo 06-08-2005 07:51 PM

ulimit -t
 
What exactly is signified by ulimit -t? Everything I have read says "CPU time", I am assuming it has to do with how long a user can tie up the processor. What is a good criteria to set this option?

jailbait 06-09-2005 03:54 PM

"What exactly is signified by ulimit -t? Everything I have read says "CPU time", I am assuming it has to do with how long a user can tie up the processor. What is a good criteria to set this option?"

I think that -t means that a process is terminated if it uses more CPU time than what is specified in -t. Normally you would set -t to unlimited time. The most likely reason for setting a finite time would be if you have a process which has the bad habit of going into infinite loops.

--------------------------
Steve Stites

juanbobo 06-09-2005 04:44 PM

Would it be a way to prevent a user process from hogging the CPU? I want to be able to limit user processes' CPU bandwidth to prevent the machine from bogging.

jailbait 06-10-2005 10:43 AM

"Would it be a way to prevent a user process from hogging the CPU? I want to be able to limit user processes' CPU bandwidth to prevent the machine from bogging."

No. The kernel shares out CPU time equitably through its time slicing algorithm. Here is an explanation:

http://learnlinux.tsf.org.za/courses...s/ch04s03.html

--------------------------
Steve Stites


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