2023-07-05 13:19:59 +00:00
|
|
|
#!/usr/bin/bash
|
|
|
|
#
|
|
|
|
# shell script to turn SLUB cpu_partial logic off
|
|
|
|
# for improved determinism
|
|
|
|
#
|
2023-07-05 13:58:24 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#
|
2023-07-05 13:19:59 +00:00
|
|
|
|
|
|
|
if [ "$(id -u)" != "0" ]; then
|
|
|
|
echo "Must be root to run $(basename $0)"
|
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
find /sys/kernel/slab -name 'cpu_partial' -print | \
|
|
|
|
while read f; do echo 0 > $f; done
|