Skip to content

Instantly share code, notes, and snippets.

@teknoraver
Created October 20, 2018 15:29
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 teknoraver/a3372417b18cc1badca8cd84e0310f6f to your computer and use it in GitHub Desktop.
Save teknoraver/a3372417b18cc1badca8cd84e0310f6f to your computer and use it in GitHub Desktop.
put all the NUMA nodes offline but first
#!/bin/sh
for i in /sys/devices/system/cpu/cpu* /sys/bus/memory/devices/memory*; do
! [ -e "$i/node0" ] && [ -f "$i/online" ] && echo -n "${1-0}" >"$i/online"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment