Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 1998 22:43:46 +0200
From:      Eivind Eklund <eivind@yes.no>
To:        current@FreeBSD.ORG
Subject:   sysctl from Linux (*envy*)
Message-ID:  <19980424224346.35645@follo.net>

next in thread | raw e-mail | index | archive | help

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!

Eivind.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980424224346.35645>