Subject: Re: Max # of available file s descriptors
To: matthew green <mrg@mame.mu.Oz.Au>
From: David Brownlee <D.K.Brownlee@city.ac.uk>
List: current-users
Date: 09/19/1995 11:07:10
	Hmm.. odd

(electron /)179># sysctl kern.maxfiles
kern.maxfiles = 10000
(electron /)180># limit descriptors 2047 ; limit descriptors
descriptors     2047 
(electron /)181># limit descriptors 2048 ; limit descriptors
descriptors     2048 
(electron /)182># limit descriptors 2049 ; limit descriptors
descriptors     2048 
(electron /)183># limit descriptors 100 ; limit descriptors
descriptors     100 
(electron /)184># limit descriptors 3000 ; limit descriptors
descriptors     2048 
(electron /)185># sysctl -w kern.maxfiles=4000
kern.maxfiles: 10000 -> 4000
(electron /)186># limit descriptors 3000 ; limit descriptors
descriptors     2048 
(electron /)187># 

	This is august -current...

		David/abs

 D.K.Brownlee@city.ac.uk (MIME) +44 171 477 8186  {post,host}master  (abs)
Network Analyst, UCS, City University, Northampton Square, London EC1V 0HB.
        <<< Monochrome - Largest UK Internet BBS - telnet mono.org >>>
>=- Microsoft: Abort and Retry Cancel -or- NetBSD: http://www.netbsd.org -=<

On Tue, 19 Sep 1995, matthew green wrote:

> 
>    	That is the kernel limit for maximum number of files...
>    	(I think the original question was for per process)
>    	Anyway - as far as I know its 2048 per process...
>    
>    	To set the systemwide total number of files to a million
>    	# sysctl -w kern.maxfiles=1000000
>    	
>    	To set the current processes limit
>    	(electron /)164># limit descriptors
>    	descriptors     64
>    	(electron /)165># limit descriptors 10000
>    	(electron /)166># limit descriptors
>    	descriptors     2048
>    
>    	looks like it maxes out at 2048 to me! :)
> 
> i don't know what you're doing here, but, i get:
> 
> 
> splode ~> limit descriptors
> descriptors     256
> splode ~> limit descriptors 2588
> splode ~> limit descriptors
> descriptors     2588
> 
> here.  (2588 is also kern.maxfiles).
> 
> .mrg.
>