Open derekbruening opened 9 years ago
This issue and some of the comments in the code are very old. These days all Linux distros seem to have overcommit set by default, where we won't need MAP_NORESERVE as no physical/swap pages are committed until a page is actually touched. So this issue is really targeted toward /proc/sys/vm/overcommit_memory being set to 2 (OVERCOMMIT_NEVER).
From bruen...@google.com on November 13, 2012 16:04:00
we should detect support for MAP_NORESERVE (should do what we want on >=2.6 kernel) and use it on os_heap_reserve() to avoid the swap space cost
Original issue: http://code.google.com/p/dynamorio/issues/detail?id=976