feat(roles/common): added nic offloads optmiziation

This commit is contained in:
ITQ committed 2026-10-12 23:14:51 +03:00
1 parent 6c82a8a699
commit 0bbc3ed7f7
4 files changed
+22 -1

No files matched your search

+3
View File
@@ -15,6 +15,9 @@ common_journal_retention_days: 21
common_journal_max_disk_limit: "5%"
common_atop_retention_days: 3
# Optimizations
enable_nic_offloads: false
# User management
admin_users:
- name: "{{ ansible_user }}"
+5
View File
@@ -7,3 +7,8 @@
- name: Reload systemd
ansible.builtin.systemd:
daemon_reload: true
- name: Restart networking
ansible.builtin.service:
name: networking
state: restarted
+11 -1
View File
@@ -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
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
ethtool -K {{ ansible_default_ipv4.interface }} rx-udp-gro-forwarding on rx-gro-list off