aurae-runtime / aurae

Distributed systems runtime daemon written in Rust.
https://aurae.io
Apache License 2.0
1.85k stars 91 forks source link

More thoughtful buffer sizes for the eBPF perf event programs. #380

Closed JeroenSoeters closed 1 year ago

JeroenSoeters commented 1 year ago

As discussed in the stream @krisnova I put some more thought into those buffer sizes. Since the per-CPU buffers of the BPF_PERF_EVENT_ARRAY BPF map are mmaped it made sense to align those buffers with pages.

Also added some comments in an attempt to make this code a bit more readable.