Przeglądaj źródła

Merge pull request #145 from alexandruavadanii/ovs-dpdk-alternatives

ovs-dpdk should work without system reboot
pull/146/head
Filip Pytloun 6 lat temu
rodzic
commit
1ba71ad1dd
Brak konta powiązanego z adresem e-mail autora
2 zmienionych plików z 17 dodań i 0 usunięć
  1. +10
    -0
      linux/network/dpdk.sls
  2. +7
    -0
      linux/system/hugepages.sls

+ 10
- 0
linux/network/dpdk.sls Wyświetl plik

@@ -9,6 +9,7 @@ linux_dpdk_pkgs:
linux_dpdk_kernel_module:
kmod.present:
- name: {{ network.dpdk.driver }}
- persist: true
- require:
- pkg: linux_dpdk_pkgs
- require_in:
@@ -73,6 +74,15 @@ linux_network_dpdk_ovs_option_{{ option }}:

{%- endfor %}

openvswitch_dpdk_ovs_alternative:
alternatives.remove:
- name: ovs-vswitchd
- path: /usr/lib/openvswitch-switch/ovs-vswitchd
- require:
- pkg: openvswitch_dpdk_pkgs
- watch_in:
- service: service_openvswitch

service_openvswitch:
service.running:
- name: openvswitch-switch

+ 7
- 0
linux/system/hugepages.sls Wyświetl plik

@@ -29,6 +29,13 @@ hugepages_mount_{{ hugepages_type }}:
- mkmnt: true
- opts: mode=775,pagesize={{ hugepages.size }}

# Make hugepages available right away with a temporary systctl write
# This will be handled via krn args after reboot, so don't use `sysctl.present`
hugepages_sysctl_vm_nr_hugepages:
cmd.run:
- name: "sysctl vm.nr_hugepages={{ hugepages.count }}"
- unless: "sysctl vm.nr_hugepages | grep -qE '{{ hugepages.count }}'"

{%- endif %}

{%- endfor %}

Ładowanie…
Anuluj
Zapisz