Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Looking for default value of RLIMIT_NOFILE : (3 Items)
   
Looking for default value of RLIMIT_NOFILE  
Howdy,

1. Can anyone provide me the default value of RLIMIT_NOFILE?


2. How does RLIMIT_NOFILE work with the -F option to procnto?  e.g. If I use procnto -F, does this update RLIMIT_NOFILE?


http://www.qnx.com/developers/docs/6.4.1/neutrino/user_guide/limits.html

Based on the QNX 6.4.1 documentation (limits, see link above), this soft value "may" constrain the total file 
descriptors available.  I don't know exactly what that means.


Cheers,
maurice
Re: Looking for default value of RLIMIT_NOFILE  
By default procnto sets a system-wide default of 1000 per process you
can use -F to specify a different default.

In your 6.4.1 system, RLIMIT_NOFILE is defined as 5 (#include
<sys/resource.h>). In either case if you want to modify the limit for
the current process and any that it creates you use setrlimit().

Re: Looking for default value of RLIMIT_NOFILE  
Sorry to properly answer your question the default value of
RLIMIT_NOFILE is 1000 which is set by procnto.