🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #2040

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

#2040
From: Scott Lurndal
Date: Mon, 30 Nov 2026 21:10
23 lines
2098 bytes
Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> writes:
>On Sun, 29 Nov 2026 22:44:26 -0800, Andrey Tarasevich wrote:
>
>> On Sun 11/29/2026 10:00 PM, Lawrence D’Oliveiro wrote:
>>>
>>> On Linux systems, you can set the memory-allocation policy to
>>> “overcommit”, which basically means that, when a process asks for
>>> memory, the kernel never says no
>>> <https://manpages.debian.org/proc_sys_vm(5)>.
>>
>> 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.

That statement is completely orthogonal to Andrey's point, 
which stands.  The virtual address space is fundamentally
limited (40 to 64 bits generally speaking in modern CPUs),
which in turn limits the amount memory that a
process (or thread) can use at any one time.

Leaving aside POSIX resource limits, which can also be used
to limit resource usage by a process.
Technical Details
Message-ID: <RClPS.164771$ZAo7.84004@fx18.iad>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.gegeweb.eu!gegeweb.org!fdn.fr!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.gegeweb.eu!gegeweb.org!fdn.fr!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: is a wrapper on memory-allocation calls a good idea?
Newsgroups: comp.lang.c
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>
Lines: 23
Message-ID: <RClPS.164771$ZAo7.84004@fx18.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 30 Nov 2026 21:10:09 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 30 Nov 2026 21:10:09 GMT
X-Received-Bytes: 1805