diff options
author | Roman Gushchin <guro@fb.com> | 2020-12-01 22:59:00 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-12-03 03:32:47 +0100 |
commit | 5b0764b2d34510bc87d33a580da98f77789ac36f (patch) | |
tree | bd80a792599f564fcbcf074a0e7618a9d71b2fd8 /samples/bpf/test_lru_dist.c | |
parent | bpf: Eliminate rlimit-based memory accounting for bpf progs (diff) | |
download | linux-5b0764b2d34510bc87d33a580da98f77789ac36f.tar.xz linux-5b0764b2d34510bc87d33a580da98f77789ac36f.zip |
bpf: samples: Do not touch RLIMIT_MEMLOCK
Since bpf is not using rlimit memlock for the memory accounting
and control, do not change the limit in sample applications.
Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20201201215900.3569844-35-guro@fb.com
Diffstat (limited to 'samples/bpf/test_lru_dist.c')
-rw-r--r-- | samples/bpf/test_lru_dist.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/samples/bpf/test_lru_dist.c b/samples/bpf/test_lru_dist.c index b313dba4111b..c92c5c06b965 100644 --- a/samples/bpf/test_lru_dist.c +++ b/samples/bpf/test_lru_dist.c @@ -489,7 +489,6 @@ static void test_parallel_lru_loss(int map_type, int map_flags, int nr_tasks) int main(int argc, char **argv) { - struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY}; int map_flags[] = {0, BPF_F_NO_COMMON_LRU}; const char *dist_file; int nr_tasks = 1; @@ -508,8 +507,6 @@ int main(int argc, char **argv) setbuf(stdout, NULL); - assert(!setrlimit(RLIMIT_MEMLOCK, &r)); - srand(time(NULL)); nr_cpus = bpf_num_possible_cpus(); |