feat(roles/common): added nic offloads optmiziation
This commit is contained in:
4 files changed
+22
-1
No files matched your search
@@ -7,3 +7,8 @@
|
||||
- name: Reload systemd
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: Restart networking
|
||||
ansible.builtin.service:
|
||||
name: networking
|
||||
state: restarted
|
||||
@@ -43,7 +43,7 @@
|
||||
notify: Reload systemd
|
||||
tags: optimization
|
||||
|
||||
- name: Enable and start GPU unbind servie
|
||||
- name: Enable and start GPU unbind service
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: gpu-unbind-{{ item.label }}
|
||||
@@ -51,3 +51,13 @@
|
||||
state: started
|
||||
loop: "{{ gpu_unbind_devices }}"
|
||||
tags: optimization
|
||||
|
||||
- name: NIC offloads
|
||||
when: enable_nic_offloads | bool
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: nic-offloads.j2
|
||||
dest: /etc/network/if-up.d/{{ ansible_default_ipv4.interface }}
|
||||
mode: "0755"
|
||||
notify: Restart networking
|
||||
tags: optimization
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
ethtool -K {{ ansible_default_ipv4.interface }} rx-udp-gro-forwarding on rx-gro-list off
|
||||
Reference in new issue
Block a user