Created
October 20, 2018 15:29
-
-
Save teknoraver/a3372417b18cc1badca8cd84e0310f6f to your computer and use it in GitHub Desktop.
put all the NUMA nodes offline but first
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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