summaryrefslogtreecommitdiffstats
path: root/core/modules/system-tweaks/data/opt/openslx/pam/hooks/auth-final-exec.d/99-compact-memory.sh
blob: 6d35a3ccb09e9f424ff4991605a8ab07e6ebf75f (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/ash

# Compact memory now once at start of graphical session,
# So VM will have as much contiguous blocks available
# as possible.
if [ "$PAM_TTY" = ":0" ]; then
	echo 1 > /proc/sys/vm/compact_memory
fi
exit 0