🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #2059

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

#2059
From: Andrey Tarasevich
Date: Tue, 01 Dec 2026 15:51
27 lines
2382 bytes
On Mon 11/30/2026 10:31 AM, Lawrence D’Oliveiro wrote:
> 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.

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.

Virtual address space of the process still needs to be reserved at the 
moment of allocation. And virtual address space still gets "used up" by 
such allocations. It can eventually run out. That is the point I was making.

-- 
Best regards,
Andrey
Technical Details
Message-ID: <11emqek$1rpei$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Andrey Tarasevich <noone@noone.net>
Newsgroups: comp.lang.c
Subject: Re: is a wrapper on memory-allocation calls a good idea?
Date: Tue, 1 Dec 2026 07:51:46 -0800
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <11emqek$1rpei$1@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 01 Dec 2026 15:51:49 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1959378"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+BHssO2SfSfpG+qf2G2L0y"; posting-host="71b68c8408a4bea7ebdc89fcc62d648b"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:MF0RrvxnhAPFLqRwj5U2EKcBXFQ= sha256:WLt3+AnI5dRLbHSuzxxJu1HDPSYeBKqsbWtwVjKYous=
	sha1:FeP0c1h1IniLrHl7i58elggjeXE= sha256:fuG2or/cfphV/TiIir37rZ9kqeU6KQuFwOZphtbz1oA=
In-Reply-To: <11ekfeo$mq5n$1@dont-email.me>
Content-Language: en-US