ulimit nofiles


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users ulimit nofiles
# 1  
Old 09-16-2008
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
# 2  
Old 09-16-2008
Per Process.
# 3  
Old 09-17-2008
Definitely per process - I had to answer the same question myself few months ago.
# 4  
Old 09-18-2008
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.
# 5  
Old 09-19-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Nofiles & nproc change on RHEL not taking effect

I am installing a statistical applicaton and for its web components it is a listed requirement that I have soft limits of files (20480) and no of processes (soft t o 10240). I am on RHEL 6.1. As root I made the following changes in /etc/security/limits.conf * soft nproc 10240 * hard nproc... (4 Replies)
Discussion started by: rsheikh01
4 Replies

2. Linux

ulimit -n

Hi im a complete noob to shell commands but here is my problem i have a dedicated server i7 with 24 gig ram i have whm/cpanel on it now ive added a minecraft system to root but i cannot set the server to more than 512mb memory i was told its because the memory is being blocked and was told to... (7 Replies)
Discussion started by: gazzac
7 Replies

3. Solaris

ulimit

Hello, could you help me please? I write in command line: "ulimit 500" -> i've set the max size of 512-bytes blocks that i can write in one file. But when after it i use ulimit.3c in my program: "ulimit(UL_GETFSIZE);" the result turns out 1000. Why is it so? They always differ so that one is... (2 Replies)
Discussion started by: Zhenya_
2 Replies

4. AIX

nofiles in ulimit

Hi all, What are the nofiles in ulimit for? How can these affect the server performance? What are the desired values for this? below is the result of ulimit -a on the server. time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) ... (1 Reply)
Discussion started by: guzzelle
1 Replies

5. Solaris

Modify ulimit nofiles descriptor

Hi, All I need to increase the ulimit value permanently without changing /etc/system file. i.e nofiles descriptor. For all NIS Users logging in. I know the command to do this: # ulimit -Sn 4096 This change is temporary. So, I went on adding this command in the /etc/profile. ... (6 Replies)
Discussion started by: santh08
6 Replies

6. Solaris

ulimit

how do i check the ulimit set on my server.. ca i know whats the command ?? thanks in advance .. (5 Replies)
Discussion started by: expert
5 Replies

7. UNIX for Advanced & Expert Users

ulimit -a : nofiles ?

Hi folk, I have a question.. $ ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) 131072 stack(kbytes) 32768 memory(kbytes) unlimited coredump(blocks) 2097151 nofiles(descriptors) 5000 What is the significance of... (2 Replies)
Discussion started by: varungupta
2 Replies

8. UNIX for Advanced & Expert Users

ulimit

hi what is the difference between file and data? if file is unlimited, does that mean we can have a file as big as we like? thanks. file(blocks) unlimited data(kbytes) 1048576 (6 Replies)
Discussion started by: JamesByars
6 Replies

9. Solaris

ulimit

Hi, I need to increase the open files on my server to run a test. Usually what I do is: ulimit -n 5000 My questions are: 1] I want to set this parameter once and for all. What is the right parameter to set in /etc/system: rlim_fd_max or rlim_fd_cur? 2] How to make sure that this... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

10. UNIX for Dummies Questions & Answers

ulimit -d

All I am trying to do ulimit -d unlimited and I get "sh: ulimit: The specified value exceeds the user's allowable limit." Can someone please help me understand, how to change this! Thanks (1 Reply)
Discussion started by: adadevil
1 Replies
Login or Register to Ask a Question

Featured Tech Videos