Skip to content

libbpf: map 'processes': failed to create: Cannot allocate memory(-12) #82

@mjura

Description

@mjura

During lockcd testing I have got following error

Oct 14 12:12:35 lockc-control-plane-0 systemd[1]: Starting lockc daemon...
Oct 14 12:12:35 lockc-control-plane-0 lockcd[3887]: libbpf: elf: skipping unrecognized data section(11) .rodata.str1.1
Oct 14 12:12:36 lockc-control-plane-0 lockcd[3887]: libbpf: Error in bpf_create_map_xattr(processes):Cannot allocate memory(-12). >
Oct 14 12:12:36 lockc-control-plane-0 lockcd[3887]: libbpf: map 'processes': failed to create: Cannot allocate memory(-12)
Oct 14 12:12:36 lockc-control-plane-0 lockcd[3887]: libbpf: failed to load object 'lockc_bpf'
Oct 14 12:12:36 lockc-control-plane-0 lockcd[3887]: libbpf: failed to load BPF skeleton 'lockc_bpf': -12
Oct 14 12:12:36 lockc-control-plane-0 lockcd[3887]: Error: libbpf error
Oct 14 12:12:36 lockc-control-plane-0 lockcd[3887]: Caused by:
Oct 14 12:12:36 lockc-control-plane-0 lockcd[3887]:     System error, errno: 12

How to reproduce it:

  1. Build lockc project
  2. Use terraform libvirt to create small VM with 2048 MB of RAM
  3. Start VM and try to restart lockcd with systemctl start lockcd
  4. Check lockcd status using systemctl status lockcd

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions