Attention is currently required from: arehbein, laforge, pespin.
daniel has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmocore/+/34743?usp=email )
Change subject: gsmtap_util: Use Osmo IO instead of Osmo write queues
......................................................................
Patch Set 8:
(1 comment)
File src/core/gsmtap_util.c:
https://gerrit.osmocom.org/c/libosmocore/+/34743/comment/8a07c099_d0014ba2
PS5, Line 478: osmo_iofd_setup(gti, gti->sink_fd, "gsmtap_inst.out",
OSMO_IO_FD_MODE_READ_WRITE, &gsmtap_sink_ops, NULL);
In that case I guess we want to limit somehow the read
buffer queue in the kernel to the minimum (even 0) to avoid wasting kb/mb of memory for
each gsmtap socket sink with filled message that are never read.
Yeah, might be a good idea, but out of scope for this patch.
@arehbein@sysmocom.de gsmtap_source_add_sink is called in logging_gsmtap.c and also in
osmo_pcu and osmo_bts.
In libosmocore/src/vty/logging_vty.c cfg_log_gsmtap calls log_target_create_gsmtap with
false, true as last parameters.
That means ofd_wq_mode false and add_sink true.
We should change the ofd_wq_mode parameter to true here, otherwise it doesn't use
osmo_io at all. Not sure if we need a VTY parameter for that.
Since add_sink is true the code will call gsmtap_source_add_sink() which creates the sink
only if the gsmtap target is local. So simply enabling gsmtap logging to 127.0.0.1 should
call the code in question.
--
To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/34743?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iadbbef74e3add7001d84dd6b68f51eac293e44d0
Gerrit-Change-Number: 34743
Gerrit-PatchSet: 8
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: arehbein <arehbein(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 24 Oct 2023 12:05:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: arehbein <arehbein(a)sysmocom.de>
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Comment-In-Reply-To: daniel <dwillmann(a)sysmocom.de>
Gerrit-MessageType: comment