bpf_map_delet_elem too slow
On Thu, Feb 7, 2019 at 8:31 AM Иван Иванов <iwan12iwan12@...> wrote:
It is not recommended to do delete() during get_next_key() loop.
The delete() may change kernel internal hash table structure
and get_next_key() may not function as expected.
You can do one loop with get_next_key() to get all the keys
and another loop to do deletions.
I use simple prog to get stat from my map type BPF_MAP_TYPE_HASH.
An got too slow speed to delete elems from it, lookup elem 100-1000x faster.
My code is just
whitout deleting code is very fast.