AMF Sysctl Tuning Parameters and Hyperthreading Enable

In case the total number of AMF peers exceed 500, the following recommended sysctl parameter values should be configured:

net.ipv4.neigh.default.gc_thresh1=4096
net.ipv4.neigh.default.gc_thresh2=8192
net.ipv4.neigh.default.gc_thresh3=8192
net.ipv6.neigh.default.gc_thresh1=4096
net.ipv6.neigh.default.gc_thresh2=8192
net.ipv6.neigh.default.gc_thresh3=8192
  1. Create a sysctl.yaml file and add the following contents:

    cat sysctl.yaml
    ---
    profiles:
      bios:
        name: cndp_default_settings
        description: "HyperThreading Enabled CIMC BIOS settings for CNDP"
        pids:
          ULTM-C220-M5SX-CM:
            description: "HyperThreading Enabled CIMC BIOS settings for ULTM-C220-M5SX-CM"
            tokens:
              cpuPerformance: hpc
              cpuEnergyPerformance: balanced-performance
              eppProfile: Performance
              intelHyperThreadingTech: enabled
              packageCstateLimit: C0 C1 State
              usbPortInternal: disabled
              usbPortKvm: enabled
              usbPortRear: disabled
              usbPortSdCard: disabled
      linux:
        name: sysctl_settings
        sysctl:
          net.ipv4.neigh.default.gc_thresh1: 4096
          net.ipv4.neigh.default.gc_thresh2: 8192
          net.ipv4.neigh.default.gc_thresh3: 8192
          net.ipv6.neigh.default.gc_thresh1: 4096
          net.ipv6.neigh.default.gc_thresh2: 8192
          net.ipv6.neigh.default.gc_thresh3: 8192
  2. Run the following commands:

    tar -czvf sysctl.tgz ./sysctl.yaml
    ./sysctl.yaml
    sha256sum sysctl.tgz
    d3496cd26cbd7a35b06581ad4af7cd507b89000a34f6531b990edc4a14326e26  sysctl.tgz
  3. Host sysctl.yaml file in any HTTP server accessible from the setup.

  4. Add the new host-profile in cluster deployer Ops Center configuration.

    Note

    Create a new host profile instance and link it to node. Do not update the existing one.

    config
     software host-profile sysctl
     url http://209.165.200.230:9080/sysctl.tgz
      allow-dev-image true
     sha256          42b64b2860826136079e8c7146086fce3e98fd8933ef837e1484f2682abdb38f
     exit
    commit
  5. Link the host profile in each of the nodes using the following in cluster deployer Ops Center:

    config
     clusters <cluster-name> nodes <node-name> host-profile sysctl
     clusters <cluster-name> nodes <node-name> os tuned enabled
    commit
  6. After cluster sync is complete, verify whether the changes are complete on each server.

    sysctl -a | grep -i net.ipv6.neigh.default.gc_thresh
    
    net.ipv6.neigh.default.gc_thresh1 = 4096
    net.ipv6.neigh.default.gc_thresh2 = 8192
    net.ipv6.neigh.default.gc_thresh3 = 8192
    sysctl -a | grep -i net.ipv4.neigh.default.gc_thresh
    
    net.ipv4.neigh.default.gc_thresh1 = 4096
    net.ipv4.neigh.default.gc_thresh2 = 8192
    net.ipv4.neigh.default.gc_thresh3 = 8192
    lscpu | grep Thread
    Thread(s) per core: 2