Loading mm/Kconfig +10 −0 Original line number Diff line number Diff line Loading @@ -643,6 +643,16 @@ config ZSMALLOC_STAT information to userspace via debugfs. If unsure, say N. config VMAP_LAZY_PURGING_FACTOR int "multiplier to the size of purged vmap areas" default "8" if ARM default "32" help It is used as a multiplier to the max VA pages purged in a single attempt. For 32-bit in order to reduce fragmentation of vmalloc space, we decrease the default value to "8". config GENERIC_EARLY_IOREMAP bool Loading mm/vmalloc.c +2 −1 Original line number Diff line number Diff line Loading @@ -1229,7 +1229,8 @@ static unsigned long lazy_max_pages(void) log = fls(num_online_cpus()); return log * (32UL * 1024 * 1024 / PAGE_SIZE); return log * (1UL * CONFIG_VMAP_LAZY_PURGING_FACTOR * 1024 * 1024 / PAGE_SIZE); } static atomic_long_t vmap_lazy_nr = ATOMIC_LONG_INIT(0); Loading Loading
mm/Kconfig +10 −0 Original line number Diff line number Diff line Loading @@ -643,6 +643,16 @@ config ZSMALLOC_STAT information to userspace via debugfs. If unsure, say N. config VMAP_LAZY_PURGING_FACTOR int "multiplier to the size of purged vmap areas" default "8" if ARM default "32" help It is used as a multiplier to the max VA pages purged in a single attempt. For 32-bit in order to reduce fragmentation of vmalloc space, we decrease the default value to "8". config GENERIC_EARLY_IOREMAP bool Loading
mm/vmalloc.c +2 −1 Original line number Diff line number Diff line Loading @@ -1229,7 +1229,8 @@ static unsigned long lazy_max_pages(void) log = fls(num_online_cpus()); return log * (32UL * 1024 * 1024 / PAGE_SIZE); return log * (1UL * CONFIG_VMAP_LAZY_PURGING_FACTOR * 1024 * 1024 / PAGE_SIZE); } static atomic_long_t vmap_lazy_nr = ATOMIC_LONG_INIT(0); Loading