Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Michael Black
OpenXG UE
Commits
f69c2a4c
Commit
f69c2a4c
authored
Oct 14, 2021
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update runtime stats graphs
parent
dbc94698
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
ci-scripts/ran.py
ci-scripts/ran.py
+4
-3
ci-scripts/stats_monitor.py
ci-scripts/stats_monitor.py
+5
-4
ci-scripts/xml_files/fr1_nsa_2x2_quectel.xml
ci-scripts/xml_files/fr1_nsa_2x2_quectel.xml
+2
-2
No files found.
ci-scripts/ran.py
View file @
f69c2a4c
...
@@ -483,12 +483,13 @@ class RANManagement():
...
@@ -483,12 +483,13 @@ class RANManagement():
#stats monitoring during runtime
#stats monitoring during runtime
time
.
sleep
(
20
)
time
.
sleep
(
20
)
monitor_file
=
'stats_monitor.py'
monitor_file
=
'../ci-scripts/stats_monitor.py'
conf_file
=
'../ci-scripts/stats_monitor_conf.yaml'
if
self
.
eNB_Stats
==
'yes'
:
if
self
.
eNB_Stats
==
'yes'
:
if
(
self
.
air_interface
[
self
.
eNB_instance
]
==
'lte-softmodem'
)
or
(
self
.
air_interface
[
self
.
eNB_instance
]
==
'ocp-enb'
):
if
(
self
.
air_interface
[
self
.
eNB_instance
]
==
'lte-softmodem'
)
or
(
self
.
air_interface
[
self
.
eNB_instance
]
==
'ocp-enb'
):
mySSH
.
command
(
'echo $USER; nohup python3
../ci-scripts/'
+
monitor
_file
+
' enb 2>&1 > enb_stats_monitor_execution.log &'
,
'\$'
,
5
)
mySSH
.
command
(
'echo $USER; nohup python3
'
+
monitor_file
+
' '
+
conf
_file
+
' enb 2>&1 > enb_stats_monitor_execution.log &'
,
'\$'
,
5
)
else
:
else
:
mySSH
.
command
(
'echo $USER; nohup python3
../ci-scripts/'
+
monitor
_file
+
' gnb 2>&1 > gnb_stats_monitor_execution.log &'
,
'\$'
,
5
)
mySSH
.
command
(
'echo $USER; nohup python3
'
+
monitor_file
+
' '
+
conf
_file
+
' gnb 2>&1 > gnb_stats_monitor_execution.log &'
,
'\$'
,
5
)
...
...
ci-scripts/stats_monitor.py
View file @
f69c2a4c
...
@@ -14,8 +14,8 @@ import yaml
...
@@ -14,8 +14,8 @@ import yaml
class
StatMonitor
():
class
StatMonitor
():
def
__init__
(
self
,):
def
__init__
(
self
,
cfg_file
):
with
open
(
'stats_monitor_conf.yaml'
,
'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
:
for
metric
in
self
.
d
[
node
]:
for
metric
in
self
.
d
[
node
]:
...
@@ -83,8 +83,9 @@ class StatMonitor():
...
@@ -83,8 +83,9 @@ class StatMonitor():
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
node
=
sys
.
argv
[
1
]
#enb or gnb
cfg_filename
=
sys
.
argv
[
1
]
#yaml file as metrics config
mon
=
StatMonitor
()
node
=
sys
.
argv
[
2
]
#enb or gnb
mon
=
StatMonitor
(
cfg_filename
)
#collecting stats when modem process is stopped
#collecting stats when modem process is stopped
CMD
=
'ps aux | grep mode | grep -v grep'
CMD
=
'ps aux | grep mode | grep -v grep'
...
...
ci-scripts/xml_files/fr1_nsa_2x2_quectel.xml
View file @
f69c2a4c
...
@@ -122,8 +122,8 @@
...
@@ -122,8 +122,8 @@
<testCase
id=
"070001"
>
<testCase
id=
"070001"
>
<class>
Iperf
</class>
<class>
Iperf
</class>
<desc>
iperf (UL/1Mbps/UDP)(
6
0 sec)(single-ue profile)
</desc>
<desc>
iperf (UL/1Mbps/UDP)(
2
0 sec)(single-ue profile)
</desc>
<iperf_args>
-u -b 1M -t
6
0
</iperf_args>
<iperf_args>
-u -b 1M -t
2
0
</iperf_args>
<direction>
UL
</direction>
<direction>
UL
</direction>
<id>
nrmodule2_quectel
</id>
<id>
nrmodule2_quectel
</id>
<iperf_packetloss_threshold>
5
</iperf_packetloss_threshold>
<iperf_packetloss_threshold>
5
</iperf_packetloss_threshold>
...
...
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