Skip to content

Commit

Permalink
Reapply "arm64: configs: miatoll: Enable multigenerational lru"
Browse files Browse the repository at this point in the history
This reverts commit df734ba.

Signed-off-by: txexcalibur <[email protected]>
  • Loading branch information
txexcalibur committed Jul 18, 2024
1 parent 5ead22b commit f8a84cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/arm64/configs/vendor/miatoll-perf_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ CONFIG_CMA=y
CONFIG_ZSMALLOC=y
CONFIG_FIX_INACTIVE_RATIO=y
# CONFIG_SWAP_ENABLE_READAHEAD is not set
CONFIG_LRU_GEN=y
CONFIG_LRU_GEN_ENABLED=y
CONFIG_SECCOMP=y
# CONFIG_HARDEN_BRANCH_PREDICTOR is not set
CONFIG_ARMV8_DEPRECATED=y
Expand Down
1 change: 1 addition & 0 deletions mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ config NR_LRU_GENS
int "Max number of generations"
depends on LRU_GEN
range 4 31
default 4 if ANDROID
default 7
help
This will use order_base_2(N+1) spare bits from page flags.
Expand Down
2 changes: 1 addition & 1 deletion mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -4183,7 +4183,7 @@ static unsigned long lru_gen_shrink_lruvec(struct lruvec *lruvec, struct scan_co
* the background aging
******************************************************************************/

static int lru_gen_spread = MIN_NR_GENS;
static int lru_gen_spread = IS_ENABLED(CONFIG_ANDROID) ? 0 : MIN_NR_GENS;

static void try_walk_mm_list(struct lruvec *lruvec, struct scan_control *sc)
{
Expand Down

0 comments on commit f8a84cd

Please sign in to comment.