cdonohoe

dell

Sep 19th, 2016
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. sockets=`lscpu | awk '/^Socket\(s\)\:/ {print $NF}'`
  2. cores=`lscpu | awk '/^Core\(s\) per socket\:/ {print $NF}'`
  3. phys_cores=`echo "${sockets}*${cores}" | bc`
  4. echo Setting the maxcpus to ${phys_cores} in grub
  5. grubby --update-kernel=ALL --args="transparent_hugepage=never numa=off nr_cpus=${phys_cores}"
Add Comment
Please, Sign In to add comment