Skip to content

Commit

Permalink
Handle cpu-less node for bind_range test
Browse files Browse the repository at this point in the history
Patch handles cpu-less nodes by selecting nodes with cpus to be
used for binding

Ex.
node 8 cpus : 8 9 10 11
node 255 cpus:

Signed-off-by: Harish <harish@linux.vnet.ibm.com>
  • Loading branch information
Harish authored and andikleen committed Jul 17, 2019
1 parent 9eba797 commit 29d53d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/bind_range
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ else
HIGHESTCPU=$(grep 'processor' /proc/cpuinfo | tail -n1 | cut -f2 | sed 's/://' )
fi
HIGHESTCPU=$(echo $HIGHESTCPU | cut -f2 -d' ')
HIGHESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus' | tail -n1 | cut -f2 -d' ')
LOWESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus' | head -n1 | cut -f2 -d' ')
HIGHESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus: [0-9]*' | tail -n1 | cut -f2 -d' ')
LOWESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus: [0-9]*' | head -n1 | cut -f2 -d' ')

get_mask

Expand Down

0 comments on commit 29d53d8

Please sign in to comment.