Measuring an eBPF Cache Without Leaving the Kernel
When testing our eBPF agent, I don’t always get the same experience as our users, especially in performance critical sections. I realize that the benchmark test suite isn’t always enough, because user’s environments can be completely different from our benchmarks.
I recently implemented a perf feature, which was inode caching for file access policies, and wanted to understand how it is being used in the users’ environments based on their workloads. I wanted to proactively gather insights about the cache, including cache hits and misses, so I built metrics to measure the feature.
naveen srinivasan