The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ulimit and /etc/security/limits file permission quintet UNIX for Dummies Questions & Answers 6 02-19-2008 06:58 AM
Solaris counterpart of /etc/security/limits.conf slash_blog SUN Solaris 0 02-14-2008 04:47 AM
nawk - file limits sharif UNIX for Advanced & Expert Users 1 09-16-2007 05:57 AM
file number limits in Solaris 8 blp001 UNIX for Dummies Questions & Answers 3 08-14-2003 04:50 AM
tar--limits ???? sdharmap UNIX for Dummies Questions & Answers 3 05-11-2001 11:50 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-10-2001
Registered User
 

Join Date: Jul 2001
Posts: 11
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?

Thanks
DY
__________________
DY
Swimming in the ocean of Unix

Last edited by deaniyoer; 07-10-2001 at 06:31 PM.
Forum Sponsor
  #2  
Old 07-11-2001
Registered User
 

Join Date: Jul 2001
Location: Frankfurt/Germany
Posts: 21
Smile hi...

hello.

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

and

rpcinfo

cheers, alex...
__________________
a.loitsch@loitschix.de
---------------------------
unix is like a wigwam: no gates, no windows, and sometimes an apache in it...
  #3  
Old 07-11-2001
Registered User
 

Join Date: Jul 2001
Posts: 11
Smile 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)" ?

cheers...
__________________
DY
Swimming in the ocean of Unix
  #4  
Old 07-12-2001
Registered User
 

Join Date: Jul 2001
Location: Frankfurt/Germany
Posts: 21
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

cheers, alex...

__________________
a.loitsch@loitschix.de
---------------------------
unix is like a wigwam: no gates, no windows, and sometimes an apache in it...
  #5  
Old 07-12-2001
Registered User
 

Join Date: Jul 2001
Posts: 11
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

DY
__________________
DY
Swimming in the ocean of Unix
  #6  
Old 07-12-2001
Registered User
 

Join Date: Jul 2001
Location: Frankfurt/Germany
Posts: 21
Wink

hi.

oh, sorry. now i know what you want

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 )
o-----------------------------------------------------------
| 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..
__________________
a.loitsch@loitschix.de
---------------------------
unix is like a wigwam: no gates, no windows, and sometimes an apache in it...
Google The UNIX and Linux Forums
Closed Thread

« cp options | hi all »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:01 AM.


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