Andrey Tarasevich <noo…@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)
> 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.
In theory, yes. But if it became (even foreseeably) a problem, we would probably build systems with larger address spaces, in which case "properly written" (ahem) C code would automatically use the larger space without any problem. This has, obviously, happened before. Be well.
-- Lowell Gilbert, embedded/networking software engineer http://be-well.ilk.org/~lowell/