eunomia-bpf / bpftime

Userspace eBPF runtime for Observability, Network & General Extensions Framework
https://eunomia.dev/bpftime/
MIT License
833 stars 78 forks source link

[FEATURE] Support dynamic grow shared memory #324

Open yunwei37 opened 3 months ago

yunwei37 commented 3 months ago

Is your feature request related to a problem? Please describe.

See #308. When the shared memory is full, the eBPF application cannot alloc new eBPF maps or load eBPF programs. A bad_alloc error will be raised.

It can be solve by using flag to pre-alloc a larger memory, but a dynamic grow memory would be better

Describe the solution you'd like

We can use the boost api grow to dynamic alloc more memory.