Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
d21ed3f0
Commit
d21ed3f0
authored
8 years ago
by
Simon Michnowicz (Monash University)
Browse files
Options
Downloads
Patches
Plain Diff
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
!101
Numa check
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/nhc/files/scripts/check_numa.nhc
+21
-0
21 additions, 0 deletions
roles/nhc/files/scripts/check_numa.nhc
with
21 additions
and
0 deletions
roles/nhc/files/scripts/check_numa.nhc
0 → 100644
+
21
−
0
View file @
d21ed3f0
#!/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
}
This diff is collapsed.
Click to expand it.
Andreas Hamacher
@handreas
mentioned in commit
8f794566
·
4 years ago
mentioned in commit
8f794566
mentioned in commit 8f794566b7a30d65a539dabbcfc71f5bfb81f052
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment