From 8e01f1bbd5a0d600979f894c05d14f971d75616c Mon Sep 17 00:00:00 2001 From: Vinayak Menon Date: Thu, 10 May 2018 13:37:05 +0530 Subject: [PATCH] ARM64/dts: sdmmagpie: Disable memcg kernel and socket accounting Disable memcg kernel and socket accounting on sm8150 since memory cgroups is used in this target as a means of user space task grouping based on oom_score_adj, and controlling the userspace memory consumed by tasks. Kernel and socket memory accounting is not considered. Since memcg is created per process on this target enabling kernel accounting results in the creation of numerous kmem caches resulting in significant overhead. Change-Id: I2caad9ce6cca5846b6183a0f0753977db54a660d Signed-off-by: Vinayak Menon Signed-off-by: Richard Raya --- arch/arm64/boot/dts/qcom/sdmmagpie.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdmmagpie.dtsi b/arch/arm64/boot/dts/qcom/sdmmagpie.dtsi index 25d21353d1c3..76536865e111 100644 --- a/arch/arm64/boot/dts/qcom/sdmmagpie.dtsi +++ b/arch/arm64/boot/dts/qcom/sdmmagpie.dtsi @@ -458,7 +458,7 @@ }; chosen { - bootargs = "rcupdate.rcu_expedited=1 rcupdate.rcu_normal_after_boot=1 rcu_nocbs=0-7 kpti=off quiet noirqdebug mitigations=off nosoftlockup mce=ignore_ce"; + bootargs = "rcupdate.rcu_expedited=1 rcupdate.rcu_normal_after_boot=1 rcu_nocbs=0-7 cgroup.memory=nokmem,nosocket kpti=off quiet noirqdebug mitigations=off nosoftlockup mce=ignore_ce"; rng-seed = <0x12345678>; };