The "too small to fail" memory-allocation rule
The "too small to fail" memory-allocation rule
Posted Dec 25, 2014 19:58 UTC (Thu) by quotemstr (subscriber, #45331)In reply to: The "too small to fail" memory-allocation rule by fw
Parent article: The "too small to fail" memory-allocation rule
Agreed on the lack of testing --- but what bugs me is that MAP_NORESERVE is documented as doing the right thing, and doesn't. That means that programs written by the few well-intentioned developers are aware of overcommit issues frequently don't end up working correctly.
Sadly, the commit charge implications of MAP_NORESERVE are documented but silently broken, but the commit charge implications of PROT_NONE are undocumented and in theory mutable in future releases. All this gives mmap(2) a Rusty Russel score of around -4.