LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 06-08-2005, 06:51 PM   #1
juanbobo
Member
 
Registered: Mar 2005
Location: Chicago
Distribution: Gentoo AMD64
Posts: 365

Rep: Reputation: 30
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?

Last edited by juanbobo; 06-08-2005 at 06:53 PM.
 
Old 06-09-2005, 02:54 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,476

Rep: Reputation: 156Reputation: 156
"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
 
Old 06-09-2005, 03:44 PM   #3
juanbobo
Member
 
Registered: Mar 2005
Location: Chicago
Distribution: Gentoo AMD64
Posts: 365

Original Poster
Rep: Reputation: 30
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.
 
Old 06-10-2005, 09:43 AM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,476

Rep: Reputation: 156Reputation: 156
"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
 
  


Reply


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
ulimit comman is for what xshashiy Linux - Software 2 10-05-2005 06:52 AM
ulimit problems robeadam Linux - General 1 06-22-2005 08:41 AM
Ulimit -v Help !!!!!!!!!!!!!!!!!!!!!! raees Linux - Software 1 07-04-2004 10:01 AM
ulimit -n evilrico Linux - Distributions 0 03-14-2003 04:23 PM
ulimit Serena Linux - Software 3 08-04-2002 12:22 AM


All times are GMT -5. The time now is 07:57 PM.

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