Any way to reserve but not commit memory in linux?

mmap a special file, like /dev/zero (or use MAP_ANONYMOUS) as PROT_NONE, later use mprotect to commit.

Leave a Comment