mem: mmap the backing store with MAP_NORESERVE
authorAndreas Hansson <andreas.hansson@arm.com>
Mon, 16 Feb 2015 08:33:47 +0000 (03:33 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Mon, 16 Feb 2015 08:33:47 +0000 (03:33 -0500)
commite17328a227a47089e6f3c8fd82cc988f03807549
treec78336b4caff2c1ab31180efdd4c8298c890aee6
parent57758ca685fe1a736cfdc214785b04441e83e53a
mem: mmap the backing store with MAP_NORESERVE

This patch ensures we can run simulations with very large simulated
memories (at least 64 TB based on some quick runs on a Linux
workstation). In essence this allows us to efficiently deal with
sparse address maps without having to implement a redirection layer in
the backing store.

This opens up for run-time errors if we eventually exhausts the hosts
memory and swap space, but this should hopefully never happen.
src/mem/physical.cc
src/mem/physical.hh
src/sim/System.py
src/sim/system.cc