Attention is currently required from: neels, pespin, fixeria, daniel, dexter.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/28182 )
Change subject: iuup: Rework API to support RFCI IDs != RFCI index
......................................................................
Patch Set 3: Code-Review+1
(1 comment)
File src/gsm/iuup.c:
https://gerrit.osmocom.org/c/libosmocore/+/28182/comment/c158722d_b11f9d00
PS3, Line 348: msgb_free(msg);
> the other code path does not free msg at the end. […]
nvm, the msgb is created in osmo_iuup_tnl_prim_alloc so it makes sense.
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/28182
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ib21cee2e30bf83dff4e167f79541796007af9845
Gerrit-Change-Number: 28182
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 25 May 2022 12:32:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: neels, pespin, fixeria, daniel, dexter.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/28182 )
Change subject: iuup: Rework API to support RFCI IDs != RFCI index
......................................................................
Patch Set 3:
(2 comments)
Patchset:
PS3:
not sure about the msgb_free, rest looks good!
File src/gsm/iuup.c:
https://gerrit.osmocom.org/c/libosmocore/+/28182/comment/a1c0f113_d633749f
PS3, Line 348: msgb_free(msg);
the other code path does not free msg at the end. should we really do it here?
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/28182
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ib21cee2e30bf83dff4e167f79541796007af9845
Gerrit-Change-Number: 28182
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 25 May 2022 12:28:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: neels.
iedemam has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/28165 )
Change subject: stats: new trackers for lchan life duration (v2)
......................................................................
Patch Set 4:
(1 comment)
Patchset:
PS4:
> I don't see any stats reporting in this patch anymore. This is only about VTY output?
> The commit log says "stats".
The function bts_store_lchan_durations() stores duration values in the stats system after summing across all lchans. I'm already using these values in production and comparing to our previous approach. They are tracking well.
> IMHO it would be better to fix the performance problem in osmo_time_cc.
> The way this patch avoids performance issues is to reduce the timer callback to 1/s,
No, the biggest improvement is only using one timer per BSC instead of one timer per lchan.
> Of course we can reconfigure osmo_time_cc to trigger timers only once per second.
> It may be necessary to separate the granularity from the update timer period,
> then we can get milliseconds precision while updating that value less often.
>
> Another fix is to have only one single timer callback that updates all active
> osmo_time_cc. Like that we can have active lchan tracking in millisecond precision
> for *any* number of lchans with only a single timer in select() for all of them.
> This would reduce the select() load by a factor that is the number of active lchans,
> in production environments this is more than factor 10 (as this patch does).
I think we're just turning things inside out at this point then. Why add any timer logic at all to each lchan when they will all be externally controlled and triggered? The only thing each lchan needs to know about itself is a couple of timestamps.
> osmo_time_cc made problems because it is fairly new code that tries to solve a
> pretty complex problem in a generic way, and I built some problems into it.
> IMHO it is worth it to make that work, so that iedemam's patch will perform well.
If you were free to implement all of the above suggestions, I might vote this way as well. However, I don't think you have much free time on your hands given the delay in each response. This is not a criticism, just being practical in solving the problem at hand.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/28165
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ie3771233ecbd4bc24a24fb22c1064a18e7b8b2b0
Gerrit-Change-Number: 28165
Gerrit-PatchSet: 4
Gerrit-Owner: iedemam <michael(a)kapsulate.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 25 May 2022 12:02:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: iedemam.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/28165 )
Change subject: stats: new trackers for lchan life duration (v2)
......................................................................
Patch Set 4:
(1 comment)
Patchset:
PS4:
I don't see any stats reporting in this patch anymore. This is only about VTY output?
The commit log says "stats".
IMHO it would be better to fix the performance problem in osmo_time_cc.
The way this patch avoids performance issues is to reduce the timer callback to 1/s,
the time_cc patch called timers 10/s * nr of active lchans, by granularity configuration.
Of course we can reconfigure osmo_time_cc to trigger timers only once per second.
It may be necessary to separate the granularity from the update timer period,
then we can get milliseconds precision while updating that value less often.
Another fix is to have only one single timer callback that updates all active
osmo_time_cc. Like that we can have active lchan tracking in millisecond precision
for *any* number of lchans with only a single timer in select() for all of them.
This would reduce the select() load by a factor that is the number of active lchans,
in production environments this is more than factor 10 (as this patch does).
osmo_time_cc made problems because it is fairly new code that tries to solve a
pretty complex problem in a generic way, and I built some problems into it.
IMHO it is worth it to make that work, so that iedemam's patch will perform well.
On the other hand I feel like i have caused substantial work with my review on this topic,
and i am ok with an implementation that goes in the wrong direction from my point of view,
if it does the right thing in everyone else's opinion.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/28165
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ie3771233ecbd4bc24a24fb22c1064a18e7b8b2b0
Gerrit-Change-Number: 28165
Gerrit-PatchSet: 4
Gerrit-Owner: iedemam <michael(a)kapsulate.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: iedemam <michael(a)kapsulate.com>
Gerrit-Comment-Date: Wed, 25 May 2022 11:44:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: osmith, neels, fixeria, daniel, dexter.
Hello osmith, Jenkins Builder, neels, fixeria, daniel, dexter,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-mgw/+/28183
to look at the new patch set (#2).
Change subject: IuUP: Support RFCI ID != RFCI Index
......................................................................
IuUP: Support RFCI ID != RFCI Index
The initially merged IuUP API and implementation in libosmocore assumed
that RFCI with ID was always in the position of its ID inside the list
of RFCIs. This was the case for messages sent by ip.access nano3g as well
as our own osmocom implementation. However it was noticed that other nodes
from other vendors actually use other order, as allowed by the IuUP message
format.
Hence, we need to break the assumption and provide explicit ID
information in the list.
NOTICE: This commit implies an API change when using libosmogsm.
However, the previous API was never available in any libosmogsm release,
and only available in both libosmogsm and osmo-mgw master, so we are
only breaking compatibility between different master versions, which is
acceptable.
Related: SYS#5969
Depends: libosmocore.git Change-Id Ib21cee2e30bf83dff4e167f79541796007af9845
Change-Id: I40ebf36ad37f5196751caf2297a340e538ad28bc
---
M TODO-RELEASE
M include/osmocom/mgcp/mgcp_conn.h
M src/libosmo-mgcp/mgcp_iuup.c
3 files changed, 42 insertions(+), 25 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/83/28183/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/28183
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I40ebf36ad37f5196751caf2297a340e538ad28bc
Gerrit-Change-Number: 28183
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: osmith, neels, fixeria, daniel, dexter.
Hello osmith, Jenkins Builder, neels, fixeria, daniel, dexter,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmocore/+/28182
to look at the new patch set (#3).
Change subject: iuup: Rework API to support RFCI IDs != RFCI index
......................................................................
iuup: Rework API to support RFCI IDs != RFCI index
The initially merged IuUP API and implementation assumed that RFCI with
ID was always in the position of its ID inside the list of RFCIs. This
was the case for messages sent by ip.access nano3g as well as our own
osmocom implementation. However it was noticed that other nodes from
other vendors actually use other order, as allowed by the IuUP message
format.
Hence, we need to break the assumption and provide explicit ID
information in the list.
NOTICE: This commit breaks API and ABI compatibility with older versions
of libosmogsm, but not with any previous release of libosmocore since
the API is only available in master so far (it was added in
9fe1f9fb0b3197cdecaa55017d3afd7355e59c36).
Similary, it's only user (osmo-mgw) only uses the API in master, so
there's no API breakage with older releases.
Related: SYS#5969
Change-Id: Ib21cee2e30bf83dff4e167f79541796007af9845
---
M TODO-RELEASE
M include/osmocom/gsm/iuup.h
M src/gsm/iuup.c
M tests/iuup/iuup_test.c
4 files changed, 76 insertions(+), 48 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/82/28182/3
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/28182
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ib21cee2e30bf83dff4e167f79541796007af9845
Gerrit-Change-Number: 28182
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newpatchset