hwloc
hwloc copied to clipboard
Hardware locality (hwloc)
There was some discussion recently about a new cpuset output format in hwloc-calc to be compatible with some systemd tools (busctl for manipulating cgroups). We have taskset support in hwloc-calc/bind/distrib....
It looks like [hwloc changes the environment from a constructor function](https://github.com/open-mpi/hwloc/blob/964cbaa0c8b345574c9cfd269359e2851d8cacb6/hwloc/topology.c#L83); this seems unpleasant — it means that very likely the first thing your program will do is allocate memory...
### What version of hwloc are you using? 2.10.0 ### Which operating system and hardware are you running on? Alma Linux 8.10 Linux 4.18.0-553.5.1.el8_10.x86_64 Dell Precision 7875 Tower BIOS version...
### What version of hwloc are you using? 2.10.0 lstopo says % lstopo --version lstopo 2.9.0 ### Which operating system and hardware are you running on? % uname -a Linux...
We could use x86 CPUID 0x16 base and max freq info but it doesn't provide anything better than the hybrid core type yet, at least on MTL (while Linux does).
Intel CPUID defines a "DieGrp", "Die", "Tile", "Module" between "Package" and "Core" (DieGrp, Tile and Module aren't exposed to userspace in Linux). AMD rather defines "Die" and "Complex" (seems to...
We setup an array of info attributes per PU by reading processor blocks in /proc/cpuinfo. On x86, /proc/cpuinfo is homogeneous, even on hybrid CPUs: we get the CPU Model, and...
An example get_mount_point.c is provided in the libcg source, it's visible in the Debian package git at https://salsa.debian.org/debian/libcgroup/-/blob/debian/master/samples/c/get_mount_point.c?ref_type=heads Would be even easier than #678 but it is not clear whether...
These new syscalls are likely better for finding the cgroup mount point but they are not exported on Linux yet.