Skip to content

Commit e27ef59

Browse files
committed
eBPF tracer: using BPF_MAP_TYPE_LRU_HASH for active_l7_requests to avoid overflow
1 parent 6eecde5 commit e27ef59

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ebpftracer/ebpf.go

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

ebpftracer/ebpf/l7/l7.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ struct l7_request {
5151
};
5252

5353
struct {
54-
__uint(type, BPF_MAP_TYPE_HASH);
54+
__uint(type, BPF_MAP_TYPE_LRU_HASH);
5555
__uint(key_size, sizeof(struct socket_key));
5656
__uint(value_size, sizeof(struct l7_request));
57-
__uint(max_entries, 10240);
57+
__uint(max_entries, 32768);
5858
} active_l7_requests SEC(".maps");
5959

6060
struct trace_event_raw_sys_enter_rw__stub {

0 commit comments

Comments
 (0)