Skip to content

Instantly share code, notes, and snippets.

@mkorthof
Created July 20, 2018 11:10
Show Gist options
  • Save mkorthof/d21d620413e7b953fb58b3194fd7e840 to your computer and use it in GitHub Desktop.
Save mkorthof/d21d620413e7b953fb58b3194fd7e840 to your computer and use it in GitHub Desktop.
adjust clamscan oom score
#!/bin/sh
# http://www.oracle.com/technetwork/articles/servers-storage-dev/oom-killer-1911807.html
# https://backdrift.org/oom-killer-how-to-create-oom-exclusions-in-linux
echo 10 > /proc/self/oom_score_adj && /usr/bin/clamscan "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment