From owner-freebsd-hackers Wed Nov 13 11:27:23 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA08319 for hackers-outgoing; Wed, 13 Nov 1996 11:27:23 -0800 (PST) Received: from Kitten.mcs.com (Kitten.mcs.com [192.160.127.90]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA08309; Wed, 13 Nov 1996 11:27:20 -0800 (PST) Received: from Mailbox.mcs.com (Mailbox.mcs.com [192.160.127.87]) by Kitten.mcs.com (8.8.2/8.8.2) with ESMTP id NAA27437; Wed, 13 Nov 1996 13:27:18 -0600 (CST) Received: from Jupiter.Mcs.Net (karl@Jupiter.mcs.net [192.160.127.88]) by Mailbox.mcs.com (8.8.2/8.8.2) with ESMTP id NAA05415; Wed, 13 Nov 1996 13:27:17 -0600 (CST) Received: (from karl@localhost) by Jupiter.Mcs.Net (8.8.2/8.8.2) id NAA17877; Wed, 13 Nov 1996 13:27:16 -0600 (CST) From: Karl Denninger Message-Id: <199611131927.NAA17877@Jupiter.Mcs.Net> Subject: Re: Setting maximum RAM consumption by a process To: dyson@FreeBSD.ORG Date: Wed, 13 Nov 1996 13:27:16 -0600 (CST) Cc: karl@Mcs.Net, hackers@FreeBSD.ORG In-Reply-To: <199611131837.NAA00686@dyson.iquest.net> from "John Dyson" at Nov 13, 96 01:37:39 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > > > Hi folks, > > > > I know how to do this for BSDI (maximum segment size) but not for FreeBSD, > > and the same parameters don't appear to work. > > > > Basically, our news server is now reaching a WSS of 100MB+, and we need to > > increase it (because we're getting malloc failures and death of the process > > :-) > > > > The system has lots of RAM, so that's not a problem. > > > > Anyone got the magic words for the config file? > > > You can set it dynamically with ulimit (up it to 128M.) Any further, > you can set the config variables DFLDSIZ and MAXDSIZ to practically > anything you want. So, for 192MB > > options "MAXDSIZ=201326592" > options "DFLDSIZ=201326592" > > John Thanks.... we already had the "prestart" thing doing the set to 128MB, but now I need to get beyond that :-) -- -- Karl Denninger (karl@MCS.Net)| MCSNet - The Finest Internet Connectivity http://www.mcs.net/~karl | T1's from $600 monthly to FULL DS-3 Service | 32 Analog Prefixes, 13 ISDN, Web servers $75/mo Voice: [+1 312 803-MCS1 x219]| Email to "info@mcs.net" WWW: http://www.mcs.net/ Fax: [+1 312 248-9865] | 2 FULL DS-3 Internet links; 400Mbps B/W Internal