From 05aa559d982df948b0bde1f56f31767bd5065230 Mon Sep 17 00:00:00 2001 From: Chenbo Feng Date: Fri, 7 Sep 2018 14:23:41 -0700 Subject: Change memlock rlimit to support eBPF feature The eBPF trafficController in netd need as least 8MB memlock rlimit to run properly due to the size of eBPF maps. To make this feature avalaible on hikey, the rlimit is set to 8MB for all processes. Bug: 70945407 Bug: 79938294 Test: dumpsys netd trafficcontroller doesn't show errors Change-Id: Ie0b4ceb889a838dd5b0ddb1630d28811f6ddc983 --- init.common.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.common.rc b/init.common.rc index cb8abb79..705a66eb 100644 --- a/init.common.rc +++ b/init.common.rc @@ -31,6 +31,10 @@ on fs setprop ro.crypto.fuse_sdcard false on post-fs + + # set RLIMIT_MEMLOCK to 8MB + setrlimit 8 8388608 8388608 + # For legacy support # See storage config details at http://source.android.com/tech/storage/ # since /storage is mounted on post-fs in init.rc -- cgit v1.2.3