Purge unused native memory before Zygote fork events
This CL causes the Zygote to purge unused native memory before fork events. This results in a decrease in the RSS before a fork, which decreases false sharing between parent and child, and results in less private dirty memory in the child when allocations and deallocations begin to dirty bookkeeping data on pages in the anon:libc_malloc memory region. The result of these changes is a negligible change to application startup times, the reduction of usap32 process private dirty memory by 40 KiB and usap64 process private dirty memory by 128 KiB. Application RSS and private dirty memory usage (for Calendar) was reduced by 804 KiB and 624 KiB respectively. Test: Launched Calendar 500 times Change-Id: I52f72a5a02182a9e2748f7f87b45665059d9891a Merged-In: I52f72a5a02182a9e2748f7f87b45665059d9891a
Loading
Please register or sign in to comment