Hello,
I met a requirement to pin some container to certain CPU cores forever. This comes from the specific software we installed into the container and its licensing model. It checks CPUs and if it finds any dissimilarity with license file, it refuses to use that license file.
My machine has 24 cores, but only 10 of them are given to the container. And each time I start container it sees different 10 cores. The software seems to record which cores are in use during license activation, and after container restart it finds another set of cores.
Currently I have SMT (hyperthreading) disabled, but it would be nice to also know how to deal with it enabled.
How can I pin a container to certain CPU cores? I use PVE 7, CT is Debian 10 (due to this specific software support).
I've seen some messages in this forum that might be relevant:
but I can't fully understand them. I think lack the required expertise in cgroups, LXC and systemd. Is it possible to encode everyting into CT configuration file (and, probably, the files referenced from it, but then it is unknown how to backup them together with the container)?
I met a requirement to pin some container to certain CPU cores forever. This comes from the specific software we installed into the container and its licensing model. It checks CPUs and if it finds any dissimilarity with license file, it refuses to use that license file.
My machine has 24 cores, but only 10 of them are given to the container. And each time I start container it sees different 10 cores. The software seems to record which cores are in use during license activation, and after container restart it finds another set of cores.
Currently I have SMT (hyperthreading) disabled, but it would be nice to also know how to deal with it enabled.
How can I pin a container to certain CPU cores? I use PVE 7, CT is Debian 10 (due to this specific software support).
I've seen some messages in this forum that might be relevant:
but I can't fully understand them. I think lack the required expertise in cgroups, LXC and systemd. Is it possible to encode everyting into CT configuration file (and, probably, the files referenced from it, but then it is unknown how to backup them together with the container)?
Last edited: