Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Carlos Ramos Carreño
slapos.package
Commits
39ca0ccd
Commit
39ca0ccd
authored
Oct 09, 2024
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/ors: move enb lte_init.sh to init-enb
parent
4261e03a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
playbook/roles/ors/files/init-enb
playbook/roles/ors/files/init-enb
+16
-4
playbook/roles/ors/tasks/main.yml
playbook/roles/ors/tasks/main.yml
+5
-0
No files found.
playbook/roles/ors/files/init-enb
View file @
39ca0ccd
#!/bin/bash
#!/bin/bash
AMARISOFT_PATH
=
"/opt/amarisoft/
$(
ls
-1
/opt/amarisoft |
grep
"^v[0-9]
\{
4
\}
-[0-9]
\{
2
\}
-[0-9]
\{
2
\}
.*[0-9]*$"
|
sort
|
tail
-n1
)
"
# set the "performance" governor for all CPUs to have the highest
export
PATH
=
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
$PATH
"
# clock frequency
if
[
-e
"/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
]
;
then
$AMARISOFT_PATH
/enb/lte_init.sh
;
CPUS0
=
$(
ls
/sys/devices/system/cpu/ |
grep
-oP
"cpu
\K\d
+"
)
CPUS1
=
""
for
cpu
in
$CPUS0
;
do
if
[
-e
"/sys/devices/system/cpu/cpu
${
cpu
}
/online"
]
;
then
if
[
"
$(
cat
/sys/devices/system/cpu/cpu
${
cpu
}
/online
)
"
=
"0"
]
;
then continue
;
fi
fi
CPUS1
=
"
$CPUS1
$cpu
"
done
echo
"Set performance scaling governor for cpus
$CPUS1
"
for
cpu
in
$CPUS1
;
do
echo
performance
>
/sys/devices/system/cpu/cpu
${
cpu
}
/cpufreq/scaling_governor
done
fi
playbook/roles/ors/tasks/main.yml
View file @
39ca0ccd
...
@@ -189,6 +189,11 @@
...
@@ -189,6 +189,11 @@
-
name
:
Add kernel parameter
-
name
:
Add kernel parameter
script
:
configure-grub
script
:
configure-grub
# eNB performance
-
name
:
Disable ondemand service (changes CPU governor)
systemd
:
name=ondemand.service enabled=no state=stopped
# SSH
# SSH
-
name
:
Configure ssh
-
name
:
Configure ssh
...
...
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