diff options
author | Chenbo Feng <fengc@google.com> | 2018-09-07 14:23:41 -0700 |
---|---|---|
committer | Chenbo Feng <fengc@google.com> | 2018-09-07 16:06:10 -0700 |
commit | 05aa559d982df948b0bde1f56f31767bd5065230 (patch) | |
tree | c490311b8020fc51079dc2516acd86e1cc4477b2 | |
parent | 890bbe447ca065bd9d325d1fc14ceebd040b50a4 (diff) | |
download | hikey-05aa559d982df948b0bde1f56f31767bd5065230.tar.gz |
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
-rw-r--r-- | init.common.rc | 4 |
1 files changed, 4 insertions, 0 deletions
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 |