OS Manuals

/usr/bin/hwloc-ps

Portable abstraction of hierarchical hardware architectures with CUDA support

From hwloc-cuda-13.0 2.15.0-r0 (enterprise-packages), captured 2026-11-08 by running hwloc-ps --help (exit 0). permalink

Usage: hwloc-ps [ options ] ...
Options:
  -a                 Show all processes, including those that are not bound
  --pid <pid>        Only show process of pid number <pid>
  --children-of-pid <pid> Only show process of pid number <pid> and its children
  --name <name>      Only show processes whose name contains <name>
  --uid <uid>        Only show processes of the user with the given uid
  --uid all          Show processes of all users
  -l --logical       Use logical object indexes (default)
  -p --physical      Use physical object indexes
  -c --cpuset        Show cpuset instead of objects
  --single-ancestor  Show a single ancestor containing the binding
  -t --threads       Show threads
  -e --get-last-cpu-location
                     Retrieve the last processors where the tasks ran
  --pid-cmd <cmd>    Append the output of <cmd> <pid> to each PID line
  --short-name       Show only the process short name instead of the path
  --disallowed       Include objects disallowed by administrative limitations
  --lstopo-misc <file>  Output Misc object to be given to lstopo --misc-from <file>
  --json-server      Run as a JSON server
  --json-port <n>    Use port <n> for JSON server (default is 8888)
  -v --verbose       Increase verbosity
  --version          Report version and exit
  -h --help          Show this usage
Options (20)
OptionDescriptionSource
-aList all processes, even those that are not bound to any specific part of the machine.help + man
--pid pidOnly show process of PID <pid>, even if it is not bound to any specific part of the machine.help + man
--name nameOnly show processes whose name contains <name>, even if they are not bound to any specific part of the machine.help + man
--uid uidOnly show processes of the user whose UID is <uid>, or processes of all users if all is given.help + man
-l --logicalReport logical indexes instead of physical/OS indexes (default)help + man
-p --physicalReport OS/physical indexes instead of logical indexeshelp + man
-c --cpusetShow process bindings as cpusets instead of objects.help + man
--single-ancestorWhen the object is bound to different objects, report their common ancestor (even if it may be larger than the actual binding).help + man
-t --threadsShow threads inside processes.help + man
-e --get-last-cpu-locationReport the last processors where the process/thread ran.help + man
--pid-cmd cmdAppend the output of the given command to each PID line.help + man
--short-nameShow only the process short name instead of the path.help + man
--disallowedInclude objects disallowed by administrative limitations.help + man
--lstopo-misc fileOutput a file that may be given to lstopo --misc-from for displaying processes/threads as Misc objects.help + man
--json-serverRun the tool as a JSON server that waits for other process' requests on a port and sends back binding information.help + man
--json-port nUse the given port number instead of the default 8888.help + man
-v --verboseIncrease verbosity of the JSON server.help + man
--versionReport version and exit.help + man
-h --helpDisplay help message and exit.help + man
--children-of-pid pidOnly show process of PID <pid> and its hierarchy of children, even if they are not bound to any specific part of the machine. (in the manual page but not in --help)man
Examples (5) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.