From 2ad253dbf25217435bddfc38915b1fd8053263ba Mon Sep 17 00:00:00 2001 From: huangzq2 Date: Wed, 8 Jul 2020 13:29:04 +0800 Subject: [PATCH] disable SPLIT_RSS_COUNTING to fix zero RSS issue Change-Id: Iee0bdf2534fee660e64d8e8221c4dc571e13921e Signed-off-by: huangzq2 Reviewed-on: https://gerrit.mot.com/1668699 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key Reviewed-by: Bingqian Yang --- mm/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mm/Kconfig b/mm/Kconfig index b6dbab55f77a..90a26b3e3afd 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -216,11 +216,17 @@ config MEMORY_HOTREMOVE # PA-RISC 7xxx's spinlock_t would enlarge struct page from 32 to 44 bytes. # DEBUG_SPINLOCK and DEBUG_LOCK_ALLOC spinlock_t also enlarge struct page. # +# Moto huangzq2: disable SPLIT_RSS_COUNTING if we have ulmk. +# ulmk fully relies on rss in proc/pid/statm, but rss in statm sometimes +# is zero if we enabled SPLIT_RSS_COUNTING, checked with Google, +# they agree to disalbe this. Also, our performance test didn't show any +# performance downgrade. config SPLIT_PTLOCK_CPUS int default "999999" if !MMU default "999999" if ARM && !CPU_CACHE_VIPT default "999999" if PARISC && !PA20 + default "999999" if HAVE_USERSPACE_LOW_MEMORY_KILLER default "4" config ARCH_ENABLE_SPLIT_PMD_PTLOCK