Skip to content

Commit

Permalink
[CWS] improve lock contention related to the pathnames LRU map (#28737
Browse files Browse the repository at this point in the history
)
  • Loading branch information
paulcacheux authored Sep 2, 2024
1 parent 26bbcb5 commit 501e940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/security/ebpf/c/include/maps.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ BPF_LRU_MAP(exec_pid_transfer, u32, u64, 512)
BPF_LRU_MAP(netns_cache, u32, u32, 40960)
BPF_LRU_MAP(span_tls, u32, struct span_tls_t, 4096)
BPF_LRU_MAP(inode_discarders, struct inode_discarder_t, struct inode_discarder_params_t, 4096)
BPF_LRU_MAP(pathnames, struct path_key_t, struct path_leaf_t, 1) // edited
BPF_LRU_MAP(flow_pid, struct pid_route_t, u32, 10240)
BPF_LRU_MAP(conntrack, struct namespaced_flow_t, struct namespaced_flow_t, 4096)
BPF_LRU_MAP(io_uring_ctx_pid, void *, u64, 2048)
Expand All @@ -67,6 +66,7 @@ BPF_LRU_MAP(user_sessions, struct user_session_key_t, struct user_session_t, 102

BPF_LRU_MAP_FLAGS(tasks_in_coredump, u64, u8, 64, BPF_F_NO_COMMON_LRU)
BPF_LRU_MAP_FLAGS(syscalls, u64, struct syscall_cache_t, 1, BPF_F_NO_COMMON_LRU) // max entries will be overridden at runtime
BPF_LRU_MAP_FLAGS(pathnames, struct path_key_t, struct path_leaf_t, 1, BPF_F_NO_COMMON_LRU) // edited

BPF_PERCPU_ARRAY_MAP(dr_erpc_state, struct dr_erpc_state_t, 1)
BPF_PERCPU_ARRAY_MAP(cgroup_tracing_event_gen, struct cgroup_tracing_event_t, EVENT_GEN_SIZE)
Expand Down

0 comments on commit 501e940

Please sign in to comment.