realtime-setup/slub_cpu_partial_off
Clark Williams ffb094355a add SPDX tags
Signed-off-by: Clark Williams <williams@redhat.com>
2023-07-05 18:32:04 -05:00

15 lines
327 B
Bash
Executable File

#!/usr/bin/bash
#
# shell script to turn SLUB cpu_partial logic off
# for improved determinism
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
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