+5
−1
Loading
These spdk_event structures are used for passing messages between reactors. When it was first created, we did not have the concept of spdk_threads, so this pool needed to be very large since all "per-thread" messaging was done using this pool. But now spdk_threads are the primary mechanism for per-thread messaging. This event pool in the reactor code is only for messages sent between cores which is basically for the scheduler and interrupt mode. 256K pool size was way too big, and ends up consuming over 50MB of memory. Shrink it to 16K, which is probably still an order of magnitude more than needed, but still significantly cuts the amount of memory wasted by this mempool. Signed-off-by:Jim Harris <jim.harris@samsung.com> Change-Id: Id46aeae7fd6a495d90ab40ed90f2dcb89b6ef885 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24998 Reviewed-by:
Pawel Piatek <pawelx.piatek@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com>