Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Apr 1998 09:34:34 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        tom@uniserve.com (Tom)
Cc:        eivind@yes.no, current@FreeBSD.ORG
Subject:   Re: sysctl from Linux (*envy*)
Message-ID:  <199804250934.CAA26815@usr07.primenet.com>
In-Reply-To: <Pine.BSF.3.96.980425005044.396A-100000@shell.uniserve.ca> from "Tom" at Apr 25, 98 00:52:13 am

next in thread | previous in thread | raw e-mail | index | archive | help
> > memory :-). This is a useful feature, since programs often
> > malloc() huge amounts of memory 'just in case', while they
> 
>   I'm not aware of any program that does that.  I'm not aware why any
> application programmer would even think malloc'ing they aren't using is a
> good idea.  It just doesn't make sense on any modern VM system.

What if you know:

1)	You are on a memory overcommit architecture.

2)	You know that if you run out of swap for dirty pages, whoever
	asks for a page at that point will be killed with sig 11 because
	there is no memory left.

3)	You are providing a system critical service, so you don't
	want to die because you were too stupid to preallocate
	pages.

?


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

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?199804250934.CAA26815>