[Starlingx-discuss] Why the cores to use is limited to 20 if my hosts have 64 logical cores

Alonso, Juan Carlos juan.carlos.alonso at intel.com
Wed Jun 5 19:53:19 UTC 2019


Hi,

I have a Standard 2+2 system, I wanted to create 3 VMs with different vcpus each one. VCPUs were set on flavors:
$ openstack flavor create --ram ${ram} --disk ${disk} --vcpus 4 flavor-1
$ openstack flavor create --ram ${ram} --disk ${disk} --vcpus 10 flavor-2
$ openstack flavor create --ram ${ram} --disk ${disk} --vcpus 14 flavor-3

I am using cpu_policy=dedicated on flavors.

I could launch 2 VMs, with flavor-1 (--vcpus 4) and flavor-2 (--vcpus 10). When tried to launch VM3 (--vcpus 14) I got the following error:
Quota exceeded for cores: Requested 14, but already used 14 of 20 cores (HTTP 403) (Request-ID: req-9ab18649-8796-4cad-8768-75f895ac48c1)

Why the cores to use is limited to 20 if my hosts have 64 logical cores?
Are just 20 vcpus configured to be used by default?
How can I enable the rest of logical CPUs to use them?

$ system host-cpu-list compute-0
+--------------------------------------+-------+-----------+-------+--------+-------------------------------------------+-------------------+
| uuid                                 | log_c | processor | phy_c | thread | processor_model                           | assigned_function |
|                                      | ore   |           | ore   |        |                                           |                   |
+--------------------------------------+-------+-----------+-------+--------+-------------------------------------------+-------------------+
| e6f9eda4-f8be-48a3-a54c-c052cb1403e4 | 0     | 0         | 0     | 0      | Intel(R) Xeon(R) Gold 6142M CPU @ 2.60GHz | Platform          |
| 23522549-88c8-4d76-b665-18edc5e1b5e2 | 1     | 0         | 1     | 0      | Intel(R) Xeon(R) Gold 6142M CPU @ 2.60GHz | vSwitch           |
| 57cc68fe-ff4a-40c5-8fe4-7b34269c1387 | 2     | 0         | 2     | 0      | Intel(R) Xeon(R) Gold 6142M CPU @ 2.60GHz | vSwitch           |
|...
|...
| a76df976-4deb-4b4a-828a-0764ca5ddee6 | 62    | 1         | 14    | 1      | Intel(R) Xeon(R) Gold 6142M CPU @ 2.60GHz | Applications      |
| 85263ef8-6060-4165-9159-db9f32efc620 | 63    | 1         | 15    | 1      | Intel(R) Xeon(R) Gold 6142M CPU @ 2.60GHz | Applications      |
+--------------------------------------+-------+-----------+-------+--------+-------------------------------------------+-------------------+

$ kubectl describe nodes compute-0
...
Capacity:
cpu:                64
...
Allocatable:
cpu:                64

Regards.
Juan Carlos Alonso
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20190605/fa039d46/attachment.html>


More information about the Starlingx-discuss mailing list