feat(roles/common): added nic offloads optmiziation
This commit is contained in:
4 files changed
+22
-1
No files matched your search
@@ -15,6 +15,9 @@ common_journal_retention_days: 21
|
|||||||
common_journal_max_disk_limit: "5%"
|
common_journal_max_disk_limit: "5%"
|
||||||
common_atop_retention_days: 3
|
common_atop_retention_days: 3
|
||||||
|
|
||||||
|
# Optimizations
|
||||||
|
enable_nic_offloads: false
|
||||||
|
|
||||||
# User management
|
# User management
|
||||||
admin_users:
|
admin_users:
|
||||||
- name: "{{ ansible_user }}"
|
- name: "{{ ansible_user }}"
|
||||||
|
|||||||
@@ -7,3 +7,8 @@
|
|||||||
- name: Reload systemd
|
- name: Reload systemd
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
|
|
||||||
|
- name: Restart networking
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: networking
|
||||||
|
state: restarted
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
notify: Reload systemd
|
notify: Reload systemd
|
||||||
tags: optimization
|
tags: optimization
|
||||||
|
|
||||||
- name: Enable and start GPU unbind servie
|
- name: Enable and start GPU unbind service
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: gpu-unbind-{{ item.label }}
|
name: gpu-unbind-{{ item.label }}
|
||||||
@@ -51,3 +51,13 @@
|
|||||||
state: started
|
state: started
|
||||||
loop: "{{ gpu_unbind_devices }}"
|
loop: "{{ gpu_unbind_devices }}"
|
||||||
tags: optimization
|
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