🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #2259

Re: is a wrapper on memory-allocation calls a good idea?

#2259
From: Tristan Wibberley
Date: Sat, 05 Dec 2026 22:39
40 lines
3359 bytes
On 01/12/2026 23:20, Lowell Gilbert wrote:
> Andrey Tarasevich <noone@noone.net> writes:
> 
>> On Mon 11/30/2026 10:31 AM, Lawrence D’Oliveiro wrote:
>>> On Sun, 29 Nov 2026 22:44:26 -0800, Andrey Tarasevich wrote:
>>>> Well, firstly, overcommit approach simply substitutes "virtual
>>>> address space" in place of "actual memory" as the limited resource.
>>> No, it is actual memory that is being overcommitted.
>>
>> Yes, but the whole idea of "overcommiting" simply means that the
>> allocator will _reserve_ virtual address space without checking
>> whether there is physical storage to back it up.
> 
> and this happens because of the mechanics of (now POSIX) fork(), which
> unfortunately was built into the fundament decades ago (long before
> POSIX)

I notice Kaz noted it's not fork per-se.

I remember there was a time when GTK/GNOME decided to rely on fork to
make all the common framework libraries be available with lower delay
somehow.

overcommit was billed as a solution to the problems that caused when in
fact vfork + a new syscall to render initialised unsharable data
read-only and thus nonunsharable + a new syscall to devirtualise the
vfork would have done the trick.

-- 
Tristan Wibberley

The message body is Copyright (C) 2026 Tristan Wibberley except
citations and quotations noted. All Rights Reserved except that you may,
of course, cite it academically giving credit to me, distribute it
verbatim as part of a usenet system or its archives, and use it to
promote my greatness and general superiority without misrepresentation
of my opinions other than my opinion of my greatness and general
superiority which you _may_ misrepresent. You definitely MAY NOT train
any production AI system with it but you may train experimental AI that
will only be used for evaluation of the AI methods it implements.
Technical Details
Message-ID: <11f23r8$3ca6h$2@dont-email.me>
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11eh538$3fet7$1@dont-email.me> <11ehine$3kr02$1@dont-email.me> <11ej3eh$5ajn$3@dont-email.me> <11ej60c$6bhr$1@dont-email.me> <11ekfeo$mq5n$1@dont-email.me> <11emqek$1rpei$1@dont-email.me> <44jylstwpp.fsf@lowell-ubuntu25.lan>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk>
Newsgroups: comp.lang.c
Subject: Re: is a wrapper on memory-allocation calls a good idea?
Date: Sat, 5 Dec 2026 22:39:36 +0000
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <11f23r8$3ca6h$2@dont-email.me>
References: <11eh538$3fet7$1@dont-email.me> <11ehine$3kr02$1@dont-email.me>
 <11ej3eh$5ajn$3@dont-email.me> <11ej60c$6bhr$1@dont-email.me>
 <11ekfeo$mq5n$1@dont-email.me> <11emqek$1rpei$1@dont-email.me>
 <44jylstwpp.fsf@lowell-ubuntu25.lan>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 05 Dec 2026 22:39:37 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3549393"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19R7bpx4gs7IeVERpOCz1eYFFoDjStBc2rBA6yNFWTNyw=="; posting-host="e210ba6551fa09f4d8612e67f408742d"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BTgh/v+OLCKzJPiSbVfwKXx+CWY= sha256:VzLAI2f/3WD6T/0GW7/daqIRLoPq/ZXR0iK2W8m2SpY=
	sha1:eI9mMST9lbyhWmW/7XlLLLpfmN0= sha256:php3LmekNsvXXd/Fb07+a8hd/3Hp5+Gb3qh5HOVfW1s=
In-Reply-To: <44jylstwpp.fsf@lowell-ubuntu25.lan>
Content-Language: en-GB