|
|
ecd4e2 |
commit 573ac8842b198a6cfe8c64f3946c216b8dafaa4a
|
|
|
ecd4e2 |
Author: Brice Goglin <Brice.Goglin@inria.fr>
|
|
|
ecd4e2 |
Date: Wed Oct 8 07:41:49 2014 +0200
|
|
|
ecd4e2 |
|
|
|
ecd4e2 |
lstopo: swap lstopo.1 and lstopo-no-graphics.1 symlink
|
|
|
ecd4e2 |
|
|
|
ecd4e2 |
Match what we do for binaries. lstopo-no-graphics always
|
|
|
ecd4e2 |
exist as a binary. lstopo may be just a symlink. So now
|
|
|
ecd4e2 |
lstopo.1 is a symlink to lstopo-no-graphics.1
|
|
|
ecd4e2 |
|
|
|
ecd4e2 |
Thanks to Jirka Hladky for reporting the issue.
|
|
|
ecd4e2 |
|
|
|
ecd4e2 |
diff -Nrup hwloc-1.7.orig/utils/lstopo.1in hwloc-1.7/utils/lstopo.1in
|
|
|
ecd4e2 |
--- hwloc-1.7.orig/utils/lstopo.1in 2013-03-26 16:00:18.000000000 -0400
|
|
|
ecd4e2 |
+++ hwloc-1.7/utils/lstopo.1in 1969-12-31 19:00:00.000000000 -0500
|
|
|
ecd4e2 |
@@ -1,433 +0,0 @@
|
|
|
ecd4e2 |
-.\" -*- nroff -*-
|
|
|
ecd4e2 |
-.\" Copyright © 2009-2013 Inria. All rights reserved.
|
|
|
ecd4e2 |
-.\" Copyright © 2009-2010 Université of Bordeaux
|
|
|
ecd4e2 |
-.\" Copyright © 2009-2010 Cisco Systems, Inc. All rights reserved.
|
|
|
ecd4e2 |
-.\" See COPYING in top-level directory.
|
|
|
ecd4e2 |
-.TH LSTOPO "1" "#HWLOC_DATE#" "#PACKAGE_VERSION#" "#PACKAGE_NAME#"
|
|
|
ecd4e2 |
-.SH NAME
|
|
|
ecd4e2 |
-lstopo, lstopo-no-graphics \- Show the topology of the system
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.\" Synopsis Section
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.SH SYNOPSIS
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.B lstopo
|
|
|
ecd4e2 |
-[ \fIoptions \fR]... [ \fIfilename \fR]
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-.B lstopo-no-graphics
|
|
|
ecd4e2 |
-[ \fIoptions \fR]... [ \fIfilename \fR]
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-Note that hwloc(7) provides a detailed explanation of the hwloc system; it
|
|
|
ecd4e2 |
-should be read before reading this man page
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.\" Options Section
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.SH OPTIONS
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-of\fR <format>, \fB\-\-output\-format\fR <format>
|
|
|
ecd4e2 |
-Enforce the output in the given format.
|
|
|
ecd4e2 |
-See the OUTPUT FORMATS section below.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-i\fR <file>, \fB\-\-input\fR <file>
|
|
|
ecd4e2 |
-Read topology from XML file <file> (instead of discovering the
|
|
|
ecd4e2 |
-topology on the local machine). If <file> is "\-", the standard input
|
|
|
ecd4e2 |
-is used. XML support must have been compiled in to hwloc for this
|
|
|
ecd4e2 |
-option to be usable.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-i\fR <directory>, \fB\-\-input\fR <directory>
|
|
|
ecd4e2 |
-Read topology from the chroot specified by <directory> (instead of
|
|
|
ecd4e2 |
-discovering the topology on the local machine). This option is
|
|
|
ecd4e2 |
-generally only available on Linux. The chroot was usually created
|
|
|
ecd4e2 |
-by gathering another machine topology with hwloc-gather-topology.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-i\fR <specification>, \fB\-\-input\fR <specification>
|
|
|
ecd4e2 |
-Simulate a fake hierarchy (instead of discovering the topology on the
|
|
|
ecd4e2 |
-local machine). If <specification> is "node:2 pu:3", the topology will
|
|
|
ecd4e2 |
-contain two NUMA nodes with 3 processing units in each of them.
|
|
|
ecd4e2 |
-The <specification> string must end with a number of PUs.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-if\fR <format>, \fB\-\-input\-format\fR <format>
|
|
|
ecd4e2 |
-Enforce the input in the given format, among \fBxml\fR, \fBfsroot\fR
|
|
|
ecd4e2 |
-and \fBsynthetic\fR.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-v\fR \fB\-\-verbose\fR
|
|
|
ecd4e2 |
-Include additional detail.
|
|
|
ecd4e2 |
-The hwloc-info tool may be used to display even more information
|
|
|
ecd4e2 |
-about specific objects.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-s\fR \fB\-\-silent\fR
|
|
|
ecd4e2 |
-Reduce the amount of details to show.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-l\fR \fB\-\-logical\fR
|
|
|
ecd4e2 |
-Display hwloc logical indexes instead of physical/OS indexes (default for console output).
|
|
|
ecd4e2 |
-These indexes are prefixed with "L#".
|
|
|
ecd4e2 |
-The physical indexes of some objects (PU and Node by default, all
|
|
|
ecd4e2 |
-objects if verbose) will appear as object attribute "P#...".
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-p\fR \fB\-\-physical\fR
|
|
|
ecd4e2 |
-Display OS/physical indexes instead of hwloc logical indexes (default for graphical output).
|
|
|
ecd4e2 |
-These indexes are prefixed with "P#" instead of "L#" in the console output.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-c\fR \fB\-\-cpuset\fR
|
|
|
ecd4e2 |
-Display the cpuset of each object.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-C\fR \fB\-\-cpuset\-only\fR
|
|
|
ecd4e2 |
-Only display the cpuset of each object; do not display anything else
|
|
|
ecd4e2 |
-about the object.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-taskset\fR
|
|
|
ecd4e2 |
-Show CPU set strings in the format recognized by the taskset command-line
|
|
|
ecd4e2 |
-program instead of hwloc-specific CPU set string format.
|
|
|
ecd4e2 |
-This option should be combined with \fB\-\-cpuset\fR or \fB\-\-cpuset\-only\fR,
|
|
|
ecd4e2 |
-otherwise it will imply \fB\-\-cpuset\fR.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-only\fR <type>
|
|
|
ecd4e2 |
-Only show objects of the given type in the textual output.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-ignore\fR <type>
|
|
|
ecd4e2 |
-Ignore all objects of type <type> in the topology.
|
|
|
ecd4e2 |
-hwloc supports ignoring any type except PUs and I/O devices.
|
|
|
ecd4e2 |
-However lstopo still offers PU ignoring by hiding PU objects
|
|
|
ecd4e2 |
-in the graphical and textual outputs.
|
|
|
ecd4e2 |
-Note that PU may not be ignored in the XML output.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-no\-caches\fR
|
|
|
ecd4e2 |
-Do not show caches.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-no\-useless\-caches\fR
|
|
|
ecd4e2 |
-Do not show caches which do not have a hierarchical impact.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-no\-icaches\fR
|
|
|
ecd4e2 |
-Do not show Instruction caches, only Data and Unified caches are displayed.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-whole\-system\fR
|
|
|
ecd4e2 |
-Do not consider administration limitations.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-merge\fR
|
|
|
ecd4e2 |
-Do not show levels that do not have a hierarchical impact.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-restrict\fR <cpuset>
|
|
|
ecd4e2 |
-Restrict the topology to the given cpuset.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-restrict\fR binding
|
|
|
ecd4e2 |
-Restrict the topology to the current process binding.
|
|
|
ecd4e2 |
-This option requires the use of the actual current machine topology
|
|
|
ecd4e2 |
-(or any other topology with \fB\-\-thissystem\fR or with
|
|
|
ecd4e2 |
-HWLOC_THISSYSTEM set to 1 in the environment).
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-no\-io\fB
|
|
|
ecd4e2 |
-Do not show any I/O device or bridge.
|
|
|
ecd4e2 |
-By default, common devices (GPUs, NICs, block devices, ...) and
|
|
|
ecd4e2 |
-interesting bridges are shown.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-no\-bridges\fB
|
|
|
ecd4e2 |
-Do not show any I/O bridge except hostbridges.
|
|
|
ecd4e2 |
-By default, common devices (GPUs, NICs, block devices, ...) and
|
|
|
ecd4e2 |
-interesting bridges are shown.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-whole\-io\fB
|
|
|
ecd4e2 |
-Show all I/O devices and bridges.
|
|
|
ecd4e2 |
-By default, only common devices (GPUs, NICs, block devices, ...) and
|
|
|
ecd4e2 |
-interesting bridges are shown.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-thissystem\fR
|
|
|
ecd4e2 |
-Assume that the selected backend provides the topology for the
|
|
|
ecd4e2 |
-system on which we are running.
|
|
|
ecd4e2 |
-This is useful when using \fB\-\-restrict\fR binding and loading
|
|
|
ecd4e2 |
-a custom topology such as an XML file.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-pid\fR <pid>
|
|
|
ecd4e2 |
-Detect topology as seen by process <pid>, i.e. as if process <pid> did the
|
|
|
ecd4e2 |
-discovery itself.
|
|
|
ecd4e2 |
-Note that this can for instance change the set of allowed processors.
|
|
|
ecd4e2 |
-Also show this process current CPU binding by marking the corresponding
|
|
|
ecd4e2 |
-PUs (in Green in the graphical output, see the COLORS section below,
|
|
|
ecd4e2 |
-or by appending \fI(binding)\fR to the verbose text output).
|
|
|
ecd4e2 |
-If 0 is given as pid, the current binding for the lstopo process will be shown.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-ps\fR \fB\-\-top\fR
|
|
|
ecd4e2 |
-Show existing processes as misc objects in the output. To avoid uselessly
|
|
|
ecd4e2 |
-cluttering the output, only processes that are restricted to some part of the
|
|
|
ecd4e2 |
-machine are shown. On Linux, kernel threads are not shown.
|
|
|
ecd4e2 |
-If many processes appear, the output may become hard to read anyway,
|
|
|
ecd4e2 |
-making the hwloc-ps program more practical.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-fontsize\fR <size>
|
|
|
ecd4e2 |
-Set size of text font.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-gridsize\fR <size>
|
|
|
ecd4e2 |
-Set size of margin between elements.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-horiz\fR, \fB\-\-horiz\fR=<type1,...>
|
|
|
ecd4e2 |
-Horizontal graphical layout instead of nearly 4/3 ratio.
|
|
|
ecd4e2 |
-If a comma-separated list of types is given, the layout only
|
|
|
ecd4e2 |
-applies to the corresponding containers.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-vert\fR, \fB\-\-vert\fR=<type1,...>
|
|
|
ecd4e2 |
-Vertical graphical layout instead of nearly 4/3 ratio.
|
|
|
ecd4e2 |
-If a comma-separated list of types is given, the layout only
|
|
|
ecd4e2 |
-applies to the corresponding containers.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-no\-legend\fR
|
|
|
ecd4e2 |
-Remove the text legend at the bottom.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-\fB\-\-version\fR
|
|
|
ecd4e2 |
-Report version and exit.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.\" Description Section
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.SH DESCRIPTION
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-lstopo and lstopo-no-graphics are capable of displaying a topological map of
|
|
|
ecd4e2 |
-the system in a variety of different output formats. The only difference
|
|
|
ecd4e2 |
-between lstopo and lstopo-no-graphics is that graphical outputs are only
|
|
|
ecd4e2 |
-supported by lstopo, to reduce dependencies on external libraries.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-If no filename is specified and the DISPLAY environment variable is set,
|
|
|
ecd4e2 |
-lstopo displays the map in a graphical window. If no filename is
|
|
|
ecd4e2 |
-specified and the DISPLAY environment variable is
|
|
|
ecd4e2 |
-.I not
|
|
|
ecd4e2 |
-set, a text summary is displayed.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-The filename specified directly implies the output format that will be
|
|
|
ecd4e2 |
-used; see the OUTPUT FORMATS section, below. Output formats that
|
|
|
ecd4e2 |
-support color will indicate specific characteristics about individual
|
|
|
ecd4e2 |
-CPUs by their color; see the COLORS section, below.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.\" Output Formats Section
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.SH OUTPUT FORMATS
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-The filename on the command line usually determines the format of the output.
|
|
|
ecd4e2 |
-There are a few filenames that indicate specific output formats and
|
|
|
ecd4e2 |
-devices (e.g., a filename of "-" will output a text summary to
|
|
|
ecd4e2 |
-stdout), but most filenames indicate the desired output format by
|
|
|
ecd4e2 |
-their suffix (e.g., "topo.png" will output a PNG-format file).
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-The format of the output may also be changed with "\-\-of".
|
|
|
ecd4e2 |
-For instance, "\-\-of pdf" will generate a PDF-format file on the standard
|
|
|
ecd4e2 |
-output, while "\-\-of fig toto" will output a Xfig-format file named "toto".
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-The list of currently supported formats is given below. Any of them may
|
|
|
ecd4e2 |
-be used with "\-\-of" or as a filename suffix.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B default
|
|
|
ecd4e2 |
-Send the output to a window or to the console depending on the environment.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B console
|
|
|
ecd4e2 |
-Send a text summary to stdout.
|
|
|
ecd4e2 |
-Binding, unallowed or offline processors are only annotated in this mode
|
|
|
ecd4e2 |
-if verbose; see the COLORS section, below.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B txt
|
|
|
ecd4e2 |
-Output an ASCII art representation of the map.
|
|
|
ecd4e2 |
-If outputting to stdout and if colors are supported on the terminal,
|
|
|
ecd4e2 |
-the output will be colorized.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B fig
|
|
|
ecd4e2 |
-Output a representation of the map that can be loaded in Xfig.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B pdf
|
|
|
ecd4e2 |
-If lstopo was compiled with the proper
|
|
|
ecd4e2 |
-support, lstopo outputs a PDF representation of the map.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B ps
|
|
|
ecd4e2 |
-If lstopo was compiled with the proper
|
|
|
ecd4e2 |
-support, lstopo outputs a Postscript representation of the map.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B png
|
|
|
ecd4e2 |
-If lstopo was compiled with the proper
|
|
|
ecd4e2 |
-support, lstopo outputs a PNG representation of the map.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B svg
|
|
|
ecd4e2 |
-If lstopo was compiled with the proper
|
|
|
ecd4e2 |
-support, lstopo outputs an SVG representation of the map.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B synthetic
|
|
|
ecd4e2 |
-If the topology is symmetric
|
|
|
ecd4e2 |
-(which requires that the root object has its symmetric_subtree field set),
|
|
|
ecd4e2 |
-lstopo outputs a synthetic description string.
|
|
|
ecd4e2 |
-This output may be reused as an input synthetic topology
|
|
|
ecd4e2 |
-description later.
|
|
|
ecd4e2 |
-Note that I/O devices often cause topology asymmetry.
|
|
|
ecd4e2 |
-Adding \-\-no\-io may then be useful when the synthetic export fails.
|
|
|
ecd4e2 |
-See also the Synthetic topologies section in the documentation.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B xml
|
|
|
ecd4e2 |
-If lstopo was compiled with the proper
|
|
|
ecd4e2 |
-support, lstopo outputs an XML representation of the map.
|
|
|
ecd4e2 |
-It may be reused later, even on another machine, with lstopo \-\-input,
|
|
|
ecd4e2 |
-the HWLOC_XMLFILE environment variable, or the hwloc_topology_set_xml()
|
|
|
ecd4e2 |
-function.
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-The following special names may be used:
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B \-
|
|
|
ecd4e2 |
-Send a text summary to stdout.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B /dev/stdout
|
|
|
ecd4e2 |
-Send a text summary to stdout. It is effectively the same as
|
|
|
ecd4e2 |
-specifying "\-".
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-.B \-.<format>
|
|
|
ecd4e2 |
-If the entire filename is "\-.<format>", lstopo behaves as if
|
|
|
ecd4e2 |
-"\-\-of <format> -" was given, which means a file of the given format
|
|
|
ecd4e2 |
-is sent to the standard output.
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-See the output of "lstopo \-\-help" for a specific list of what
|
|
|
ecd4e2 |
-graphical output formats are supported in your hwloc installation.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.\" Colors Section
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.SH COLORS
|
|
|
ecd4e2 |
-Individual CPUs are colored in the semi-graphical and graphical output
|
|
|
ecd4e2 |
-formats to indicate different characteristics:
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-Green
|
|
|
ecd4e2 |
-The topology is reported as seen by a specific process (see \fB\-\-pid\fR),
|
|
|
ecd4e2 |
-and the given CPU is in this process CPU binding mask.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-White
|
|
|
ecd4e2 |
-The CPU is in the allowed set (see below).
|
|
|
ecd4e2 |
-If the topology is reported as seen by a specific process (see \fB\-\-pid\fR),
|
|
|
ecd4e2 |
-the given CPU is also not in this process CPU binding mask.
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-Red
|
|
|
ecd4e2 |
-The CPU is not in the allowed set (see below).
|
|
|
ecd4e2 |
-.TP
|
|
|
ecd4e2 |
-Black
|
|
|
ecd4e2 |
-The CPU is offline (not all OS's support displaying offline CPUs).
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-The "allowed set" is the set of CPUs to which the current process is
|
|
|
ecd4e2 |
-allowed to bind. The allowed set is usually either inherited from the
|
|
|
ecd4e2 |
-parent process or set by administrative qpolicies on the system. Linux
|
|
|
ecd4e2 |
-cpusets are one example of limiting the allowed set for a process and
|
|
|
ecd4e2 |
-its children to be less than the full set of CPUs on the system.
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-Different processes may therefore have different CPUs in the allowed
|
|
|
ecd4e2 |
-set. Hence, invoking lstopo in different contexts and/or as different
|
|
|
ecd4e2 |
-users may display different colors for the same individual CPUs (e.g.,
|
|
|
ecd4e2 |
-running lstopo in one context may show a specific CPU as red, but
|
|
|
ecd4e2 |
-running lstopo in a different context may show the same CPU as white).
|
|
|
ecd4e2 |
-.PP
|
|
|
ecd4e2 |
-Some lstopo output modes, e.g. the console mode (default non-graphical output),
|
|
|
ecd4e2 |
-do not support colors at all.
|
|
|
ecd4e2 |
-The console mode displays the above characteristics by appending text
|
|
|
ecd4e2 |
-to each PU line if verbose messages are enabled.
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.\" Layout Section
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.SH LAYOUT
|
|
|
ecd4e2 |
-In its graphical output, lstopo uses simple rectangular heuristics
|
|
|
ecd4e2 |
-to try to achieve a 4/3 ratio between width and height. However,
|
|
|
ecd4e2 |
-in the particular case of NUMA nodes, the layout is always a flat
|
|
|
ecd4e2 |
-rectangle, to avoid letting the user believe any particular NUMA
|
|
|
ecd4e2 |
-topology (lstopo is not able to render that yet).
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.\" Examples Section
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.SH EXAMPLES
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-To display the machine topology in textual mode:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo-no-graphics
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To display the machine topology in pseudo-graphical mode:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo-no-graphics -.txt
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To display in graphical mode (assuming that the DISPLAY environment
|
|
|
ecd4e2 |
-variable is set to a relevant value):
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To export the topology to a PNG file:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo file.png
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To export an XML file on a machine and later display the corresponding
|
|
|
ecd4e2 |
-graphical output on another machine:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- machine1$ lstopo file.xml
|
|
|
ecd4e2 |
- <transfer file.xml from machine1 to machine2>
|
|
|
ecd4e2 |
- machine2$ lstopo --input file.xml
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To save the current machine topology to XML and later reload it faster
|
|
|
ecd4e2 |
-while still considering it as the current machine:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- $ lstopo file.xml
|
|
|
ecd4e2 |
- <...>
|
|
|
ecd4e2 |
- $ lstopo --input file.xml --thissystem
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To restrict an XML topology to only physical processors 0, 1, 4 and 5:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo --input file.xml --restrict 0x33 newfile.xml
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To restrict an XML topology to only numa node whose logical index is 1:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo --input file.xml --restrict $(hwloc-calc --input file.xml node:1) newfile.xml
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To display a summary of the topology:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo -s
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To get more details about the topology:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo -v
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To only show cores:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo --only core
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To show cpusets:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo --cpuset
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To only show the cpusets of sockets:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo --only socket --cpuset-only
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-Simulate a fake hierarchy; this example shows with 2 NUMA nodes of 2
|
|
|
ecd4e2 |
-processor units:
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo --input "n:2 2"
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
-To count the number of logical processors in the system
|
|
|
ecd4e2 |
-
|
|
|
ecd4e2 |
- lstopo --only pu | wc -l
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.\" See also section
|
|
|
ecd4e2 |
-.\" **************************
|
|
|
ecd4e2 |
-.SH SEE ALSO
|
|
|
ecd4e2 |
-.
|
|
|
ecd4e2 |
-.ft R
|
|
|
ecd4e2 |
-hwloc(7), hwloc-info(1), hwloc-bind(1), hwloc-ps(1), hwloc-gather-topology(1)
|
|
|
ecd4e2 |
-.sp
|
|
|
ecd4e2 |
diff -Nrup hwloc-1.7.orig/utils/lstopo-no-graphics.1in hwloc-1.7/utils/lstopo-no-graphics.1in
|
|
|
ecd4e2 |
--- hwloc-1.7.orig/utils/lstopo-no-graphics.1in 1969-12-31 19:00:00.000000000 -0500
|
|
|
ecd4e2 |
+++ hwloc-1.7/utils/lstopo-no-graphics.1in 2013-03-26 16:00:18.000000000 -0400
|
|
|
ecd4e2 |
@@ -0,0 +1,433 @@
|
|
|
ecd4e2 |
+.\" -*- nroff -*-
|
|
|
ecd4e2 |
+.\" Copyright © 2009-2013 Inria. All rights reserved.
|
|
|
ecd4e2 |
+.\" Copyright © 2009-2010 Université of Bordeaux
|
|
|
ecd4e2 |
+.\" Copyright © 2009-2010 Cisco Systems, Inc. All rights reserved.
|
|
|
ecd4e2 |
+.\" See COPYING in top-level directory.
|
|
|
ecd4e2 |
+.TH LSTOPO "1" "#HWLOC_DATE#" "#PACKAGE_VERSION#" "#PACKAGE_NAME#"
|
|
|
ecd4e2 |
+.SH NAME
|
|
|
ecd4e2 |
+lstopo, lstopo-no-graphics \- Show the topology of the system
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.\" Synopsis Section
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.SH SYNOPSIS
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.B lstopo
|
|
|
ecd4e2 |
+[ \fIoptions \fR]... [ \fIfilename \fR]
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+.B lstopo-no-graphics
|
|
|
ecd4e2 |
+[ \fIoptions \fR]... [ \fIfilename \fR]
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+Note that hwloc(7) provides a detailed explanation of the hwloc system; it
|
|
|
ecd4e2 |
+should be read before reading this man page
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.\" Options Section
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.SH OPTIONS
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-of\fR <format>, \fB\-\-output\-format\fR <format>
|
|
|
ecd4e2 |
+Enforce the output in the given format.
|
|
|
ecd4e2 |
+See the OUTPUT FORMATS section below.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-i\fR <file>, \fB\-\-input\fR <file>
|
|
|
ecd4e2 |
+Read topology from XML file <file> (instead of discovering the
|
|
|
ecd4e2 |
+topology on the local machine). If <file> is "\-", the standard input
|
|
|
ecd4e2 |
+is used. XML support must have been compiled in to hwloc for this
|
|
|
ecd4e2 |
+option to be usable.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-i\fR <directory>, \fB\-\-input\fR <directory>
|
|
|
ecd4e2 |
+Read topology from the chroot specified by <directory> (instead of
|
|
|
ecd4e2 |
+discovering the topology on the local machine). This option is
|
|
|
ecd4e2 |
+generally only available on Linux. The chroot was usually created
|
|
|
ecd4e2 |
+by gathering another machine topology with hwloc-gather-topology.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-i\fR <specification>, \fB\-\-input\fR <specification>
|
|
|
ecd4e2 |
+Simulate a fake hierarchy (instead of discovering the topology on the
|
|
|
ecd4e2 |
+local machine). If <specification> is "node:2 pu:3", the topology will
|
|
|
ecd4e2 |
+contain two NUMA nodes with 3 processing units in each of them.
|
|
|
ecd4e2 |
+The <specification> string must end with a number of PUs.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-if\fR <format>, \fB\-\-input\-format\fR <format>
|
|
|
ecd4e2 |
+Enforce the input in the given format, among \fBxml\fR, \fBfsroot\fR
|
|
|
ecd4e2 |
+and \fBsynthetic\fR.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-v\fR \fB\-\-verbose\fR
|
|
|
ecd4e2 |
+Include additional detail.
|
|
|
ecd4e2 |
+The hwloc-info tool may be used to display even more information
|
|
|
ecd4e2 |
+about specific objects.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-s\fR \fB\-\-silent\fR
|
|
|
ecd4e2 |
+Reduce the amount of details to show.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-l\fR \fB\-\-logical\fR
|
|
|
ecd4e2 |
+Display hwloc logical indexes instead of physical/OS indexes (default for console output).
|
|
|
ecd4e2 |
+These indexes are prefixed with "L#".
|
|
|
ecd4e2 |
+The physical indexes of some objects (PU and Node by default, all
|
|
|
ecd4e2 |
+objects if verbose) will appear as object attribute "P#...".
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-p\fR \fB\-\-physical\fR
|
|
|
ecd4e2 |
+Display OS/physical indexes instead of hwloc logical indexes (default for graphical output).
|
|
|
ecd4e2 |
+These indexes are prefixed with "P#" instead of "L#" in the console output.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-c\fR \fB\-\-cpuset\fR
|
|
|
ecd4e2 |
+Display the cpuset of each object.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-C\fR \fB\-\-cpuset\-only\fR
|
|
|
ecd4e2 |
+Only display the cpuset of each object; do not display anything else
|
|
|
ecd4e2 |
+about the object.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-taskset\fR
|
|
|
ecd4e2 |
+Show CPU set strings in the format recognized by the taskset command-line
|
|
|
ecd4e2 |
+program instead of hwloc-specific CPU set string format.
|
|
|
ecd4e2 |
+This option should be combined with \fB\-\-cpuset\fR or \fB\-\-cpuset\-only\fR,
|
|
|
ecd4e2 |
+otherwise it will imply \fB\-\-cpuset\fR.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-only\fR <type>
|
|
|
ecd4e2 |
+Only show objects of the given type in the textual output.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-ignore\fR <type>
|
|
|
ecd4e2 |
+Ignore all objects of type <type> in the topology.
|
|
|
ecd4e2 |
+hwloc supports ignoring any type except PUs and I/O devices.
|
|
|
ecd4e2 |
+However lstopo still offers PU ignoring by hiding PU objects
|
|
|
ecd4e2 |
+in the graphical and textual outputs.
|
|
|
ecd4e2 |
+Note that PU may not be ignored in the XML output.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-no\-caches\fR
|
|
|
ecd4e2 |
+Do not show caches.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-no\-useless\-caches\fR
|
|
|
ecd4e2 |
+Do not show caches which do not have a hierarchical impact.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-no\-icaches\fR
|
|
|
ecd4e2 |
+Do not show Instruction caches, only Data and Unified caches are displayed.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-whole\-system\fR
|
|
|
ecd4e2 |
+Do not consider administration limitations.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-merge\fR
|
|
|
ecd4e2 |
+Do not show levels that do not have a hierarchical impact.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-restrict\fR <cpuset>
|
|
|
ecd4e2 |
+Restrict the topology to the given cpuset.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-restrict\fR binding
|
|
|
ecd4e2 |
+Restrict the topology to the current process binding.
|
|
|
ecd4e2 |
+This option requires the use of the actual current machine topology
|
|
|
ecd4e2 |
+(or any other topology with \fB\-\-thissystem\fR or with
|
|
|
ecd4e2 |
+HWLOC_THISSYSTEM set to 1 in the environment).
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-no\-io\fB
|
|
|
ecd4e2 |
+Do not show any I/O device or bridge.
|
|
|
ecd4e2 |
+By default, common devices (GPUs, NICs, block devices, ...) and
|
|
|
ecd4e2 |
+interesting bridges are shown.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-no\-bridges\fB
|
|
|
ecd4e2 |
+Do not show any I/O bridge except hostbridges.
|
|
|
ecd4e2 |
+By default, common devices (GPUs, NICs, block devices, ...) and
|
|
|
ecd4e2 |
+interesting bridges are shown.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-whole\-io\fB
|
|
|
ecd4e2 |
+Show all I/O devices and bridges.
|
|
|
ecd4e2 |
+By default, only common devices (GPUs, NICs, block devices, ...) and
|
|
|
ecd4e2 |
+interesting bridges are shown.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-thissystem\fR
|
|
|
ecd4e2 |
+Assume that the selected backend provides the topology for the
|
|
|
ecd4e2 |
+system on which we are running.
|
|
|
ecd4e2 |
+This is useful when using \fB\-\-restrict\fR binding and loading
|
|
|
ecd4e2 |
+a custom topology such as an XML file.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-pid\fR <pid>
|
|
|
ecd4e2 |
+Detect topology as seen by process <pid>, i.e. as if process <pid> did the
|
|
|
ecd4e2 |
+discovery itself.
|
|
|
ecd4e2 |
+Note that this can for instance change the set of allowed processors.
|
|
|
ecd4e2 |
+Also show this process current CPU binding by marking the corresponding
|
|
|
ecd4e2 |
+PUs (in Green in the graphical output, see the COLORS section below,
|
|
|
ecd4e2 |
+or by appending \fI(binding)\fR to the verbose text output).
|
|
|
ecd4e2 |
+If 0 is given as pid, the current binding for the lstopo process will be shown.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-ps\fR \fB\-\-top\fR
|
|
|
ecd4e2 |
+Show existing processes as misc objects in the output. To avoid uselessly
|
|
|
ecd4e2 |
+cluttering the output, only processes that are restricted to some part of the
|
|
|
ecd4e2 |
+machine are shown. On Linux, kernel threads are not shown.
|
|
|
ecd4e2 |
+If many processes appear, the output may become hard to read anyway,
|
|
|
ecd4e2 |
+making the hwloc-ps program more practical.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-fontsize\fR <size>
|
|
|
ecd4e2 |
+Set size of text font.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-gridsize\fR <size>
|
|
|
ecd4e2 |
+Set size of margin between elements.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-horiz\fR, \fB\-\-horiz\fR=<type1,...>
|
|
|
ecd4e2 |
+Horizontal graphical layout instead of nearly 4/3 ratio.
|
|
|
ecd4e2 |
+If a comma-separated list of types is given, the layout only
|
|
|
ecd4e2 |
+applies to the corresponding containers.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-vert\fR, \fB\-\-vert\fR=<type1,...>
|
|
|
ecd4e2 |
+Vertical graphical layout instead of nearly 4/3 ratio.
|
|
|
ecd4e2 |
+If a comma-separated list of types is given, the layout only
|
|
|
ecd4e2 |
+applies to the corresponding containers.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-no\-legend\fR
|
|
|
ecd4e2 |
+Remove the text legend at the bottom.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+\fB\-\-version\fR
|
|
|
ecd4e2 |
+Report version and exit.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.\" Description Section
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.SH DESCRIPTION
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+lstopo and lstopo-no-graphics are capable of displaying a topological map of
|
|
|
ecd4e2 |
+the system in a variety of different output formats. The only difference
|
|
|
ecd4e2 |
+between lstopo and lstopo-no-graphics is that graphical outputs are only
|
|
|
ecd4e2 |
+supported by lstopo, to reduce dependencies on external libraries.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+If no filename is specified and the DISPLAY environment variable is set,
|
|
|
ecd4e2 |
+lstopo displays the map in a graphical window. If no filename is
|
|
|
ecd4e2 |
+specified and the DISPLAY environment variable is
|
|
|
ecd4e2 |
+.I not
|
|
|
ecd4e2 |
+set, a text summary is displayed.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+The filename specified directly implies the output format that will be
|
|
|
ecd4e2 |
+used; see the OUTPUT FORMATS section, below. Output formats that
|
|
|
ecd4e2 |
+support color will indicate specific characteristics about individual
|
|
|
ecd4e2 |
+CPUs by their color; see the COLORS section, below.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.\" Output Formats Section
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.SH OUTPUT FORMATS
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+The filename on the command line usually determines the format of the output.
|
|
|
ecd4e2 |
+There are a few filenames that indicate specific output formats and
|
|
|
ecd4e2 |
+devices (e.g., a filename of "-" will output a text summary to
|
|
|
ecd4e2 |
+stdout), but most filenames indicate the desired output format by
|
|
|
ecd4e2 |
+their suffix (e.g., "topo.png" will output a PNG-format file).
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+The format of the output may also be changed with "\-\-of".
|
|
|
ecd4e2 |
+For instance, "\-\-of pdf" will generate a PDF-format file on the standard
|
|
|
ecd4e2 |
+output, while "\-\-of fig toto" will output a Xfig-format file named "toto".
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+The list of currently supported formats is given below. Any of them may
|
|
|
ecd4e2 |
+be used with "\-\-of" or as a filename suffix.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B default
|
|
|
ecd4e2 |
+Send the output to a window or to the console depending on the environment.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B console
|
|
|
ecd4e2 |
+Send a text summary to stdout.
|
|
|
ecd4e2 |
+Binding, unallowed or offline processors are only annotated in this mode
|
|
|
ecd4e2 |
+if verbose; see the COLORS section, below.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B txt
|
|
|
ecd4e2 |
+Output an ASCII art representation of the map.
|
|
|
ecd4e2 |
+If outputting to stdout and if colors are supported on the terminal,
|
|
|
ecd4e2 |
+the output will be colorized.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B fig
|
|
|
ecd4e2 |
+Output a representation of the map that can be loaded in Xfig.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B pdf
|
|
|
ecd4e2 |
+If lstopo was compiled with the proper
|
|
|
ecd4e2 |
+support, lstopo outputs a PDF representation of the map.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B ps
|
|
|
ecd4e2 |
+If lstopo was compiled with the proper
|
|
|
ecd4e2 |
+support, lstopo outputs a Postscript representation of the map.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B png
|
|
|
ecd4e2 |
+If lstopo was compiled with the proper
|
|
|
ecd4e2 |
+support, lstopo outputs a PNG representation of the map.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B svg
|
|
|
ecd4e2 |
+If lstopo was compiled with the proper
|
|
|
ecd4e2 |
+support, lstopo outputs an SVG representation of the map.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B synthetic
|
|
|
ecd4e2 |
+If the topology is symmetric
|
|
|
ecd4e2 |
+(which requires that the root object has its symmetric_subtree field set),
|
|
|
ecd4e2 |
+lstopo outputs a synthetic description string.
|
|
|
ecd4e2 |
+This output may be reused as an input synthetic topology
|
|
|
ecd4e2 |
+description later.
|
|
|
ecd4e2 |
+Note that I/O devices often cause topology asymmetry.
|
|
|
ecd4e2 |
+Adding \-\-no\-io may then be useful when the synthetic export fails.
|
|
|
ecd4e2 |
+See also the Synthetic topologies section in the documentation.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B xml
|
|
|
ecd4e2 |
+If lstopo was compiled with the proper
|
|
|
ecd4e2 |
+support, lstopo outputs an XML representation of the map.
|
|
|
ecd4e2 |
+It may be reused later, even on another machine, with lstopo \-\-input,
|
|
|
ecd4e2 |
+the HWLOC_XMLFILE environment variable, or the hwloc_topology_set_xml()
|
|
|
ecd4e2 |
+function.
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+The following special names may be used:
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B \-
|
|
|
ecd4e2 |
+Send a text summary to stdout.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B /dev/stdout
|
|
|
ecd4e2 |
+Send a text summary to stdout. It is effectively the same as
|
|
|
ecd4e2 |
+specifying "\-".
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+.B \-.<format>
|
|
|
ecd4e2 |
+If the entire filename is "\-.<format>", lstopo behaves as if
|
|
|
ecd4e2 |
+"\-\-of <format> -" was given, which means a file of the given format
|
|
|
ecd4e2 |
+is sent to the standard output.
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+See the output of "lstopo \-\-help" for a specific list of what
|
|
|
ecd4e2 |
+graphical output formats are supported in your hwloc installation.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.\" Colors Section
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.SH COLORS
|
|
|
ecd4e2 |
+Individual CPUs are colored in the semi-graphical and graphical output
|
|
|
ecd4e2 |
+formats to indicate different characteristics:
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+Green
|
|
|
ecd4e2 |
+The topology is reported as seen by a specific process (see \fB\-\-pid\fR),
|
|
|
ecd4e2 |
+and the given CPU is in this process CPU binding mask.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+White
|
|
|
ecd4e2 |
+The CPU is in the allowed set (see below).
|
|
|
ecd4e2 |
+If the topology is reported as seen by a specific process (see \fB\-\-pid\fR),
|
|
|
ecd4e2 |
+the given CPU is also not in this process CPU binding mask.
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+Red
|
|
|
ecd4e2 |
+The CPU is not in the allowed set (see below).
|
|
|
ecd4e2 |
+.TP
|
|
|
ecd4e2 |
+Black
|
|
|
ecd4e2 |
+The CPU is offline (not all OS's support displaying offline CPUs).
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+The "allowed set" is the set of CPUs to which the current process is
|
|
|
ecd4e2 |
+allowed to bind. The allowed set is usually either inherited from the
|
|
|
ecd4e2 |
+parent process or set by administrative qpolicies on the system. Linux
|
|
|
ecd4e2 |
+cpusets are one example of limiting the allowed set for a process and
|
|
|
ecd4e2 |
+its children to be less than the full set of CPUs on the system.
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+Different processes may therefore have different CPUs in the allowed
|
|
|
ecd4e2 |
+set. Hence, invoking lstopo in different contexts and/or as different
|
|
|
ecd4e2 |
+users may display different colors for the same individual CPUs (e.g.,
|
|
|
ecd4e2 |
+running lstopo in one context may show a specific CPU as red, but
|
|
|
ecd4e2 |
+running lstopo in a different context may show the same CPU as white).
|
|
|
ecd4e2 |
+.PP
|
|
|
ecd4e2 |
+Some lstopo output modes, e.g. the console mode (default non-graphical output),
|
|
|
ecd4e2 |
+do not support colors at all.
|
|
|
ecd4e2 |
+The console mode displays the above characteristics by appending text
|
|
|
ecd4e2 |
+to each PU line if verbose messages are enabled.
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.\" Layout Section
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.SH LAYOUT
|
|
|
ecd4e2 |
+In its graphical output, lstopo uses simple rectangular heuristics
|
|
|
ecd4e2 |
+to try to achieve a 4/3 ratio between width and height. However,
|
|
|
ecd4e2 |
+in the particular case of NUMA nodes, the layout is always a flat
|
|
|
ecd4e2 |
+rectangle, to avoid letting the user believe any particular NUMA
|
|
|
ecd4e2 |
+topology (lstopo is not able to render that yet).
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.\" Examples Section
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.SH EXAMPLES
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+To display the machine topology in textual mode:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo-no-graphics
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To display the machine topology in pseudo-graphical mode:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo-no-graphics -.txt
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To display in graphical mode (assuming that the DISPLAY environment
|
|
|
ecd4e2 |
+variable is set to a relevant value):
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To export the topology to a PNG file:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo file.png
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To export an XML file on a machine and later display the corresponding
|
|
|
ecd4e2 |
+graphical output on another machine:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ machine1$ lstopo file.xml
|
|
|
ecd4e2 |
+ <transfer file.xml from machine1 to machine2>
|
|
|
ecd4e2 |
+ machine2$ lstopo --input file.xml
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To save the current machine topology to XML and later reload it faster
|
|
|
ecd4e2 |
+while still considering it as the current machine:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ $ lstopo file.xml
|
|
|
ecd4e2 |
+ <...>
|
|
|
ecd4e2 |
+ $ lstopo --input file.xml --thissystem
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To restrict an XML topology to only physical processors 0, 1, 4 and 5:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo --input file.xml --restrict 0x33 newfile.xml
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To restrict an XML topology to only numa node whose logical index is 1:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo --input file.xml --restrict $(hwloc-calc --input file.xml node:1) newfile.xml
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To display a summary of the topology:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo -s
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To get more details about the topology:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo -v
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To only show cores:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo --only core
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To show cpusets:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo --cpuset
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To only show the cpusets of sockets:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo --only socket --cpuset-only
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+Simulate a fake hierarchy; this example shows with 2 NUMA nodes of 2
|
|
|
ecd4e2 |
+processor units:
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo --input "n:2 2"
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+To count the number of logical processors in the system
|
|
|
ecd4e2 |
+
|
|
|
ecd4e2 |
+ lstopo --only pu | wc -l
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.\" See also section
|
|
|
ecd4e2 |
+.\" **************************
|
|
|
ecd4e2 |
+.SH SEE ALSO
|
|
|
ecd4e2 |
+.
|
|
|
ecd4e2 |
+.ft R
|
|
|
ecd4e2 |
+hwloc(7), hwloc-info(1), hwloc-bind(1), hwloc-ps(1), hwloc-gather-topology(1)
|
|
|
ecd4e2 |
+.sp
|
|
|
ecd4e2 |
diff -Nrup hwloc-1.7.orig/utils/Makefile.am hwloc-1.7/utils/Makefile.am
|
|
|
ecd4e2 |
--- hwloc-1.7.orig/utils/Makefile.am 2013-03-26 16:00:18.000000000 -0400
|
|
|
ecd4e2 |
+++ hwloc-1.7/utils/Makefile.am 2015-07-13 17:04:30.291528739 -0400
|
|
|
ecd4e2 |
@@ -1,4 +1,4 @@
|
|
|
ecd4e2 |
-# Copyright © 2009-2013 Inria. All rights reserved.
|
|
|
ecd4e2 |
+# Copyright © 2009-2014 Inria. All rights reserved.
|
|
|
ecd4e2 |
# Copyright © 2009-2012 Université Bordeaux 1
|
|
|
ecd4e2 |
# Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
|
|
|
ecd4e2 |
#
|
|
|
ecd4e2 |
@@ -57,7 +57,7 @@ man7_pages = hwloc.7
|
|
|
ecd4e2 |
EXTRA_DIST += $(man7_pages:.7=.7in)
|
|
|
ecd4e2 |
nodist_man_MANS = $(man7_pages)
|
|
|
ecd4e2 |
|
|
|
ecd4e2 |
-man1_pages = lstopo.1 hwloc-annotate.1 hwloc-bind.1 hwloc-calc.1 hwloc-distances.1 hwloc-distrib.1 hwloc-info.1 hwloc-ps.1 hwloc-assembler.1 hwloc-assembler-remote.1
|
|
|
ecd4e2 |
+man1_pages = lstopo-no-graphics.1 hwloc-annotate.1 hwloc-bind.1 hwloc-calc.1 hwloc-distances.1 hwloc-distrib.1 hwloc-info.1 hwloc-ps.1 hwloc-assembler.1 hwloc-assembler-remote.1
|
|
|
ecd4e2 |
EXTRA_DIST += $(man1_pages:.1=.1in)
|
|
|
ecd4e2 |
nodist_man_MANS += $(man1_pages)
|
|
|
ecd4e2 |
|
|
|
ecd4e2 |
@@ -101,9 +101,9 @@ if !HWLOC_HAVE_CAIRO
|
|
|
ecd4e2 |
endif
|
|
|
ecd4e2 |
endif
|
|
|
ecd4e2 |
rm -f $(DESTDIR)$(man1dir)/hwloc-ls.1
|
|
|
ecd4e2 |
- cd $(DESTDIR)$(man1dir) && $(LN_S) lstopo.1 hwloc-ls.1
|
|
|
ecd4e2 |
- rm -f $(DESTDIR)$(man1dir)/lstopo-no-graphics.1
|
|
|
ecd4e2 |
- cd $(DESTDIR)$(man1dir) && $(LN_S) lstopo.1 lstopo-no-graphics.1
|
|
|
ecd4e2 |
+ cd $(DESTDIR)$(man1dir) && $(LN_S) lstopo-no-graphics.1 hwloc-ls.1
|
|
|
ecd4e2 |
+ rm -f $(DESTDIR)$(man1dir)/lstopo.1
|
|
|
ecd4e2 |
+ cd $(DESTDIR)$(man1dir) && $(LN_S) lstopo-no-graphics.1 lstopo.1
|
|
|
ecd4e2 |
$(SED) -e 's/HWLOC_top_builddir\/utils/bindir/' -e '/HWLOC_top_builddir/d' $(DESTDIR)$(bindir)/hwloc-assembler-remote > $(DESTDIR)$(bindir)/hwloc-assembler-remote.tmp && mv -f $(DESTDIR)$(bindir)/hwloc-assembler-remote.tmp $(DESTDIR)$(bindir)/hwloc-assembler-remote
|
|
|
ecd4e2 |
chmod +x $(DESTDIR)$(bindir)/hwloc-assembler-remote
|
|
|
ecd4e2 |
|
|
|
ecd4e2 |
@@ -114,7 +114,7 @@ if !HWLOC_HAVE_CAIRO
|
|
|
ecd4e2 |
rm -f $(DESTDIR)$(bindir)/lstopo$(EXEEXT)
|
|
|
ecd4e2 |
endif
|
|
|
ecd4e2 |
endif
|
|
|
ecd4e2 |
- rm -f $(DESTDIR)$(man1dir)/hwloc-ls.1 $(DESTDIR)$(man1dir)/lstopo-no-graphics.1
|
|
|
ecd4e2 |
+ rm -f $(DESTDIR)$(man1dir)/hwloc-ls.1 $(DESTDIR)$(man1dir)/lstopo.1
|
|
|
ecd4e2 |
|
|
|
ecd4e2 |
distclean-local:
|
|
|
ecd4e2 |
rm -f $(nodist_man_MANS)
|