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