Modify ulimit nofiles descriptor


 
Thread Tools Search this Thread
Operating Systems Solaris Modify ulimit nofiles descriptor
# 1  
Old 05-18-2011
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.

# ulimit -Sn
4096
This change is for root.

I checked it for a nis user by 'su' and result is :

# su raman
% ulimit -Sn
4096

# su - raman
# ulimit -Sn
4096


But , this change is not persisted when there is a new login from same user using putty.

# ulimit -Sn
1024

What do you suggest for this problem ? Smilie
# 2  
Old 05-18-2011
Which OS do you run ?
You may need to change some kernel parameter and re-compile your kernel.

Have a look at http://www.princeton.edu/~unix/Solar.../kerntune.html
# 3  
Old 05-18-2011
Hi I am running on Solaris 10
# 4  
Old 05-18-2011
This User Gave Thanks to ctsgnb For This Post:
# 5  
Old 05-18-2011
Quote:
Originally Posted by ctsgnb
You may need to change some kernel parameter and re-compile your kernel.
Recompiling Solaris might have been required in the Solaris 1/SunOS 4 times but not anymore with Solaris 2.0 (1992) and newer.
This User Gave Thanks to jlliagre For This Post:
# 6  
Old 05-19-2011
Does that mean i may not recompile the kernel.

# uname -a
SunOS basswood 5.10 Generic_137137-09 sun4v sparc SUNW,Sun-Fire-T200
# 7  
Old 05-19-2011
Quote:
Originally Posted by santh08
Does that mean i may not recompile the kernel.
Unless you are an Oracle Solaris engineering employee, you have no way to recompile the Solaris 10 kernel.
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. Solaris

ulimit issue with open files descriptor

We have lots of error with "Too many open files" issue. So when I increase the limit to 36656 as suggested by this forum, and when i log out from the platform, it always went back to origin value, what has went wrong ? please any suggestion ? root@hsbc_milan> ulimit -a core file size ... (1 Reply)
Discussion started by: dehetoxic
1 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

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

6. 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

7. UNIX for Dummies Questions & Answers

File Descriptor

Hi What the below path contains? /proc/<pid>/fd (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

8. UNIX for Advanced & Expert Users

ulimit nofiles

Hi, We have an AIX system on oslevel 5.2 and we have the current limits set for the user "XXX" time(seconds) unlimited file(blocks) unlimited data(kbytes) 1024000 stack(kbytes) 32768 memory(kbytes) unlimited coredump(blocks) 2097151... (4 Replies)
Discussion started by: jerardfjay
4 Replies

9. Shell Programming and Scripting

File Descriptor

Hello All, Im opening a file desciptor in perl and sending data using print CMD "$xyz". is there a limit to the length of the string that I can give to this CMD at a time. (3 Replies)
Discussion started by: rimser9
3 Replies

10. UNIX for Dummies Questions & Answers

File Descriptor Help

What is a file descriptor in Unix?? How to find a file descriptor of a file in Unix?? Does it have anything to do with the Inode numbers?? (3 Replies)
Discussion started by: rahulrathod
3 Replies
Login or Register to Ask a Question