Closed gnawux closed 7 years ago
The hypervisor driver package support configure vCPU number(code here), however, we could not setup it through runv command line.
As oci spec does not specified it. There are several alternatives:
cpu.period
cpu.quota
docker --cpus
cpu.cpus
docker --cpuset
@jovizhangwei suggest we could use the docker --cpus value because it works well with many 3rd party control console (such as Docker UCP).
The hypervisor driver package support configure vCPU number(code here), however, we could not setup it through runv command line.
As oci spec does not specified it. There are several alternatives:
cpu.period
andcpu.quota
(alsodocker --cpus
), and do a round up for float number.cpu.cpus
(i.e.docker --cpuset
)@jovizhangwei suggest we could use the
docker --cpus
value because it works well with many 3rd party control console (such as Docker UCP).