Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
2b36b1f3
Commit
2b36b1f3
authored
3 years ago
by
hardy
Browse files
Options
Downloads
Patches
Plain Diff
redefine monitor conf file + paged graphs
parent
90e84c01
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!1757
Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c
,
!1493
fix DL arq errors in UE
,
!1314
Integration_2021_wk45_c
,
!1307
WIP: [CI] real time stats and monitoring update
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ci-scripts/ran.py
+2
-2
2 additions, 2 deletions
ci-scripts/ran.py
ci-scripts/stats_monitor.py
+46
-29
46 additions, 29 deletions
ci-scripts/stats_monitor.py
ci-scripts/stats_monitor_conf.yaml
+41
-4
41 additions, 4 deletions
ci-scripts/stats_monitor_conf.yaml
with
89 additions
and
35 deletions
ci-scripts/ran.py
+
2
−
2
View file @
2b36b1f3
...
@@ -734,8 +734,8 @@ class RANManagement():
...
@@ -734,8 +734,8 @@ class RANManagement():
mySSH
.
command
(
'
echo
'
+
self
.
eNBPassword
+
'
| sudo -S mv /tmp/enb_*.pcap .
'
,
'
\$
'
,
20
)
mySSH
.
command
(
'
echo
'
+
self
.
eNBPassword
+
'
| sudo -S mv /tmp/enb_*.pcap .
'
,
'
\$
'
,
20
)
mySSH
.
command
(
'
echo
'
+
self
.
eNBPassword
+
'
| sudo -S mv /tmp/gnb_*.pcap .
'
,
'
\$
'
,
20
)
mySSH
.
command
(
'
echo
'
+
self
.
eNBPassword
+
'
| sudo -S mv /tmp/gnb_*.pcap .
'
,
'
\$
'
,
20
)
mySSH
.
command
(
'
echo
'
+
self
.
eNBPassword
+
'
| sudo -S rm -f enb.log.zip
'
,
'
\$
'
,
5
)
mySSH
.
command
(
'
echo
'
+
self
.
eNBPassword
+
'
| sudo -S rm -f enb.log.zip
'
,
'
\$
'
,
5
)
mySSH
.
command
(
'
echo
'
+
self
.
eNBPassword
+
'
| sudo -S zip enb.log.zip enb*.log core* enb_*record.raw enb_*.pcap gnb_*.pcap enb_*txt physim_*.log *stats.log *monitor.pickle *monitor.png
'
,
'
\$
'
,
60
)
mySSH
.
command
(
'
echo
'
+
self
.
eNBPassword
+
'
| sudo -S zip enb.log.zip enb*.log core* enb_*record.raw enb_*.pcap gnb_*.pcap enb_*txt physim_*.log *stats.log *monitor.pickle *monitor
*
.png
'
,
'
\$
'
,
60
)
mySSH
.
command
(
'
echo
'
+
self
.
eNBPassword
+
'
| sudo -S rm enb*.log core* enb_*record.raw enb_*.pcap gnb_*.pcap enb_*txt physim_*.log *stats.log *.pickle *.png
'
,
'
\$
'
,
5
)
mySSH
.
command
(
'
echo
'
+
self
.
eNBPassword
+
'
| sudo -S rm enb*.log core* enb_*record.raw enb_*.pcap gnb_*.pcap enb_*txt physim_*.log *stats.log *
monitor
.pickle
*monitor
*.png
'
,
'
\$
'
,
5
)
mySSH
.
close
()
mySSH
.
close
()
def
AnalyzeLogFile_eNB
(
self
,
eNBlogFile
,
HTML
):
def
AnalyzeLogFile_eNB
(
self
,
eNBlogFile
,
HTML
):
...
...
This diff is collapsed.
Click to expand it.
ci-scripts/stats_monitor.py
+
46
−
29
View file @
2b36b1f3
...
@@ -17,9 +17,15 @@ class StatMonitor():
...
@@ -17,9 +17,15 @@ class StatMonitor():
def
__init__
(
self
,
cfg_file
):
def
__init__
(
self
,
cfg_file
):
with
open
(
cfg_file
,
'
r
'
)
as
file
:
with
open
(
cfg_file
,
'
r
'
)
as
file
:
self
.
d
=
yaml
.
load
(
file
)
self
.
d
=
yaml
.
load
(
file
)
for
node
in
self
.
d
:
for
node
in
self
.
d
:
#so far we have enb or gnb as nodes
for
metric
in
self
.
d
[
node
]:
for
metric_l1
in
self
.
d
[
node
]:
#first level of metric keys
self
.
d
[
node
][
metric
]
=
[]
if
metric_l1
!=
"
graph
"
:
#graph is a reserved word to configure graph paging, so it is disregarded
if
self
.
d
[
node
][
metric_l1
]
is
None
:
#first level is None -> create array
self
.
d
[
node
][
metric_l1
]
=
[]
else
:
#first level is not None -> there is a second level -> create array
for
metric_l2
in
self
.
d
[
node
][
metric_l1
]:
self
.
d
[
node
][
metric_l1
][
metric_l2
]
=
[]
def
process_gnb
(
self
,
node_type
,
output
):
def
process_gnb
(
self
,
node_type
,
output
):
...
@@ -35,15 +41,12 @@ class StatMonitor():
...
@@ -35,15 +41,12 @@ class StatMonitor():
self
.
d
[
node_type
][
'
ulsch_err
'
].
append
(
int
(
result
.
group
(
3
)))
self
.
d
[
node_type
][
'
ulsch_err
'
].
append
(
int
(
result
.
group
(
3
)))
percentage
=
float
(
result
.
group
(
2
))
/
float
(
result
.
group
(
1
))
percentage
=
float
(
result
.
group
(
2
))
/
float
(
result
.
group
(
1
))
self
.
d
[
node_type
][
'
ulsch_err_perc_round_1
'
].
append
(
percentage
)
self
.
d
[
node_type
][
'
ulsch_err_perc_round_1
'
].
append
(
percentage
)
result
=
re
.
match
(
r
'
^.*\bL1 Tx processing thread 0\b:\s+([0-9\.]+) us;\s+([0-9]+);\s+([0-9\.]+) us;
'
,
tmp
)
if
result
is
not
None
:
for
k
in
self
.
d
[
node_type
][
'
rt
'
]:
self
.
d
[
node_type
][
'
L1 Tx processing thread 0
'
].
append
(
float
(
result
.
group
(
3
)))
result
=
re
.
match
(
rf
'
^.*\b
{
k
}
\b:\s+([0-9\.]+) us;\s+([0-9]+);\s+([0-9\.]+) us;
'
,
tmp
)
result
=
re
.
match
(
r
'
^.*\bL1 Tx processing thread 1\b:\s+([0-9\.]+) us;\s+([0-9]+);\s+([0-9\.]+) us;
'
,
tmp
)
if
result
is
not
None
:
if
result
is
not
None
:
self
.
d
[
node_type
][
'
rt
'
][
k
].
append
(
float
(
result
.
group
(
3
)))
self
.
d
[
node_type
][
'
L1 Tx processing thread 1
'
].
append
(
float
(
result
.
group
(
3
)))
result
=
re
.
match
(
r
'
^.*\bDLSCH encoding\b:\s+([0-9\.]+) us;\s+([0-9]+);\s+([0-9\.]+) us;
'
,
tmp
)
if
result
is
not
None
:
self
.
d
[
node_type
][
'
DLSCH encoding
'
].
append
(
float
(
result
.
group
(
3
)))
def
process_enb
(
self
,
node_type
,
output
):
def
process_enb
(
self
,
node_type
,
output
):
for
line
in
output
:
for
line
in
output
:
...
@@ -70,23 +73,37 @@ class StatMonitor():
...
@@ -70,23 +73,37 @@ class StatMonitor():
def
graph
(
self
,
node_type
):
def
graph
(
self
,
node_type
):
col
=
1
for
page
in
self
.
d
[
node_type
][
'
graph
'
]:
#work out a set a graphs per page
figure
,
axis
=
plt
.
subplots
(
len
(
self
.
d
[
node_type
]),
col
,
figsize
=
(
10
,
10
))
col
=
1
i
=
0
figure
,
axis
=
plt
.
subplots
(
len
(
self
.
d
[
node_type
][
'
graph
'
][
page
]),
col
,
figsize
=
(
10
,
10
))
for
metric
in
self
.
d
[
node_type
]:
i
=
0
major_ticks
=
np
.
arange
(
0
,
len
(
self
.
d
[
node_type
][
metric
])
+
1
,
1
)
for
m
in
self
.
d
[
node_type
][
'
graph
'
][
page
]:
#metric may refer to 1 level or 2 levels
axis
[
i
].
set_xticks
(
major_ticks
)
metric_path
=
m
.
split
(
'
.
'
)
axis
[
i
].
set_xticklabels
([])
if
len
(
metric_path
)
==
1
:
#1 level
axis
[
i
].
plot
(
self
.
d
[
node_type
][
metric
],
marker
=
'
o
'
)
metric_l1
=
metric_path
[
0
]
axis
[
i
].
set_xlabel
(
'
time
'
)
major_ticks
=
np
.
arange
(
0
,
len
(
self
.
d
[
node_type
][
metric_l1
])
+
1
,
1
)
axis
[
i
].
set_ylabel
(
metric
)
axis
[
i
].
set_xticks
(
major_ticks
)
axis
[
i
].
set_title
(
metric
)
axis
[
i
].
set_xticklabels
([])
i
+=
1
axis
[
i
].
plot
(
self
.
d
[
node_type
][
metric_l1
],
marker
=
'
o
'
)
axis
[
i
].
set_xlabel
(
'
time
'
)
plt
.
tight_layout
()
axis
[
i
].
set_ylabel
(
metric_l1
)
# Combine all the operations and display
axis
[
i
].
set_title
(
metric_l1
)
plt
.
savefig
(
node_type
+
'
_stats_monitor.png
'
)
plt
.
show
()
else
:
#2 levels
metric_l1
=
metric_path
[
0
]
metric_l2
=
metric_path
[
1
]
major_ticks
=
np
.
arange
(
0
,
len
(
self
.
d
[
node_type
][
metric_l1
][
metric_l2
])
+
1
,
1
)
axis
[
i
].
set_xticks
(
major_ticks
)
axis
[
i
].
set_xticklabels
([])
axis
[
i
].
plot
(
self
.
d
[
node_type
][
metric_l1
][
metric_l2
],
marker
=
'
o
'
)
axis
[
i
].
set_xlabel
(
'
time
'
)
axis
[
i
].
set_ylabel
(
metric_l2
)
axis
[
i
].
set_title
(
metric_l2
)
i
+=
1
plt
.
tight_layout
()
#save as png
plt
.
savefig
(
node_type
+
'
_stats_monitor_
'
+
page
+
'
.png
'
)
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
ci-scripts/stats_monitor_conf.yaml
+
41
−
4
View file @
2b36b1f3
...
@@ -2,13 +2,50 @@ enb :
...
@@ -2,13 +2,50 @@ enb :
PHR
:
PHR
:
bler
:
bler
:
mcsoff
:
mcsoff
:
mcs
:
mcs
:
graph
:
page1
:
PHR
:
bler
:
mcsoff
:
mcs
:
gnb
:
gnb
:
dlsch_err
:
dlsch_err
:
dlsch_err_perc_round_1
:
dlsch_err_perc_round_1
:
ulsch_err
:
ulsch_err
:
ulsch_err_perc_round_1
:
ulsch_err_perc_round_1
:
L1 Tx processing thread 0
:
rt
:
L1 Tx processing thread 1
:
feprx
:
DLSCH encoding
:
feptx_prec
:
\ No newline at end of file
feptx_ofdm
:
feptx_total
:
L1 Tx processing thread 0
:
L1 Tx processing thread 1
:
DLSCH encoding
:
L1 Rx processing
:
PUSCH inner-receiver
:
PUSCH decoding
:
DL & UL scheduling timing stats
:
UL Indication
:
graph
:
page1
:
dlsch_err
:
dlsch_err_perc_round_1
:
ulsch_err
:
ulsch_err_perc_round_1
:
page2
:
rt.feprx
:
rt.feptx_prec
:
rt.feptx_ofdm
:
rt.feptx_total
:
page3
:
rt.L1 Tx processing thread 0
:
rt.L1 Tx processing thread 1
:
rt.DLSCH encoding
:
rt.L1 Rx processing
:
page4
:
rt.PUSCH inner-receiver
:
rt.PUSCH decoding
:
rt.DL & UL scheduling timing stats
:
rt.UL Indication
:
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment