-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance the CachingMemoryManager to possibly handle high memory press…
…ure (#188) Summary: Enhance the CachingMemoryManager to handle high memory pressure by adding 2 options. Note: the default behavior is unchanged. Add a new API to MemoryManagerAdapter to setOption(). Side: remove some glog includes failing compilation if glog-dev not installed locally **Original Issue**: flashlight/flashlight#180 closes flashlight/flashlight#180 The CachingMemoryManager being greedy in memory. This PR adds 2 options to mitigate this. ### Test Plan (required) Implemented a new unitest in order to show OOM with the default CachingMM and no OOM if the right option is set. Pull Request resolved: flashlight/flashlight#188 Reviewed By: vineelpratap Differential Revision: D24435873 Pulled By: jacobkahn fbshipit-source-id: 99186439c1e306ad987079cc326ab68fe1f028fc
- Loading branch information
1 parent
12e4646
commit f701125
Showing
6 changed files
with
94 additions
and
13 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
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