Replies: 2 comments
-
Should this be map global or per-cpu? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thx @mtfriesen for this idea. I have converted this to a discussion. @mtfriesen, @Alan-Jowett - please use this to brainstorm a potential solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the feature you'd like supported
For networking workloads in particular, and perhaps more general workloads, it is very common for a consecutive series of packets (or inspection contexts) to share attributes. This is implemented in NIC hardware in many cases, i.e., some NICs are known to sort and indicate all packets for flow A, then flow B, then flow C, even if they arrived on the wire in an interleaved order.
Therefore, we may be able to maintain an LRU cache within eBPF maps of the most recent (small) key lookup, and if the next key lookup matches the cached value, we can skip hashing the key.
Proposed solution
Consider maintaining an LRU cache of size one in each eBPF map. There will be complications around:
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions