diff --git a/deployments/k8s/manifests/ixia-c-b2b-eth0.yaml b/deployments/k8s/manifests/ixia-c-b2b-eth0.yaml index ee4d4a8..564d0c7 100644 --- a/deployments/k8s/manifests/ixia-c-b2b-eth0.yaml +++ b/deployments/k8s/manifests/ixia-c-b2b-eth0.yaml @@ -73,6 +73,8 @@ items: value: virtual@af_packet,eth0 - name: OPT_NO_HUGEPAGES value: "Yes" + - name: OPT_ADAPTIVE_CPU_USAGE + value: "Yes" - name: OPT_LISTEN_PORT value: "5555" - name: ARG_CORE_LIST diff --git a/deployments/template-ixia-c-config.yaml b/deployments/template-ixia-c-config.yaml index 5027abc..dfd9717 100644 --- a/deployments/template-ixia-c-config.yaml +++ b/deployments/template-ixia-c-config.yaml @@ -21,7 +21,10 @@ data: { "name": "traffic-engine", "path": "$(configq .images[2].path)", - "tag": "$(configq .images[2].tag)" + "tag": "$(configq .images[2].tag)", + "env": { + "OPT_ADAPTIVE_CPU_USAGE": "Yes" + } }, { "name": "protocol-engine", @@ -30,4 +33,3 @@ data: } ] } - diff --git a/do.sh b/do.sh index c461974..afd5759 100755 --- a/do.sh +++ b/do.sh @@ -621,6 +621,7 @@ create_ixia_c_b2b_dp() { -e ARG_IFACE_LIST="virtual@af_packet,${VETH_A}" \ -e OPT_NO_HUGEPAGES="Yes" \ -e OPT_NO_PINNING="Yes" \ + -e OPT_ADAPTIVE_CPU_USAGE="Yes" \ $(ixia_c_traffic_engine_img) \ && docker run --net=host --privileged -d \ --name=ixia-c-traffic-engine-${VETH_Z} \ @@ -628,6 +629,7 @@ create_ixia_c_b2b_dp() { -e ARG_IFACE_LIST="virtual@af_packet,${VETH_Z}" \ -e OPT_NO_HUGEPAGES="Yes" \ -e OPT_NO_PINNING="Yes" \ + -e OPT_ADAPTIVE_CPU_USAGE="Yes" \ $(ixia_c_traffic_engine_img) \ && docker ps -a \ && gen_controller_config_b2b_dp \ @@ -681,6 +683,7 @@ create_ixia_c_b2b_cpdp() { -e OPT_NO_HUGEPAGES="Yes" \ -e OPT_NO_PINNING="Yes" \ -e WAIT_FOR_IFACE="Yes" \ + -e OPT_ADAPTIVE_CPU_USAGE="Yes" \ $(ixia_c_traffic_engine_img) \ && docker run --privileged -d \ --net=container:ixia-c-traffic-engine-${VETH_A} \ @@ -694,6 +697,7 @@ create_ixia_c_b2b_cpdp() { -e OPT_NO_HUGEPAGES="Yes" \ -e OPT_NO_PINNING="Yes" \ -e WAIT_FOR_IFACE="Yes" \ + -e OPT_ADAPTIVE_CPU_USAGE="Yes" \ $(ixia_c_traffic_engine_img) \ && docker run --privileged -d \ --net=container:ixia-c-traffic-engine-${VETH_Z} \ @@ -758,6 +762,7 @@ create_ixia_c_b2b_lag() { -e OPT_NO_HUGEPAGES="Yes" \ -e OPT_NO_PINNING="Yes" \ -e WAIT_FOR_IFACE="Yes" \ + -e OPT_ADAPTIVE_CPU_USAGE="Yes" \ -e OPT_MEMORY="1024" \ $(ixia_c_traffic_engine_img) \ && docker run --privileged -d \ @@ -772,6 +777,7 @@ create_ixia_c_b2b_lag() { -e OPT_NO_HUGEPAGES="Yes" \ -e OPT_NO_PINNING="Yes" \ -e WAIT_FOR_IFACE="Yes" \ + -e OPT_ADAPTIVE_CPU_USAGE="Yes" \ -e OPT_MEMORY="1024" \ $(ixia_c_traffic_engine_img) \ && docker run --privileged -d \