File tree 4 files changed +39
-4
lines changed
4 files changed +39
-4
lines changed Original file line number Diff line number Diff line change @@ -222,10 +222,10 @@ Change the flags used to select local NUMA nodes.
222
222
Flags may be given as numeric values or as a comma-separated list of flag names
223
223
that are passed to \fI hwloc_get_local_numanode_objs() \fR .
224
224
Those names may be substrings of actual flag names as long as a single one matches.
225
- The default is \fB 3 \fR (or \fB smaller,larger \fR )
225
+ The default is \f 0 xb \fR (or \fB smaller,larger,intersects \fR )
226
226
which means NUMA nodes are displayed
227
- if their locality either contains or is contained
228
- in the locality of the given object.
227
+ if their locality either contains, is contained, or intersects
228
+ the locality of the given object.
229
229
230
230
This option enables \fB \-\- local \- memory \fR .
231
231
.TP
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ static struct hwloc_calc_level intersect;
85
85
static int hiernblevels ;
86
86
static struct hwloc_calc_level * hierlevels ;
87
87
static int local_numanodes = 0 ;
88
- static unsigned long local_numanode_flags = HWLOC_LOCAL_NUMANODE_FLAG_SMALLER_LOCALITY | HWLOC_LOCAL_NUMANODE_FLAG_LARGER_LOCALITY ;
88
+ static unsigned long local_numanode_flags = HWLOC_LOCAL_NUMANODE_FLAG_SMALLER_LOCALITY | HWLOC_LOCAL_NUMANODE_FLAG_LARGER_LOCALITY | HWLOC_LOCAL_NUMANODE_FLAG_INTERSECT_LOCALITY ;
89
89
static hwloc_memattr_id_t best_memattr_id = (hwloc_memattr_id_t ) - 1 ;
90
90
static unsigned long best_node_flags = 0 ;
91
91
static int showlargestobjs = 0 ;
Original file line number Diff line number Diff line change @@ -181,6 +181,23 @@ NUMANode:1
181
181
# Best-capacity local node near a PU (node:6@Machine)
182
182
6
183
183
184
+
185
+ # no node is local to one pu of each package
186
+
187
+
188
+ # 1 node is local to one package and one pu of the other
189
+ 0
190
+
191
+ # both nodes are local to one pu of each package, if intersecting
192
+ NUMANode:0,NUMANode:1
193
+
194
+ # both nodes are local to one package and one pu of the other, if intersecting
195
+ 0,1
196
+
197
+ # all local nodes
198
+ 0%1
199
+
200
+
184
201
# CPU kind by index
185
202
0x000000ff
186
203
Original file line number Diff line number Diff line change @@ -235,6 +235,24 @@ set -e
235
235
$calc --if synthetic --input " [numa(memory=1000000)] pack:2 [numa(memory=100000)] die:2 [numa(memory=1000)] pu:2" --best-memattr capacity pu:4
236
236
echo
237
237
238
+ echo
239
+ echo " # no node is local to one pu of each package"
240
+ $calc --if synthetic --input " pack:2 [numa] pu:2" --local-memory-flags small,large pack:all.pu:0
241
+ echo
242
+ echo " # 1 node is local to one package and one pu of the other"
243
+ $calc --if synthetic --input " pack:2 [numa] pu:2" --local-memory-flags small,large pack:0 pack:1.pu:0
244
+ echo
245
+ echo " # both nodes are local to one pu of each package, if intersecting"
246
+ $calc --if synthetic --input " pack:2 [numa] pu:2" --local-memory-flags intersect pack:all.pu:0 --oo
247
+ echo
248
+ echo " # both nodes are local to one package and one pu of the other, if intersecting"
249
+ $calc --if synthetic --input " pack:2 [numa] pu:2" --local-memory-flags intersect pack:0 pack:1.pu:0
250
+ echo
251
+ echo " # all local nodes"
252
+ $calc --if synthetic --input " pack:2 [numa] pu:2" --local-memory-flags _all pu:0 --sep " %"
253
+ echo
254
+
255
+ echo
238
256
echo " # CPU kind by index"
239
257
$calc --if xml --input $linuxdir /fakeheterocpunuma.xml --cpukind 1 all
240
258
echo
You can’t perform that action at this time.
0 commit comments