Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 725fdf83 authored by Yuanyuan Zhong's avatar Yuanyuan Zhong Committed by alexax66
Browse files

mm: vmscan: do not count anon pages as reclaimable if swap is small



When swap size is smaller than ram size, not all anon pages can be
written to swap space. So do not count anon pages as reclaimable.
This will increase the slab scan rate under memory pressure.

Change-Id: Ic4fe3c5f3e98e56fad1248f555f916cd75189324
Signed-off-by: default avatarYuanyuan Zhong <zyy@motorola.com>
(cherry picked from commit bc0d09af782178758f17ca23bae8017cbf7dd933)
Reviewed-on: http://gerrit.mot.com/697880


SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: default avatarJira Key <jirakey@motorola.com>
Reviewed-by: default avatarJeffrey Carlyle <jeff.carlyle@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>

Original commit: https://github.com/DevriesL/SM-G9208_ImageBreaker/commit/e57134da46b7a1c28212b4fe3af1a6d852b4a1ec
parent c6c83ab2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment