logoalt Hacker News

david-gpuyesterday at 11:20 AM1 replyview on HN

It is pointless, because in Linux all you get is a virtual address. Physical backing is only allocated on first use.

In other words, the first time you access a "freshly allocated" non-null pointer you may get a page fault due to insufficient physical memory.


Replies

3836293648yesterday at 11:26 AM

By default, yes. You can configure it to not overcommit