pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-upf/+/39579?usp=email )
Change subject: up_peer: Increase up/cp seid hashtable sizes ......................................................................
up_peer: Increase up/cp seid hashtable sizes
During a 200K session setup, this can still take quite a noticeable amount of time (20% of a full CPU) during session creation.
Change-Id: I424778a4c75000fb67ba4725a6a3e3e91a80fc76 --- M include/osmocom/upf/up_peer.h 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Jenkins Builder: Verified osmith: Looks good to me, approved
diff --git a/include/osmocom/upf/up_peer.h b/include/osmocom/upf/up_peer.h index be5dd52..559b87c 100644 --- a/include/osmocom/upf/up_peer.h +++ b/include/osmocom/upf/up_peer.h @@ -63,8 +63,8 @@ struct osmo_use_count use_count; struct osmo_use_count_entry use_count_buf[5];
- DECLARE_HASHTABLE(sessions_by_up_seid, 6); - DECLARE_HASHTABLE(sessions_by_cp_seid, 6); + DECLARE_HASHTABLE(sessions_by_up_seid, 10); + DECLARE_HASHTABLE(sessions_by_cp_seid, 10); };
struct up_peer *up_peer_find_or_add(struct up_endpoint *up_ep, const struct osmo_sockaddr *remote_addr);