pespin submitted this change.
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(-)
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);
To view, visit change 39579. To unsubscribe, or for help writing mail filters, visit settings.