Attention is currently required from: laforge, pespin.
jolly has posted comments on this change by jolly. (
https://gerrit.osmocom.org/c/libosmocore/+/40725?usp=email )
Change subject: Automatically increase io_uring, if too small.
......................................................................
Patch Set 6:
(6 comments)
File src/core/osmo_io_internal.h:
https://gerrit.osmocom.org/c/libosmocore/+/40725/comment/552ae731_981cd2ff?… :
PS6, Line 116: /* ! array of rings the submitted read SQEs have been submitted */
"have been submitted to"
Done
File src/core/osmo_io_uring.c:
https://gerrit.osmocom.org/c/libosmocore/+/40725/comment/26394b77_0fcf72bf?… :
PS6, Line 115: g_ring = calloc(1, sizeof(*g_ring));
use talloc.
Done
https://gerrit.osmocom.org/c/libosmocore/+/40725/comment/4e4bec31_ca323694?… :
PS6, Line 164: LOGP(DLIO, LOGL_NOTICE, "increasing io_uring size to %d.\n",
g_io_uring_size);
Please put this into 1 single LOGP.
Done
https://gerrit.osmocom.org/c/libosmocore/+/40725/comment/916ef134_960c9bdd?… :
PS6, Line 172: sqe = io_uring_get_sqe(&g_ring->ring);
so here we end up with 2 read SQEs on 2 different
queues. […]
I added a check, so subsequent read SQEs are never spread over different
rings.
https://gerrit.osmocom.org/c/libosmocore/+/40725/comment/66a64478_c9e53bf8?… :
PS6, Line 527: while ((sqe = io_uring_get_sqe(iofd->u.uring.read_ring[idx])) ==
NULL);
that looks like a really nice tight non-blocking loop
filling the CPU?
Done
https://gerrit.osmocom.org/c/libosmocore/+/40725/comment/3f85a947_de8c504b?… :
PS6, Line 543: while ((sqe = io_uring_get_sqe(iofd->u.uring.write_ring)) == NULL);
that looks like a really nice tight non-blocking loop
filling the CPU?
Done
--
To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/40725?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Id9230146acc8d54bfd44834e783c31b37bd64bca
Gerrit-Change-Number: 40725
Gerrit-PatchSet: 6
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 01 Aug 2025 07:49:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>