Merge "Affine kswapd* kernel threads to platform cores"

This commit is contained in:
Zuul 2020-10-19 02:18:40 +00:00 committed by Gerrit Code Review
commit 31f2d4d5cf
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@ function affine_tasks {
taskset --all-tasks --pid --cpu-list ${PLATFORM_CPULIST} $pid &> /dev/null
done
# Affine kernel kswapd threads to platform cores
pidlist=$(ps --ppid 2 -p 2 -o pid=,comm= | grep -E 'kswapd' | awk '{ print $1; }')
for pid in ${pidlist[@]}; do
taskset --all-tasks --pid --cpu-list ${PLATFORM_CPULIST} $pid &> /dev/null
done
fi
return 0