Skip to content

Commit

Permalink
remove USM map changes and increase map cleaner rate
Browse files Browse the repository at this point in the history
  • Loading branch information
akarpz committed Nov 6, 2024
1 parent ca28e94 commit 9dab870
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/network/ebpf/c/protocols/sockfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
// * Value the socket FD;
BPF_HASH_MAP(sockfd_lookup_args, __u64, __u32, 1024)

BPF_HASH_MAP(tuple_by_pid_fd, pid_fd_t, conn_tuple_t, 2048)
BPF_HASH_MAP(tuple_by_pid_fd, pid_fd_t, conn_tuple_t, 1024)

BPF_HASH_MAP(pid_fd_by_tuple, conn_tuple_t, pid_fd_t, 2048)
BPF_HASH_MAP(pid_fd_by_tuple, conn_tuple_t, pid_fd_t, 1024)

#endif
2 changes: 1 addition & 1 deletion pkg/network/tracer/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ func (t *Tracer) GetNetworkID(context context.Context) (string, error) {
}

const connProtoTTL = 3 * time.Minute
const connProtoCleaningInterval = 185 * time.Second // slight jitter to avoid all maps cleaning at the same time
const connProtoCleaningInterval = 65 * time.Second // slight jitter to avoid all maps cleaning at the same time

// setupConnectionProtocolMapCleaner sets up a map cleaner for the connectionProtocolMap.
// It will run every connProtoCleaningInterval and delete entries older than connProtoTTL.
Expand Down

0 comments on commit 9dab870

Please sign in to comment.