mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 11:53:01 +00:00
Merge "mm: vmscan: support equal reclaim for anon and file pages"
This commit is contained in:
commit
39bb2cfbe1
|
@ -528,3 +528,12 @@ config ZSWAP
|
|||
interactions don't cause any known issues on simple memory setups,
|
||||
they have not be fully explored on the large set of potential
|
||||
configurations and workloads that exist.
|
||||
|
||||
config BALANCE_ANON_FILE_RECLAIM
|
||||
bool "During reclaim treat anon and file backed pages equally"
|
||||
depends on SWAP
|
||||
help
|
||||
When performing memory reclaim treat anonymous and file backed pages
|
||||
equally.
|
||||
Swapping anonymous pages out to memory can be efficient enough to justify
|
||||
treating anonymous and file backed pages equally.
|
|
@ -1794,7 +1794,8 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc,
|
|||
* There is enough inactive page cache, do not reclaim
|
||||
* anything from the anonymous working set right now.
|
||||
*/
|
||||
if (!inactive_file_is_low(lruvec)) {
|
||||
if (!IS_ENABLED(CONFIG_BALANCE_ANON_FILE_RECLAIM) &&
|
||||
!inactive_file_is_low(lruvec)) {
|
||||
scan_balance = SCAN_FILE;
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue