diff options
author | Maciej Żenczykowski <maze@google.com> | 2020-03-31 12:54:25 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-03-31 12:54:25 +0000 |
commit | f34731a06d01f928d3adba2e516c7869acfc4815 (patch) | |
tree | d8bbac0326dba9bde0d33e1ca391d099d5b69d2e | |
parent | 58d4c09a59d0c4abe15695fcf011820351c2fc29 (diff) | |
parent | 5fec7e3419cb135daa1f62d3c9fce123f344b7da (diff) | |
download | platform_system_bpf-f34731a06d01f928d3adba2e516c7869acfc4815.tar.gz platform_system_bpf-f34731a06d01f928d3adba2e516c7869acfc4815.tar.bz2 platform_system_bpf-f34731a06d01f928d3adba2e516c7869acfc4815.zip |
Increase BPF test memlock rlimit to 1GB to match the bpfloader. am: 3a4c20be66 am: f8c116483c am: 5fec7e3419
Change-Id: I4b7377b127333e564f52d4d45192d47b4b5e6f6b
-rw-r--r-- | libbpf_android/BpfUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbpf_android/BpfUtils.cpp b/libbpf_android/BpfUtils.cpp index 2b96f95..97b3363 100644 --- a/libbpf_android/BpfUtils.cpp +++ b/libbpf_android/BpfUtils.cpp @@ -85,8 +85,8 @@ int synchronizeKernelRCU() { int setrlimitForTest() { // Set the memory rlimit for the test process if the default MEMLOCK rlimit is not enough. struct rlimit limit = { - .rlim_cur = 8388608, // 8 MiB - .rlim_max = 8388608, // 8 MiB + .rlim_cur = 1073741824, // 1 GiB + .rlim_max = 1073741824, // 1 GiB }; int res = setrlimit(RLIMIT_MEMLOCK, &limit); if (res) { |