Describe the bug
In a hot loop of Lookup where a lot of keys do not exist, the fmt.Errorf at
|
return fmt.Errorf("lookup: %w", wrapMapError(err)) |
can allocate a decent chunk of memory
How to reproduce
- Create map
- Do a bunch of lookups for keys that do not exist
- Profile allocations
Version information
github.com/cilium/ebpf v0.15.1-0.20240709101333-5976561b28aa
Describe the bug
In a hot loop of Lookup where a lot of keys do not exist, the
fmt.Errorfatebpf/map.go
Line 698 in fbb9ed8
How to reproduce
Version information
github.com/cilium/ebpf v0.15.1-0.20240709101333-5976561b28aa