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
Posted (April 26, 2013, 3:02 a.m.)
You comment that the page fault handler will zero out the page. Is this valid for all versions of Linux and Android kernels?
