From 2aeba1b85d967041672ac9dcfda421e0e6f5dc3f Mon Sep 17 00:00:00 2001 From: liyan Date: Tue, 4 Jul 2023 15:29:22 +0800 Subject: [PATCH] Update {{project-name}}/src/main.rs Co-authored-by: Alessandro Decina --- {{project-name}}/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,