Skip to content
Snippets Groups Projects
Commit d21ed3f0 authored by Simon Michnowicz (Monash University)'s avatar Simon Michnowicz (Monash University)
Browse files

check that the NUMA configuration is correct on each node.

Simple at this stage as N(Sockets)==2
parent cf935e75
No related branches found
No related tags found
1 merge request!101Numa check
#!/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