libbpf not properly detecting support for memcg-based memory accounting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It appears that while using libbpf 1.0.1 on a 5.10 kernel, libbpf is
not properly recognizing a lack of support for memcg-based memory
accounting. This is happening in Google's default Kubernetes
environment (GKE). The error message we receive is:

```
libbpf: map 'sys_32_to_64_map': failed to create: operation not permitted(-1)
libbpf: permission error while running as root; try raising 'ulimit
-l'? current value: 64.0 KiB
libbpf: failed to load object 'embedded-core'
```

We were able to fix this issue by manually bumping the memory rlimit,
leading to the conclusion that the detection of memcg-based memory is
not functioning properly, and therefore libbpf is not handling this
manual bump as advertised.

Environment:

```
Linux ubuntu 5.10.123+ #1 SMP Sat Jul 9 14:51:14 UTC 2022 x86_64
x86_64 x86_64 GNU/Linux
```

Thanks so much,
Grant Seltzer



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux