10장. Tuning the device driver and NIC


In RHEL, kernel modules provide drivers for network interface controllers (NICs). These modules support parameters to tune and optimize the device driver and the NIC.

For example, if the driver supports delaying the generation of receive interrupts, you can reduce the value of the corresponding parameter to avoid running out of receive descriptors.

참고

Not all modules support custom parameters, and the features depend on the hardware, as well as the driver and firmware version.

10.1. Configuring custom NIC driver parameters

Many kernel modules support setting parameters to tune the driver and the network interface controller (NIC). You can customize the settings according to the hardware and the driver.

중요

If you set parameters on a kernel module, RHEL applies these settings to all devices that use this driver.

Prerequisites

  • A NIC is installed in the host.
  • The kernel module that provides the driver for the NIC supports the required tuning feature.
  • You are logged in locally or by using a network interface that is different from the one that uses the driver for which you want to change the parameters.

Procedure

  1. Identify the driver:

    # ethtool -i enp0s31f6
    driver: e1000e
    version: ...
    firmware-version: ...
    ...

    Note that certain features can require a specific driver and firmware version.

  2. Display the available parameters of the kernel module:

    # modinfo -p e1000e
    ...
    SmartPowerDownEnable:Enable PHY smart power down (array of int)
    parm:RxIntDelay:Receive Interrupt Delay (array of int)

    For further details on the parameters, see the kernel module’s documentation. For modules in RHEL, see the documentation in the /usr/share/doc/kernel-doc-<version>/Documentation/networking/device_drivers/ directory that is provided by the kernel-doc package.

  3. Create the /etc/modprobe.d/nic-parameters.conf file and specify the parameters for the module:

    options <module_name> <parameter1>=<value> <parameter2>=<value>

    For example, to enable the port power saving mechanism and set the generation of receive interrupts to 4 units, enter:

    options e1000e SmartPowerDownEnable=1 RxIntDelay=4
  4. Unload the module:

    # modprobe -r e1000e
    주의

    Unloading a module that an active network interface uses immediately terminates the connection and you can lock yourself out of the server.

  5. Load the module:

    # modprobe e1000e
  6. Reactivate the network connections:

    # nmcli connection up <profile_name>

Verification

  1. Display the kernel messages:

    # dmesg
    ...
    [35309.225765] e1000e 0000:00:1f.6: Transmit Interrupt Delay set to 16
    [35309.225769] e1000e 0000:00:1f.6: PHY Smart Power Down Enabled
    ...

    Note that not all modules log parameter settings to the kernel ring buffer.

  2. Certain kernel modules create files for each module parameter in the /sys/module/<driver>/parameters/ directory. Each of these files contain the current value of this parameter. You can display these files to verify a setting:

    # cat /sys/module/<driver_name>/parameters/<parameter_name>
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동