File Limits on Solaris 2.6

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers File Limits on Solaris 2.6
# 1  
Old 07-10-2001
File Limits on Solaris 2.6

%ulimit -a
nofiles(descriptors) 1024

This means that I can open up to 1024 file per process? But wonder if there is any hardlimit imposed by Solaris 2.6 (eg 255) ?

By the way, is there any tool that can trace which files (or sockets) are opened by a process?


Last edited by deaniyoer; 07-10-2001 at 11:31 PM..
# 2  
Old 07-11-2001
Bug hi...


to "watch" what a process is "doing" you can use the command "truss" on sun solaris. e.g. when you want to "trace" the command ls, do:

truss ls

you will see the open syscalls and what the command is doing. to see "open networkhandles" (ports, rpc, etc...) you can use

netstat -a



cheers, alex...
# 3  
Old 07-11-2001
Bug File Limits on Solaris 2.6

thanks alex.

Do u know if there is any hard limit imposed by Solaris 2.6 on "nofiles(descriptors)" ?

# 4  
Old 07-12-2001
me agan :)

hm, i am not sure what you mean exactly, but i can give you any informations `bout limits for filesystems on solaris 2.6:

logical blocksize ufs: 8192 kb
physical blocksize : 512 bytes
fragment size: 1kb
minimum free space: 10%
rotational delay (gap): depends on the disktype
optimization type: time or space
number of bytes per inode: 2048 (2kb)

ufs filesystems supports blocking sizes of 4096 or 8192 (4 or 8 kb). 8 kb is the recommended blocksize. you can change the fragmentsize to 1,2,4, or 8kb.

since this version of solaris u can mount files bigger than 2 GB (large file systems) with the option -largefiles.

i hope this is partly what you want Smilie

cheers, alex...

# 5  
Old 07-12-2001
file limits

Hi ALex,
Sorry, my question was not clear, I mean
>> Does Solaris 2.6 limits "nofiles" to 255 only ?
i.e. Does Solaris 2.6 limit a process to open a max of 255 sockets (or files) only, although ulimit may show that "nofiles = 1024"?

>> If a process has hit "nofiles" limit (hence running out of file descriptors), will there be any error message log to /var/adm/message ?

Thanks again...for all your patience and help Smilie

# 6  
Old 07-13-2001
Hammer & Screwdriver


oh, sorry. now i know what you want Smilie

and: my english is not so good, i am from vienna/austria, now living in frankfurt/germany since 1 year. i am working for an american company and try to speak a "good" english, but i am learning ;-)

o.k., here we go....

there are 7 ressources (time, file, data, stack, coredump, nofiles, vmemory) to set with ulimit, and the system have got "current ressource limits" (rlim_cur), which are the default values, and "maximum ressource limits" (rlim_max) which is the system-imposed maximum value. on solaris 2.5 and 2.6 the hard limit for nofiles is 1,024.

my littel table for you Smilie)
| ressource default maximum
| time(seconds) unlimited unlimited
| file(blocks) unlimited unlimited
| data(kbytes) unlimited unlimited
| stack(kbytes) 8192 unlimited
| coredump(blocks) unlimited unlimited
| nofiles(descriptors) 64 1024
| vmemory(kbytes) unlimited unlimited

i hope this is what you need,

cheers, alex..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Limits on 32 and 64 bit in C++ / C

Hi All, I am getting below run time error I checked the code and see the structure defined as below and using the file position variable typedef struct Get_file { char *current_pathname; unsigned int tot_bytes_io, physical_position; int... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

2. UNIX for Dummies Questions & Answers

Soft and hard limits for nproc value in /etc/security/limits.conf file (Linux )

OS version : RHEL 6.5 Below is an excerpt from /etc/security/limits.conf file for OS User named appusr in our server appusr soft nproc 2047 appusr hard nproc 16384 What will happen if appusr has already spawned 2047 processes and wants to spawn 2048th process ? I just want to know... (3 Replies)
Discussion started by: kraljic
3 Replies

3. Linux

Determining Values for NIce and Priority items in limits.conf file

I've been looking online trying to find the correct value nice and priority can take in the limits.conf file. ON the man page it says; Does this mean priority can be any negative number and any positive? Then Does this mean any number between -20 and 19 also what does the definition of nice... (13 Replies)
Discussion started by: matthewfs
13 Replies

4. HP-UX

HP-UX 10.20 file size limits?

Hi, I'm running HP-UX 10.20. Is there a 2GB file size limit? if so, can i change it? (3 Replies)
Discussion started by: gabriel.560
3 Replies

5. UNIX Desktop Questions & Answers

File size limits

I want to increase the file size, I am trying to store the output but it's not storing the whole output in to the file (7 Replies)
Discussion started by: navintsm
7 Replies

6. Shell Programming and Scripting

Limits of FOR loop to go to end of File

Hi ALL:), I have a file for e.g. ajdflkj|dkj|djfj|go|123|4||||||||||||||89|101||||||||||||||| The length of file is not fixed. So wat the limits should be given in for loop to access till end of file???? Thanks in advance..... (2 Replies)
Discussion started by: rohiiit.sharma
2 Replies

7. UNIX for Dummies Questions & Answers

ulimit and /etc/security/limits file permission

Hi there, I am working on AIX and i dont have permission for /etc/security/limits file. In the man page of ulimit it is mentioned that it will get the limitations for me from /etc/security/limits file. the file permission for ulimit command is -r-xr-xr-x 15 bin bin ... (6 Replies)
Discussion started by: quintet
6 Replies

8. Solaris

Solaris counterpart of /etc/security/limits.conf

Hi, How can we set per user core file size, etc in solaris, i.e. I want solaris counterpart/equivalent of linux /etc/security/limits.conf. TIA (0 Replies)
Discussion started by: slash_blog
0 Replies

9. UNIX for Advanced & Expert Users

nawk - file limits

Hi, I want to search particular pattern and splitting the file in to multiple files. (Splitted files may be more than 150). It got splitted upto 20 files after that, I got some error. nawk: filename.21 makes too many open files. input record number 654, file xxxxxxx Can u guide me to... (1 Reply)
Discussion started by: sharif
1 Replies

10. UNIX for Dummies Questions & Answers

file number limits in Solaris 8

What is the kernel parameter ( or other) that sets the maximum number of open files by the o/s (3 Replies)
Discussion started by: blp001
3 Replies
Login or Register to Ask a Question