13 lines
281 B
Plaintext
13 lines
281 B
Plaintext
|
#!/usr/bin/bash
|
||
|
#
|
||
|
# shell script to turn SLUB cpu_partial logic off
|
||
|
# for improved determinism
|
||
|
#
|
||
|
|
||
|
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
|