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