Skip to content
Snippets Groups Projects
Commit 5b637f02 authored by Chris Hines's avatar Chris Hines
Browse files

Merge branch 'numa-check' into 'master'

Numa check

adds a check_numa test in nhc role
simple test for the number of sockets in computer!=2

See merge request !101

Former-commit-id: 75742c86
parents 70fcd2cd cde1fbfd
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
function check_numa() {
#echo ">>> Checking Numa Configuration >>>>>>>>>>>>>>>>>>>>>>>>>"
#TODO: currently checks if N sockets is 2. Really need to check N(sockets)<N(processors)
#CPU(s): 2
#Socket(s): 2
NSOCKETS=`lscpu | grep Socket | awk '{print $2}'`
#NCPU=`lscpu | grep "^CPU.s.:" | awk '{print $2}'`
#echo "NSOCKETS is $NSOCKETS"
#echo "NCPU is $NCPU"
if [ $NSOCKETS -ne 2 ]
then
die 1 " $FUNCNAME ERROR NUMA on node not configured properly. Number of sockets is $NSOCKETS"
return 1
fi
return 0
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment