[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: need more open files



"Spink, Gary R." wrote:
> 
> Does anyone know how too increase the number of open files?

Actually, no.  You mean a per-process open file limit?
You could check the Makefile for any compile parameters
that the config may not show you.

> I keep getting this error message--
> Mar 30 11:56:16 BSI500-2 pppd[8714]: ioctl(TIOCSETD): Too many open
> files in system(23)
> 
> when my TCL program tries to open its 201st file.
> It needs to open 2000 files.

...and keep them all concurrently open?
No offense, but TCL holding open 2000 files doesn't sound like a
very good way of doing things.  You have to have _concurrent_ access?

	- Kevin Colby
	  kevinc grainsystems com


Yes the concurrent opens are necessary because the program attempts to do
the following
command up to 1000 times which opens 2 PPPD processes (master and slave)
each time--

	set pidnum [exec /usr/sbin/pppd notty noccp +ua $passwd_file <@
$sktClnt1 >@ $sktClnt1 &]

I changed the kernel Unix98 PTY limit from the default of 256 to 2048, 
but even the 256 limit is unobtainable with the file-max limit.  In the
RedHat-Devel-List archive, someone said that maximum open files is
configurable in /proc/sys.  Could something like /proc/sys/fs/file-max
be changed?  Since it doesn't help to exit the program and try to run
it again for just 2 more batch processes, it doesn't seem like I am
running into a "per-process" limit.
-gary



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]