Attention is currently required from: osmith.
pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-smlc/+/38888?usp=email )
Change subject: contrib/jenkins: libosmo-abis after libosmo-netif
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-smlc/+/38888?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-smlc
Gerrit-Branch: master
Gerrit-Change-Id: I00f1dc510823d947992c8a5b2ce97a22c322b43b
Gerrit-Change-Number: 38888
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 22 Nov 2024 12:35:33 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/38886?usp=email )
Change subject: osmo_io: Increase default queue max_length from 32 to 1024
......................................................................
osmo_io: Increase default queue max_length from 32 to 1024
The default value is way too low, and can be hit easily by apps
submitting several messages in one main loop run.
This is the case for instance of the Abis OML protocol, where a cascade
of "State Changed Event Reports" are sent for the whole object tree.
Set the default to a saner bigger value. In the end, increasing the
value doesn't hurt normal use of apps, and 1024 is still a fairly small
number to avoid the app eating the whole system memory if something
unexpected happens.
Change-Id: I92d5369af523f6297d45d4b534bb0f349ae74485
---
M src/core/osmo_io.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/86/38886/1
diff --git a/src/core/osmo_io.c b/src/core/osmo_io.c
index af096e6..98d8ef3 100644
--- a/src/core/osmo_io.c
+++ b/src/core/osmo_io.c
@@ -637,7 +637,7 @@
* The created osmo_io_fd is initialized with some default settings:
* * msgb allocations size: OSMO_IO_DEFAULT_MSGB_SIZE (1024)
* * msgb headroom: OSMO_IO_DEFAULT_MSGB_HEADROOM (128)
- * * tx_queue depth: 32
+ * * tx_queue depth: 1024
*
* Those values may be adjusted from their defaults by using osmo_iofd_set_alloc_info() and
* osmo_iofd_set_txqueue_max_length() on the osmo_io_fd.
@@ -696,7 +696,7 @@
iofd->msgb_alloc.size = OSMO_IO_DEFAULT_MSGB_SIZE;
iofd->msgb_alloc.headroom = OSMO_IO_DEFAULT_MSGB_HEADROOM;
- iofd->tx_queue.max_length = 32;
+ iofd->tx_queue.max_length = 1024;
INIT_LLIST_HEAD(&iofd->tx_queue.msg_queue);
return iofd;
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/38886?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I92d5369af523f6297d45d4b534bb0f349ae74485
Gerrit-Change-Number: 38886
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/38887?usp=email )
Change subject: gsmtap: Increase txqueue max_length from 64 to 1024
......................................................................
gsmtap: Increase txqueue max_length from 64 to 1024
The default value may be too low for main loop iterations writing a lot
of output. Increase it to a saner value.
Change-Id: Ie737e1d060ea3ee48631604bbae1b8b84cf787b9
---
M src/core/gsmtap_util.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/87/38887/1
diff --git a/src/core/gsmtap_util.c b/src/core/gsmtap_util.c
index b64c7b0..62d3ffa 100644
--- a/src/core/gsmtap_util.c
+++ b/src/core/gsmtap_util.c
@@ -496,8 +496,8 @@
if (osmo_iofd_register(gti->out, gti->wq.bfd.fd) < 0)
goto err_cleanup;
- /* osmo write queue previously used was set up with value of 64 */
- osmo_iofd_set_txqueue_max_length(gti->out, 64);
+ /* Use a big enough tx queue to avoid gsmtap messages being dropped: */
+ osmo_iofd_set_txqueue_max_length(gti->out, 1024);
}
return gti;
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/38887?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ie737e1d060ea3ee48631604bbae1b8b84cf787b9
Gerrit-Change-Number: 38887
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>