News for hackers. Stuff that matters.
Re:The Linux kernel's inability to gracefully handle low mem... by viraptor on Tuesday August 06, 2019 @06:59AM (#20624042)
Mapped memory is part of that lying. If you want to use efficient mmap of huge files without lots of manual bookkeeping, you don't want the system to actually allocate as much memory as you specify. With overcommit off you're setting aside memory you're almost never going to use.

Many databases rely on the overcommit being possible.

Re:The Linux kernel's inability to gracefully handle low mem... by garethrowlands on Tuesday August 06, 2019 @09:42AM (#20625051)
Isn't the memory for memory mapped files backed by the files themselves? Certainly they are on Windows.
Re:The Linux kernel's inability to gracefully handle low mem... by viraptor on Tuesday August 06, 2019 @05:12PM (#20629692)
Partially. Without overcommit the system needs to guarantee you have enough backing memory to allow you changing the whole file before the drive writes back anything.