performancecopilot / pcp

Performance Co-Pilot
https://pcp.io
Other
974 stars 237 forks source link

Avoid too-low rlimit limit for pmdabpf #2091

Closed wcohen closed 1 month ago

wcohen commented 1 month ago

On older Linux kernels (pre 5.11) running multiple BPF applications may exceed the locked pages limit (RLIMIT_MEMLOCK) imposed in pmdabpf and prevent additional BPF applications from starting. The pmdabpf has been changed to remove any locked page limit to elimitate this arbitrary limit interferring with BPF application startup. This patch is based on the proposed patch from Nathan Scott in the issue.

Resolves: https://github.com/performancecopilot/pcp/issues/1915