Skip to content
Snippets Groups Projects
Commit 8f794566 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


Former-commit-id: d21ed3f0
parent 4ef8e49e
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