SUMMARY: file descriptor limit on SunOS 4.1.4

From: Jun John Wu (jun@wolfox.gsl.net)
Date: Thu Jun 20 1996 - 14:09:13 CDT


        I guess I found the answer from Sunsolve. Basically, you can either
use

limit descriptor 256

to increase the default per process file descriptor limitation from 64 to
256 under csh. Or you can use setrlimit() call in C program to set it to
a value less than or equal to 256.

        In my case, INN program has the setrlimit() calls, but needs to
be defined in the configuration before compilation. Otherwise, it takes
whatever is default in the shell that spawned it. My innd is now running at
75 file descriptor and has not throttled yet, so I assume it is working.

        You can get lsof program to check for the file descriptor used by
each process. ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/

        I am still not sure how to reconfigure the kernel to set the 256
as a default for every process as opposed to 64.

Jun

===== jun previously wrote: ====
> From jun Thu Jun 20 12:21:35 1996
> Subject: file descriptor limit on SunOS 4.1.4
> To: sun-managers@ra.mcs.anl.gov
> Date: Thu, 20 Jun 1996 12:21:35 -0400 (EDT)
>
> Hi, Sun managers,
>
> This must have been asked for 10^6 times, sorry about that. But
> can anyone tell me a sure way to increase per process file descriptor limit
> from 64 to 256 and hopefully 1024? In particular, how do I set that either
> in kernel or via rc.local script for all or one particular process it
> spawns?
>
> This is for SunOS 4.1.4. I think I've got answers on how to do
> that via changing /etc/system file on Solaris 2.5. Prefered answer
> would be how to change kernel config files and recompile. If I have
> to patch the vmunix, then it is fine too but less desireable because
> I am running a kernel with ODS and Multicast, so I am a little shaky on
> patching the kernel.
>
> My question originates from the fact that I am running a large
> newsfeed server, and I want every process INND spawns have 256 or more
> file desciptor, and INND itself also has 256 or more file descriptor.
>
> Also, anyone knows if Online Disk Suite has any impact on
> total file decriptor? or per process file descriptor?
>
> Thanks in advance.
>
> Jun
> --
> Jun (John) Wu | Voice: (703)818-5431
> Network Technical Engineer | Fax: (703)818-5282
> Global IP System & Performance Management | Email: jun@gsl.net
> Global One Communications L.L.C. | URL: http://wolfox.gsl.net/jun
>



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:02 CDT