ebpf_exporter icon indicating copy to clipboard operation
ebpf_exporter copied to clipboard

cgroup_id_map: change example for CGRP_STORAGE to not use GET_F_CREATE

Open dqminh opened this issue 4 months ago • 1 comments

BPF_LOCAL_STORAGE_GET_F_CREATE will create a zero entry if it does not find our cgroup in the CGRP_STORAGE. THis is unnecessary work as the entry should only be written by ebpf_exporter for cgroups that we are interested in, so we should not set the flag.

dqminh avatar Aug 28 '25 14:08 dqminh

Have you seen: https://github.com/netoptimizer/ebpf_exporter/pull/1#discussion_r2305190268

  • I found that this CGRP_STORAGE was slower than the hash type

netoptimizer avatar Aug 28 '25 15:08 netoptimizer