Skip to content

Replace mempool_{create,destroy} locking with RCU list

Ondřej Surý requested to merge 4325-remove-isc_mempool-locking into main

According to the measurements, we spend quite a lot of time waiting for the memory context lock in isc_mempool_{create,destroy}. Remove the memory context lock, replace the mempool list with RCU list, and don't protect the .checkfree and .name variables - those are constant for the lifetime of the memory context anyway.

Closes #4325 (closed)

Merge request reports