HWLOC-COMPRESS-DIR(1)
π hwloc-compress-dir β bestie's guide to squishing XML topologies
okay so this is hwloc-compress-dir, straight out of the hwloc manual (section 1, if you're keeping score π). She compresses a whole directory of XML topologies, and honestly? iconic behaviour.
β¨ SYNOPSIS β¨
hwloc-compress-dir [options] <inputdir> <outputdir>
two directories, bestie. one going in, one coming out. that's the whole vibe check. π¦
πΈ OPTIONS πΈ
-R,--reverseβ un-squish it, queen π β reverses the whole thing and uncompresses a directory that was previously compressed.-v,--verboseβ she talks. a lot. displays verbose messages so you actually know what's happening π--versionβ reports the version and dips out immediately. no further questions βοΈ-h,--helpβ dumps the help message and exits. your little safety net π«Ά
π DESCRIPTION π
so hwloc-compress-dir takes an input directory full of XML exports and tries to compress it by computing topology diffs between them β using the hwloc-diff program, ngl that's the real MVP here. then each file gets copied into the output directory, and it ends up as either a diff (if it could be compressed, slay) or its original entire file if it couldn't. no cap, that's it.
she can also recompress a directory that was previously compressed. the way that works: all input files that are already in the output directory β compressed or not β are ignored. yeah, ignored. don't come for her. new input files get compressed as much as possible, as usual πββοΈ
for each file in the directory, the output filename is the same as the original if it's not compressed β otherwise its extension gets changed to .diff.xml. periodt. π₯
compressed files are based on another non-compressed topology, and its name is stored in the refname topology diff attribute. (iykyk π)
the generated output diff files may be used with hwloc-patch β just like any file generated by hwloc-diff. chefs kiss π
π EXAMPLES π
to compress the input files from directory in into directory out:
$ hwloc-compress-dir in out
that's it. that's the whole example. go off π
β RETURN VALUE β
upon successful execution, hwloc-compress-dir returns 0. we love a clean exit. π
hwloc-compress-dir will return nonzero if any kind of error occurs β such as (but not limited to) failure to parse the command line. so like, if you type it wrong, that's on you bestie π
π¦ SEE ALSO π¦
hwloc(7), lstopo(1), hwloc-diff(1), hwloc-patch(1)
version 2.15.0, dated Sep 23, 2026 β mwah, bye bestie, go compress something πβ¨π§
π¦ where this page comes from
- arch rolling: hwloc 2.15.0-1 Β· BSD-3-Clause
- π the page's license: BSD-3-Clause
- Copyright Β© 2013-2021 Inria. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms