aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml
diff options
context:
space:
mode:
authorJuraj Linkeš <juraj.linkes@pantheon.tech>2022-08-19 11:37:47 +0200
committerPeter Mikus <peter.mikus@protonmail.ch>2022-08-25 07:40:11 +0000
commitd3d391f17f4ecaa56554dd558fd929d26cadce64 (patch)
tree890f22a4ed41d0e47382d7f5be43a0f9b87479a6 /fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml
parente90dbd33ddd4a795a13df1593cbd78b236af699c (diff)
feat(ansible): update 1n-tx2 config
Arm VPP Device requires newer drivers, otherwise we're frequently seeing a deadlock when running csit-initialize-vfs. We've observed server slowdown in VPP Device jobs in the past and testing revealed that disabling the cppc_cpufreq seemingly resolves the issue (there was no observed slowdown with a sample of 500 job runs). Also update Nomad config (server IPs). Change-Id: I484417f2cdb701239ca7517406147d0f2f7adde4 Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
Diffstat (limited to 'fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml')
-rw-r--r--fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml b/fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml
new file mode 100644
index 0000000000..438095fc00
--- /dev/null
+++ b/fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml
@@ -0,0 +1,23 @@
+---
+# file: roles/vpp_device/tasks/thunderx2.yaml
+
+- name: Load Kernel Modules On Startup (vfio-pci)
+ ansible.builtin.lineinfile:
+ path: "/etc/modules"
+ state: "present"
+ line: "{{ item }}"
+ with_items:
+ - "vfio-pci"
+ tags:
+ - load-kernel-modules
+
+- name: Disable Kernel Modules On Startup (cppc_cpufreq)
+ ansible.builtin.lineinfile:
+ path: "/etc/modprobe.d/blacklist-cppc_cpufreq.conf"
+ state: "present"
+ line: "{{ item }}"
+ create: "yes"
+ with_items:
+ - "blacklist cppc_cpufreq"
+ tags:
+ - disable-kernel-modules