From ac7cc3c42dc12dc1b48bfa622bb9e30ef337fa50 Mon Sep 17 00:00:00 2001 From: Francisco Date: Thu, 8 Apr 2021 15:13:30 +0100 Subject: [PATCH] change enb ue softbuffer initial allocation size --- srsenb/src/stack/mac/mac.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/srsenb/src/stack/mac/mac.cc b/srsenb/src/stack/mac/mac.cc index 446cd980f..994d0831e 100644 --- a/srsenb/src/stack/mac/mac.cc +++ b/srsenb/src/stack/mac/mac.cc @@ -83,12 +83,8 @@ bool mac::init(const mac_args_t& args_, new (ptr) ue_cc_softbuffers(nof_prb, SRSRAN_FDD_NOF_HARQ, SRSRAN_FDD_NOF_HARQ); }; auto recycle_softbuffers = [](ue_cc_softbuffers& softbuffers) { softbuffers.clear(); }; - softbuffer_pool.reset( - new srsran::background_obj_pool(16, - 4, - std::min(args.max_nof_ues, 16U), // initial allocation size - init_softbuffers, - recycle_softbuffers)); + softbuffer_pool.reset(new srsran::background_obj_pool( + 8, 8, args.max_nof_ues, init_softbuffers, recycle_softbuffers)); // Pre-alloc UE objects for first attaching users prealloc_ue(10);