-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime: notify OS more aggressively about freed pages
This causes the number of dirty pages reported by vmmap to decrease after a scavenge. I don't know why this works. Apparently neither do the folks on StackOverflow who suggested it: https://stackoverflow.com/questions/7718964/ For more history and a discussion of this StackOverflow post, see golang#29844. The key observation is that MADV_FREE_REUSABLE allows the OS to decide that pages may be considered not-dirty, but the OS is under no immediate obligation to do so. And apparently iOS does not do so promptly, and thus the accounting is not updated promptly. Change-Id: Iec09510c5cc57c24c1f190e5f658096b12b7d691
- Loading branch information
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters