Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
cf36c6d8
Commit
cf36c6d8
authored
Sep 27, 2023
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to reduce ITTI log message volume when queues full
parent
d19302fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
common/utils/ocp_itti/intertask_interface.cpp
common/utils/ocp_itti/intertask_interface.cpp
+12
-15
No files found.
common/utils/ocp_itti/intertask_interface.cpp
View file @
cf36c6d8
...
...
@@ -133,21 +133,18 @@ extern "C" {
size_t
s
=
t
->
message_queue
.
size
();
// to reduce the number of logs, we give a message each increase of 10%
if
(
s
>
t
->
last_log_size
*
1.1
&&
s
>
t
->
admin
.
queue_size
)
{
if
((
s
>
t
->
last_log_size
*
1.25
)
&&
(
s
>
t
->
admin
.
queue_size
/
10
))
{
if
(
s
>
t
->
admin
.
queue_size
)
{
LOG_E
(
TMR
,
"Queue for %s task contains %ld messages
\n
"
,
itti_get_task_name
(
destination_task_id
),
s
);
t
->
last_log_size
=
s
;
}
else
if
(
s
>
t
->
last_log_size
*
1.1
&&
s
>
t
->
admin
.
queue_size
/
10
)
{
}
else
{
LOG_I
(
ITTI
,
"Queue for %s task size: %ld (last message %s)
\n
"
,
itti_get_task_name
(
destination_task_id
),
s
+
1
,
ITTI_MSG_NAME
(
message
));
t
->
last_log_size
=
s
;
}
if
(
t
->
last_log_size
&&
t
->
last_log_size
<
t
->
admin
.
queue_size
/
10
)
{
t
->
last_log_size
=
s
;
}
else
if
(
t
->
last_log_size
&&
s
<
t
->
admin
.
queue_size
/
10
)
{
// Inform when the queue decreases
LOG_I
(
ITTI
,
"Queue for %s task size is back under 10%% of max size
\n
"
,
itti_get_task_name
(
destination_task_id
));
t
->
last_log_size
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment