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