OFP: avoid drop_caches in mcreboot
This commit is contained in:
@ -85,6 +85,9 @@ do
|
||||
esac
|
||||
done
|
||||
|
||||
redirect_kmsg=0
|
||||
turbo="turbo"
|
||||
|
||||
# Start ihkmond
|
||||
pid=`pidof ihkmond`
|
||||
if [ "${pid}" != "" ]; then
|
||||
@ -302,6 +305,8 @@ if ! grep -E 'ihk\s' /proc/modules &>/dev/null; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Fujitsu drops caches for us in between jobs so don't do it on OFP
|
||||
if [ "`hostname | grep "c[0-9][0-9][0-9][0-9].ofp"`" == "" ]; then
|
||||
# Increase swappiness so that we have better chance to allocate memory for IHK
|
||||
echo 100 > /proc/sys/vm/swappiness
|
||||
|
||||
@ -312,6 +317,7 @@ sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
echo 1 > /proc/sys/vm/compact_memory 2>/dev/null
|
||||
|
||||
sync
|
||||
fi
|
||||
|
||||
# Load IHK-SMP if not loaded and reserve CPUs and memory
|
||||
if ! grep ihk_smp_@ARCH@ /proc/modules &>/dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user