Include memory-mapped space in our cache calculation.

This branch is only intended for testing.  Please don't merge without further discussion.