Merge "Debian KS: Force enable lowlatency trait if realtime kernel is detected"

This commit is contained in:
Zuul 2022-05-16 20:49:30 +00:00 committed by Gerrit Code Review
commit bcc4c71090
1 changed files with 11 additions and 2 deletions

View File

@ -651,6 +651,17 @@ for trait in ${traits//,/ }; do
esac
done
ilog "Install traits: $traits"
# Force enable 'lowlatency' trait if the realtime kernel is detected ; PREEMPT_RT
uname=$(uname -a)
if [[ "${uname}" == *"PREEMPT_RT"* ]] ; then
if [ "${lowlatency}" = false ] ; then
wlog "forcing lowlatency trait after discovering the RT kernel"
lowlatency=true
fi
fi
[ "${controller}" = true -a "${worker}" = true ] && aio=true
grep -q 'debug_kickstart' /proc/cmdline
@ -1378,8 +1389,6 @@ for e in $*; do
done
fi
ilog "Install traits: $traits"
# Set node traits' state
[ "${controller}" = true ] && ilog "Controller Function"
[ "${storage}" = true ] && ilog "Storage Function"