From owner-freebsd-current Fri Apr 24 17:07:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA02428 for freebsd-current-outgoing; Fri, 24 Apr 1998 17:07:17 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA02380 for ; Fri, 24 Apr 1998 17:07:10 -0700 (PDT) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id TAA03846; Fri, 24 Apr 1998 19:07:00 -0500 (EST) (envelope-from toor) From: "John S. Dyson" Message-Id: <199804250007.TAA03846@dyson.iquest.net> Subject: Re: sysctl from Linux (*envy*) In-Reply-To: <19980424224346.35645@follo.net> from Eivind Eklund at "Apr 24, 98 10:43:46 pm" To: eivind@yes.no (Eivind Eklund) Date: Fri, 24 Apr 1998 19:07:00 -0500 (EST) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > overcommit_memory: > > This file contains only one value. The following algorithm > is used to decide if there's enough memory. If the value > of overcommit_memory > 0, then there's always enough > memory :-). This is a useful feature, since programs often > malloc() huge amounts of memory 'just in case', while they > only use a small part of it. Leaving this value at 0 will > lead to the failure of such a huge malloc(), when in fact > the system has enough memory for the program to run... > On the other hand, enabling this feature can cause you to > run out of memory and thrash the system to death, so large > and/or important servers will want to set this value to 0. > > > > This supposedly also handles things like fork() etc. Linux shouldn't > have any server-directed features FreeBSD doesn't! > Agreed. I have been working on it, until I had my programming breakdown early this week. Look for it soon. I have the accounting in my kernel (but it is broken right now.) I haven't implemented the limit yet. John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message