Skip to content

Instantly share code, notes, and snippets.

@jkullick
Last active July 29, 2016 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkullick/7f7f237683607910e0bf12a7c47eb53b to your computer and use it in GitHub Desktop.
Save jkullick/7f7f237683607910e0bf12a7c47eb53b to your computer and use it in GitHub Desktop.
Activate Hot-Added Memory in Linux
grep offline /sys/devices/system/memory/*/state | \
  cut -d: -f1 | \
  while read -r mem; do 
    echo online > "$mem";
  done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment