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.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.erols.net!gatech!smash.gatech.edu!tpac.gcatt.gatech.edu!doug From: Doug Porter <doug@tpac.gcatt.gatech.edu> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: process memory limit in kernel Date: 27 May 1997 16:36:37 GMT Organization: Georgia Institute of Technology Lines: 37 Message-ID: <5mf2il$249@smash.gatech.edu> References: <5m2q1l$egd@smash.gatech.edu> <5m3tot$ic4@ui-gate.utell.co.uk> NNTP-Posting-Host: tpac.gcatt.gatech.edu Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Newsreader: TIN [UNIX 1.3 unoff BETA 970309; i386 FreeBSD 2.2.1-RELEASE] Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41700 Brian Somers <brian@shift.utell.net> wrote: > In article <5m2q1l$egd@smash.gatech.edu>, > Doug Porter <doug@tpac.gcatt.gatech.edu> writes: > > While running an application of ours, I was running into memory problems with a > > 128meg limit. I looked into the kernel makefile and found nothing, but finding an > > example in LINT I set it to 256meg (amt of physical memory). Which brought to mind > > some questions: > > > > Is there a constant for infinite/no limit? I see RLIM_INFINITY in the setrlimit > > man page but haven't tried it inthe kernel makefile, would it work? > > > > Are there any problems associated with setting it extremely high (like sum of > > physical/virtual memory, or higher)? Would it be bad to set it to MAXINT? > > > > ahhh... never had these problems on my C64 :-) > You havn't said what you changed yet. If you changed MAXMEM, this is > meant to represent your physical memory. The CMOS can't report more > than 64Mb. If you set it to more than your physical memory size, > the machine won't boot. Here's what I did. The MAXMEM is fine, the machine likes that. The other I believe deals with the allowable size of the data for a process (both default and max), it's this that I was talking about (although it does seem that I neglected to mention it in my first post :-) So what I'm wondering is how large can I set the DFLDSIZ and MAXDSIZ? options "MAXMEM=262144" #options "MAXMEM= options "DFLDSIZ=(256*1024*1024)" options "MAXDSIZ=(256*1024*1024)"