Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!serv.hinet.net!nctuccca.edu.tw!howland.erols.net!cs.utexas.edu!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!ensta!not-for-mail From: bouyer@chassiron.ensta.fr (Manuel Bouyer) Newsgroups: comp.unix.bsd.netbsd.misc Subject: Re: Help with ulimit, please Date: 3 Sep 1996 16:42:18 GMT Organization: Ecole Nationale Superieure de Techniques Avancees (ENSTA), Paris Lines: 54 Message-ID: <50hn5a$l0b@ici-paris.ensta.fr> References: <Pine.NEB.3.94.960831182314.24496A-100000@polder.ubc.kun.nl> NNTP-Posting-Host: chassiron.ensta.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Newsview 0.38 (pre-beta) Joop Jansen (joop@polder.ubc.kun.nl) wrote: > Hello, > > I have a rather urgent problem. I want to run a program that needs to > allocate a large amount of space, but I don't seem to have the priviledge. > I need about 18Mb of memory, the machine has got 32Mb. ulimit gives the > information shown below. I suspect that I need to raise a global > limit, but I could not find the right handle. > I suppose your shell is sh, or similar. Under [t]csh, you have the limit and unlimit commands: chassiron:/tmp>limit /* this is the user limits */ cputime unlimited filesize unlimited datasize 16384 kbytes stacksize 512 kbytes coredumpsize unlimited memoryuse 28688 kbytes descriptors 64 memorylocked 9564 kbytes maxproc 60 chassiron:/tmp>limit -h /* this is the hard limits */ cputime unlimited filesize unlimited datasize 262144 kbytes stacksize 8192 kbytes coredumpsize unlimited memoryuse 28692 kbytes descriptors unlimited memorylocked 28692 kbytes maxproc 532 chassiron:/tmp>unlimit;limit cputime unlimited filesize unlimited datasize 262144 kbytes stacksize 8192 kbytes coredumpsize unlimited memoryuse 28692 kbytes descriptors 1772 memorylocked 28692 kbytes maxproc 532 Now the user limits are the hard limits. If you need more memory, you will have to recompile a kernel to make the hard limit bigger. Hope this help. -- Manuel Bouyer, Ecole Nationale Superieure de Techniques Avancees, Paris email: bouyer@ensta.fr --