The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ulimit JamesByars UNIX for Advanced & Expert Users 6 07-31-2008 12:52 PM
how to set the ulimit on AIX 5.2 version? Shilpi AIX 3 11-15-2007 03:36 AM
ulimit melanie_pfefer SUN Solaris 1 04-19-2007 04:31 AM
ulimit Student37 UNIX for Dummies Questions & Answers 3 07-20-2005 02:04 AM
ulimit -d adadevil UNIX for Dummies Questions & Answers 1 03-05-2004 07:42 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-16-2008
Registered User
 

Join Date: Feb 2005
Location: Columbus OH
Posts: 133
ulimit nofiles

Hi,

We have an AIX system on oslevel 5.2 and we have the current limits set for the user "XXX"

Code:
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         1024000
stack(kbytes)        32768
memory(kbytes)       unlimited
coredump(blocks)     2097151
nofiles(descriptors) 2000
When I run the command lsof to find out what are all of the open files for this user "XXX', I get a value that is greater than 2000.

My question is nofiles(descriptors) value of 2000 is that for all processes for user "XXX" or is per process for user "XXX".

Can someone please advise when possible.
Thanks in advance.

Jerardfjay
Reply With Quote
Forum Sponsor
  #2  
Old 09-16-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
Per Process.
Reply With Quote
  #3  
Old 09-17-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,200
Definitely per process - I had to answer the same question myself few months ago.
Reply With Quote
  #4  
Old 09-18-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
The reason is that ulimit(), by definition, works only on the current process.
Plus, it would be really fun to have to implement it working on all existing processes for a user. To do that /etc/profile or the user's profile is the place to enforce limits.
Reply With Quote
  #5  
Old 09-19-2008
Resident BOFH
 

Join Date: Dec 2007
Posts: 262
on AIX individual limits can be set in /etc/security/limits. It is still per process but can be controlled at the system level without customizing the profile(s). check the chuser or chsec man page.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0