Patches to make ram usage more accurate.