[IDF] arm-pod7: Configure hugepages and cpupinning variables for armpod7 91/53791/7
authorCharalampos Kominos <Charalampos.Kominos@enea.com>
Wed, 14 Mar 2018 12:56:17 +0000 (13:56 +0100)
committerCharalampos Kominos <Charalampos.Kominos@enea.com>
Thu, 22 Mar 2018 15:17:24 +0000 (16:17 +0100)
For non-dpdk scenarios we define as cpu config:
        0,1 for OS
        2-7 for nova
For dpdk scenarios we define as cpu config:
        0,1 for OS,
        2,3 for DPDK drivers and processes
        4-7 for nova

Dpdk config is also provided for the 3 thunderx nodes which currently
serve as KVM nodes. The config is similar to the config above with
cores 4-47 being used for nova.

JIRA: ARMBAND-364

Change-Id: I761aa8e73935b7180f4f377841cc93c9d81cf4d7
Signed-off-by: Charalampos Kominos <charalampos.kominos@enea.com>
Signed-off-by: Guillermo Herrero <guillermo.herrero@enea.com>
labs/arm/idf-pod7.yaml

index 58ad2e5..a8041a2 100644 (file)
@@ -86,3 +86,48 @@ idf:
             - 'e0900000.xgmac'
         - interfaces: *interfaces_b
           busaddr: *busaddr_b
+    reclass:
+      node:
+        - compute_params: &compute_params_a
+            common:
+              nova_cpu_pinning: &nova_cpu_pinning_common_a "2-47"
+              compute_hugepages_size: 2M
+              compute_hugepages_count: 8192
+              compute_hugepages_mount: /mnt/hugepages_2M
+              compute_kernel_isolcpu: *nova_cpu_pinning_common_a
+            dpdk:
+              nova_cpu_pinning: "4-47"
+              compute_hugepages_size: 2M
+              compute_hugepages_count: 8192
+              compute_hugepages_mount: /mnt/hugepages_2M
+              compute_kernel_isolcpu: *nova_cpu_pinning_common_a
+              compute_dpdk_driver: vfio
+              compute_ovs_pmd_cpu_mask: "0xc"
+              compute_ovs_dpdk_socket_mem: "4096"
+              compute_ovs_dpdk_lcore_mask: "0xc"
+              compute_ovs_memory_channels: "2"
+              dpdk0_driver: vfio-pci
+              dpdk0_n_rxq: 2
+        - compute_params: *compute_params_a
+        - compute_params: *compute_params_a
+        - compute_params: &compute_params_b
+            common:
+              nova_cpu_pinning: &nova_cpu_pinning_common_b "2,3,4,5,6,7"
+              compute_hugepages_size: 2M
+              compute_hugepages_count: 8192
+              compute_hugepages_mount: /mnt/hugepages_2M
+              compute_kernel_isolcpu: *nova_cpu_pinning_common_b
+            dpdk:
+              nova_cpu_pinning: "4-7"
+              compute_hugepages_size: 2M
+              compute_hugepages_count: 8192
+              compute_hugepages_mount: /mnt/hugepages_2M
+              compute_kernel_isolcpu: *nova_cpu_pinning_common_b
+              compute_dpdk_driver: vfio
+              compute_ovs_pmd_cpu_mask: "0xc"
+              compute_ovs_dpdk_socket_mem: "4096"
+              compute_ovs_dpdk_lcore_mask: "0xc"
+              compute_ovs_memory_channels: "2"
+              dpdk0_driver: vfio-pci
+              dpdk0_n_rxq: 2
+        - compute_params: *compute_params_b