Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!usenet.eel.ufl.edu!news-res.gsl.net!news.gsl.net!sgigate.sgi.com!swrinde!howland.reston.ans.net!newsfeed.internetmci.com!news.itjit.ad.jp!news.iij.ad.jp!news.CET.CO.JP!usenet From: Li Zhengchun <lilyli@cet.co.jp> Newsgroups: comp.unix.bsd.bsdi.misc Subject: Re: Too many open files... any solution? Date: Sat, 22 Jun 1996 14:30:30 +0900 Organization: CET Lines: 22 Message-ID: <31CB84F6.79CF@cet.co.jp> References: <4pk2ce$1urs@mule2.mindspring.com> <4pm1bb$91v@innocence.interface-business.de> NNTP-Posting-Host: a11m.cet.co.jp Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (Win95; I) J Wunsch wrote: > > mhall@homecom.com (Mike A. Hall) wrote: > > > It seems that "limit" doesn't maintain its settings. I am able to > > restore "unlimited" number of openfiles by typing: > > > > limit openfiles unlimited > > > > The number then goes up to 650 (from 64). > > That's the hard limit. Run ``limit -h'' to see the various hard > limits. Not even root can unlimit beyond these values. You can play around with them at lower values using sysctl. # sysctl kern.maxfiles kern.maxfiles = 3404 # sysctl -w kern.maxfiles=5000 kern.maxfiles: 3404 -> 5000 # sysctl kern.maxfiles kern.maxfiles = 5000