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

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

parent 4261e03a
#!/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
...@@ -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
......
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