Review Board 2.0.15


mem: Avoid explicitly zeroing the memory backing store

Review Request #1833 - Created April 22, 2013 and submitted

Information
Andreas Hansson
gem5
default
Reviewers
Default
Changeset 9672:6374801ba8f9
---------------------------
mem: Avoid explicitly zeroing the memory backing store

This patch removes the explicit memset as it is redundant and causes
the simulator to touch the entire space, forcing the host system to
allocate the pages.

Anonymous pages are mapped on the first access, and the page-fault
handler is responsible for zeroing them. Thus, the pages are still
zeroed, but we avoid touching the entire allocated space which enables
us to use much larger memory sizes as long as not all the memory is
actually used.
All regressions pass
Review request changed
Updated (May 30, 2013, 2:53 a.m.)

Status: Closed (submitted)