[pve-devel] [PATCH common 1/2] cpuset: support non-continuous processor ids

Dietmar Maurer dietmar at proxmox.com
Sun Apr 16 15:06:54 CEST 2017


> > So we cannot simply test for min/max - instead, we want to
> > test is a specific ID exists?
> 
> Yes but that doesn't depend on /proc/cpuinfo since you can eg.
> also limit the entire lxc/ cgroup subdirectory itself to limit
> all containers, which is why pvestatd uses the `lxc/cpuset.effective_cpus`
> value. Here we are really just looking for an upper limit.

What if someone call 'insert' with wrong IDs?

But sure, we always read members from cgroups, so this should not
happen - but maybe it is worth as an additional protection?




More information about the pve-devel mailing list