cpu pin with nova

asked 2017-09-21 07:47:25 -0600

ashu gravatar image
 Hi Team

I need to map the vcpu associated with the Openstack vnf with the physical cores 6,7 of the host.For this,I have added below lines in nova.conf..

vcpu_pin_set = 6,7

Also for better performance,I have isolated  the above cores from the host process using isolcpus in /proc/cmdline.Below is the output of /proc/cmdline..

BOOT_IMAGE=/boot/vmlinuz-4.10.0-35-generic root=UUID=f3d92ebb-a521-49c5-9a88-1b8b4947591d ro default_hugepagesz=1G hugepagesz=1G hugepages=16 hugepagesz=2M hugepages=2048 iommu=pt intel_iommu=on isolcpus=2,5,6,7

Below is the flavor details..

nova flavor-show m1.medium
+----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                   | Value                                                                                                                                                       |
+----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-FLV-DISABLED:disabled   | False                                                                                                                                                       
| OS-FLV-EXT-DATA:ephemeral  | 0                                                                                                                                                           
| disk                       | 40                                                                                                                                                          
| extra_specs                | {"aggregate_instance_extra_specs:pinned": "true", "hw:cpu_policy": "dedicated", "hw:mem_page_size": "large", "hw:numa_nodes": "1", "hw:numa_cpus.1": "6,7"} |
| id                         | 3                                                                                                                                                           
| name                       | m1.medium                                                                                                                                                   
| os-flavor-access:is_public | True                                                                                                                                                        
| ram                        | 4096                                                                                                                                                        
| rxtx_factor                | 1.0                                                                                                                                                         
| swap                       |                                                                                                                                                             
| vcpus                      | 2                                                                                                                                                           
+----------------------------+----------------------------------------------------------------------------------------------------------------------

However whenever I launch the vnf with 2 cores,it gets mapped to physical cores 0 and 3.Please help me regarding this.

Thanks
Ashu Jain
edit retag flag offensive close merge delete