Commit 39ca0ccd authored by Joanne Hugé's avatar Joanne Hugé

playbook/ors: move enb lte_init.sh to init-enb

parent 4261e03a
Pipeline #37349 failed with stage
in 0 seconds
#!/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)"
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
$AMARISOFT_PATH/enb/lte_init.sh;
# set the "performance" governor for all CPUs to have the highest
# clock frequency
if [ -e "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" ] ; then
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
......@@ -189,6 +189,11 @@
- name: Add kernel parameter
script: configure-grub
# eNB performance
- name: Disable ondemand service (changes CPU governor)
systemd: name=ondemand.service enabled=no state=stopped
# SSH
- name: Configure ssh
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment