diff --git a/{{project-name}}/src/main.rs b/{{project-name}}/src/main.rs index ee29b64..861cf51 100644 --- a/{{project-name}}/src/main.rs +++ b/{{project-name}}/src/main.rs @@ -71,7 +71,8 @@ async fn main() -> Result<(), anyhow::Error> { {% endif %} env_logger::init(); - // Allow current process to lock memory for eBPF resources. + // Bump the memlock rlimit. This is needed for older kernels that don't use the + // new memcg based accounting, see https://lwn.net/Articles/837122/ let rlim = libc::rlimit { rlim_cur: libc::RLIM_INFINITY, rlim_max: libc::RLIM_INFINITY,