Skip to content

Commit 090d23a

Browse files
committed
utils: clarify that --restrict may cause logical index to change
Signed-off-by: Brice Goglin <[email protected]>
1 parent 96d4afc commit 090d23a

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

utils/hwloc/hwloc-bind.1in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,17 @@ you should combine with hwloc-calc:
4545
\fB\-\-restrict\fR <cpuset>
4646
Restrict the topology to the given cpuset.
4747
This removes some PUs and their now-child-less parents.
48+
49+
Beware that restricting the PUs in a topology may change the
50+
logical indexes of many objects, including NUMA nodes.
4851
.TP
4952
\fB\-\-restrict\fR nodeset=<nodeset>
5053
Restrict the topology to the given nodeset
5154
(unless \fB\-\-restrict\-flags\fR specifies something different).
5255
This removes some NUMA nodes and their now-child-less parents.
56+
57+
Beware that restricting the NUMA nodes in a topology may change the
58+
logical indexes of many objects, including PUs.
5359
.TP
5460
\fB\-\-restrict\-flags\fR <flags>
5561
Enforce flags when restricting the topology.

utils/hwloc/hwloc-calc.1in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,17 @@ This removes some PUs and their now-child-less parents.
6666

6767
This is useful when combining invocations to filter some objects
6868
before selecting among them.
69+
70+
Beware that restricting the PUs in a topology may change the
71+
logical indexes of many objects, including NUMA nodes.
6972
.TP
7073
\fB\-\-restrict\fR nodeset=<nodeset>
7174
Restrict the topology to the given nodeset
7275
(unless \fB\-\-restrict\-flags\fR specifies something different).
7376
This removes some NUMA nodes and their now-child-less parents.
77+
78+
Beware that restricting the NUMA nodes in a topology may change the
79+
logical indexes of many objects, including PUs.
7480
.TP
7581
\fB\-\-restrict\-flags\fR <flags>
7682
Enforce flags when restricting the topology.

utils/hwloc/hwloc-distrib.1in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,17 @@ and singlify CPU sets by keeping the last bit (instead of the first bit).
8484
\fB\-\-restrict\fR <cpuset>
8585
Restrict the topology to the given cpuset.
8686
This removes some PUs and their now-child-less parents.
87+
88+
Beware that restricting the PUs in a topology may change the
89+
logical indexes of many objects, including NUMA nodes.
8790
.TP
8891
\fB\-\-restrict\fR nodeset=<nodeset>
8992
Restrict the topology to the given nodeset
9093
(unless \fB\-\-restrict\-flags\fR specifies something different).
9194
This removes some NUMA nodes and their now-child-less parents.
95+
96+
Beware that restricting the NUMA nodes in a topology may change the
97+
logical indexes of many objects, including PUs.
9298
.TP
9399
\fB\-\-restrict\-flags\fR <flags>
94100
Enforce flags when restricting the topology.

utils/hwloc/hwloc-info.1in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,26 @@ Include objects disallowed by administrative limitations.
129129
\fB\-\-restrict\fR <cpuset>
130130
Restrict the topology to the given cpuset.
131131
This removes some PUs and their now-child-less parents.
132+
133+
Beware that restricting the PUs in a topology may change the
134+
logical indexes of many objects, including NUMA nodes.
132135
.TP
133136
\fB\-\-restrict\fR nodeset=<nodeset>
134137
Restrict the topology to the given nodeset
135138
(unless \fB\-\-restrict\-flags\fR specifies something different).
136139
This removes some NUMA nodes and their now-child-less parents.
140+
141+
Beware that restricting the NUMA nodes in a topology may change the
142+
logical indexes of many objects, including PUs.
137143
.TP
138144
\fB\-\-restrict\fR binding
139145
Restrict the topology to the current process binding.
140146
This option requires the use of the actual current machine topology
141147
(or any other topology with \fB\-\-thissystem\fR or with
142148
HWLOC_THISSYSTEM set to 1 in the environment).
149+
150+
Beware that restricting the topology may change the
151+
logical indexes of many objects, including PUs and NUMA nodes.
143152
.TP
144153
\fB\-\-restrict\-flags\fR <flags>
145154
Enforce flags when restricting the topology.

utils/lstopo/lstopo-no-graphics.1in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,17 +262,26 @@ and bold font may be used to display PU boxes of different kinds.
262262
\fB\-\-restrict\fR <cpuset>
263263
Restrict the topology to the given cpuset.
264264
This removes some PUs and their now-child-less parents.
265+
266+
Beware that restricting the PUs in a topology may change the
267+
logical indexes of many objects, including NUMA nodes.
265268
.TP
266269
\fB\-\-restrict\fR nodeset=<nodeset>
267270
Restrict the topology to the given nodeset.
268271
(unless \fB\-\-restrict\-flags\fR specifies something different).
269272
This removes some NUMA nodes and their now-child-less parents.
273+
274+
Beware that restricting the NUMA nodes in a topology may change the
275+
logical indexes of many objects, including PUs.
270276
.TP
271277
\fB\-\-restrict\fR binding
272278
Restrict the topology to the current process binding.
273279
This option requires the use of the actual current machine topology
274280
(or any other topology with \fB\-\-thissystem\fR or with
275281
HWLOC_THISSYSTEM set to 1 in the environment).
282+
283+
Beware that restricting the topology may change the
284+
logical indexes of many objects, including PUs and NUMA nodes.
276285
.TP
277286
\fB\-\-restrict\-flags\fR <flags>
278287
Enforce flags when restricting the topology.

0 commit comments

Comments
 (0)