Attention is currently required from: msuraev.
pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/30303 )

Change subject: rate_ctr: use multiple timerfd
......................................................................


Patch Set 3:

(3 comments)

Patchset:

PS3:
IIUC this triggers 4 timerds per second


File src/rate_ctr.c:

https://gerrit.osmocom.org/c/libosmocore/+/30303/comment/680b87ee_bd21f391
PS3, Line 350:  llist_for_each_entry(ctrg, &rate_ctr_groups, list) {
you may want to have a generic function passing RATE_CTR_INTV_* param here 
instead of repeating the same code like 4 times.


https://gerrit.osmocom.org/c/libosmocore/+/30303/comment/e1b9182a_735ddcc5
PS3, Line 441:  rc = rate_ctr_init_timer(&rate_ctr_timer_sec, &ts_interval_sec, 
rate_ctr_timer_cb_sec);
I'm not liking this new approach because it could output unconsistent metrics, 
for instance if the main loop poll() call triggers in the same operation and 
fds are handled this way:
rate_ctr_timer_sec
statsd_whatever_output_timer
rate_ctr_timer_hour

Or this way:
rate_ctr_timer_hour
statsd_whatever_output_timer
rate_ctr_timer_sec

You end up having statsd report with weird figures where numbers don't match.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/30303
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I78da7119bb745c38eed011b3a8452797a1bfe9d4
Gerrit-Change-Number: 30303
Gerrit-PatchSet: 3
Gerrit-Owner: msuraev <msur...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pes...@sysmocom.de>
Gerrit-Attention: msuraev <msur...@sysmocom.de>
Gerrit-Comment-Date: Mon, 28 Nov 2022 09:55:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Reply via email to