Closed haampie closed 4 years ago
Hello @haampie, we are aware that the mechanism for assigning CPU affinity is not functioning properly in some situations. A fix has been merged a couple of days ago in the development branch (https://github.com/eth-cscs/sarus/commit/c98a44eb6c8a2022495a4443a0a41345781a4a42) and will be available in the next tagged release.
Ah, thanks, didn't notice that!
On my pc with a AMD Ryzen 7 3700X and Linux 5.4.0 I'm facing an issue with the number of requested CPUs being too large which results in the container failing to start.
The generated config.json for runc contains
... "linux":{"resources":{"cpu":{"cpus":"0-31"}} ...
which indeed corresponds to the Cpus_allowed_list:but I only have 8 cores / 16 threads:
The error I'm getting is
If I hard-code cpus to
0-15
everything is fine.