#Agree with Intel license termslegal.intel_ipw.license_ack=1legal.intel_iwi.license_ack=1#Check for interface specific settings and add accordingly.# These ae tunables to improve network performance on Intel igb driver NICs# Flow Control (FC) 0=Disabled 1=Rx Pause 2=Tx Pause 3=Full FC# This tunable must be set according to your configuration. VERY IMPORTANT!# Set FC to 0 (<x>) on all interfaceshw.igb.0.fc=0 #Also put this in System Tunables hw.igb.<x>.fc: value=0hw.igb.1.fc=0hw.igb.2.fc=0hw.igb.3.fc=0hw.igb.4.fc=0hw.igb.5.fc=0hw.igb.6.fc=0# Set number of queues to number of cores divided by number of ports. 0 lets FreeBSD decidehw.igb.num_queues=0# Increase packet descriptors (set as 1024,2048, or 4096) ONLY!# Allows a larger number of packets to be processed.# Use "netstat -ihw 1" in the shell and make sure the idrops are zero# If the NIC has constant disconnects, lower this value# if not zero then lower this value.hw.igb.rxd="4096" # For i340/i350 use 2048hw.igb.txd="4096" # For i340/i350 use 2048net.link.ifqmaxlen="8192" # value here equal sum of above values. For i340/i350 use 4096# Increase Network efficiencyhw.igb.enable_aim=1# Increase interuppt ratehw.igb.max_interrupt_rate="64000"# Network memory buffers# run "netstat -m" in the shell and if the 'mbufs denied' and 'mbufs delayed' are 0/0/0 then this is not needed# if not zero then keep adding 400000 until mbufs are zerokern.ipc.nmbclusters="1000000"# Fast interrupt handling# Normally set by default. Use these settings to insure it is on.# Allows NIC to process packets as fast as they are receivedhw.igb.enable_msix=1hw.pci.enable_msix=1# Unlimited packet processing# Use this only if you are sure that the NICs have dedicated IRQs# View the IRQ assignments by executing this in the shell "vmstat -i"# A value of "-1" means unlimited packet processinghw.igb.rx_process_limit="-1"hw.igb.tx_process_limit="-1"
https://forum.peplink.com/t/how-to-determine-the-optimal-mtu-and-mss-size/7895