Posts

Showing posts from September, 2021

LinuxSys Probe Utility

I’ve published a new small GNU/Linux system probe utility to: read cgroups information (cpusets and memory) read /proc information probe CPU affinity and memory allocation The detailed description and usage could be found on the aforementioned link. Let me here describe a couple of use-cases as an intruduction. Probe CPU affinity and memory allocation Setting CPU affinity and allocating memory could silently fail (e.g. if cgroups control them). The utility uses those failures to find the boundaries: docker run -it --rm -v ` pwd ` :/opt \ --cpuset-cpus = "2-4" --memory = "100m" alpine \ /opt/linuxsys-probe -d 10MiB -r probe probe.cpu::affinity [0] = [*2, 3, 4] probe.cpu::affinity [1] = [*2, 3, 4] probe.cpu::affinity [2] = [*2] probe.cpu::affinity [3] = [*3] probe.cpu::affinity [4] = [*4] probe.cpu::affinity [5] = [*2, 3, 4] probe.cpu::affinity [6] = [2, *3, 4] probe.cpu::affinity [7] = [2, 3, *4] probe.cpu::affinity