我要评分
获取效率
正确性
完整性
易理解

Adjusting Interrupt Aggregation Parameters

Principles

Interrupt aggregation allows a NIC to be interrupted some time after receiving the packet and when the NIC receives more packets. This allows more packets to be processed, reducing costs.

Modification Method

Run the ethtool -C $eth command to adjust the interrupt aggregation parameters. In the preceding command, $eth indicates the name of the NIC whose configuration is to be modified, for example, eth0 and eth1.

1
ethtool -C eth3 adaptive-rx off adaptive-tx off rx-usecs N rx-frames N tx-usecs N tx-frames N

To ensure that static values are used, disable Adaptive RX and Adaptive TX.

  • rx-usecs: indicates the delay for receiving interrupts.
  • tx-usecs: indicates the delay in transmitting interrupts.
  • rx-frames: indicates the number of data packets received before an interrupt is generated.
  • tx-frames: indicates the number of data packets transmitted before an interrupt is generated.

    The larger the value of N, the less the interrupts.

If the aggregation degree is increased, the delay of a single data packet increases by microseconds.