LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-10-2012, 05:31 PM   #1
linux_us
LQ Newbie
 
Registered: Jan 2010
Posts: 19

Rep: Reputation: 0
ulimit mysterious


OS: RHEL5.5
KERNEL: 2.6.18-194.26.1.el

On my server, the CPU time is 300 second:
$ ulimit -t
300

But by default it should be "unlimited" for cpu time in RHEL5, right?

I checked my server, there is no entry in /etc/security/limits.conf, no user profile to limit CPU time, and no system wide profile to limit cpu time,
and I didn't find anything /etc/sysctl.conf.
So I don;t know where the "cpu time" 300 seconds comes from.

Any ideas where else to define system resouce limit?


Thanks.
 
Old 08-10-2012, 07:18 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by linux_us View Post
OS: RHEL5.5
RHEL-5 is currently at U8.


Quote:
Originally Posted by linux_us View Post
Any ideas where else to define system resouce limit?
Tried 'grep ulimit -r /etc/'?
 
Old 08-10-2012, 08:11 PM   #3
linux_us
LQ Newbie
 
Registered: Jan 2010
Posts: 19

Original Poster
Rep: Reputation: 0
I did the following, nothing found.
find /etc -type f -exec grep ulimit {} \;
and
find /etc -type f -exec grep limit {} \;

Any more ideas?
 
Old 08-11-2012, 05:14 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by linux_us View Post
find /etc -type f -exec grep ulimit {} \;
If grep encounters the search term it also prints the file name.
If you use grep the way you do you should add "-H" to make it efficient.


Quote:
Originally Posted by linux_us View Post
Any more ideas?
Just set it in /etc/security/limits.conf?
 
Old 08-13-2012, 07:58 AM   #5
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
IS this only the softlimit or also the hardlimit?
Code:
$ ulimit -Ht
$ ulimit -St
 
Old 08-13-2012, 04:00 PM   #6
linux_us
LQ Newbie
 
Registered: Jan 2010
Posts: 19

Original Poster
Rep: Reputation: 0
It's only for soft limit, not hard limit.
$ ulimit -Ht
unlimited
$ ulimit -St
300
 
Old 08-13-2012, 04:07 PM   #7
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Mayb it’s set in any of the ~/.bashrc, ~/.profile or ~/.bash_profile files. As it’s only a soft limit, it should also be possible to increase it again.

Last edited by Reuti; 08-13-2012 at 06:38 PM.
 
Old 08-13-2012, 05:58 PM   #8
linux_us
LQ Newbie
 
Registered: Jan 2010
Posts: 19

Original Poster
Rep: Reputation: 0
# find /etc -type f -exec grep -H ulimit {} \;
/etc/profile:ulimit -S -c 0 > /dev/null 2>&1
/etc/rc.d/init.d/mdmpd: ulimit -S -c 0 >/dev/null 2>&1
/etc/rc.d/init.d/functions: corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"


and there is no user profile, so I'm just wondering where is the 300 comes from.
 
Old 08-13-2012, 06:44 PM   #9
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Any other file in /etc/security/limits.d/?
 
Old 08-13-2012, 06:52 PM   #10
linux_us
LQ Newbie
 
Registered: Jan 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Nothing found.

$ cd /etc/security/limits.d
$ ls
$ ls -la
total 4
drwxr-xr-x 2 root root 1024 Oct 21 2010 .
drwxr-xr-x 5 root root 1024 Aug 13 17:48 ..
$
 
  


Reply



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 -s 40960 vs ulimit ulimit -s 10240 centguy Linux - Software 2 10-22-2016 11:38 PM
What is ulimit and what it does? brazilian_user Linux - General 3 01-30-2007 01:39 PM
ulimit introuble Linux - Security 1 07-22-2006 03:33 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration