How do I modify txqueuelen of my network interface card (NIC)?
How do I modify txqueuelen of my network interface card (NIC)?
https://access.redhat.com/solutions/6381
Solution Verified - Updated August 7 2024 at 7:23 AM - English Environment Red Hat Enterprise Linux 7 Red Hat Enterprise Linux 6 Red Hat Enterprise Linux 5 Network interface Issue How do I modify txqueuelen of my network interface card (NIC) Resolution The network interface property txqueuelen is the length of the transmit queue (qdisc) of the device.
It may be useful to set this to small values for slower devices with a high latency, or to large values where devices are dropping packets at their transmit queues.
The queue length can be set using the ip command, like so:
Raw /sbin/ip link set dev eth0 txqueuelen 2000 The change can be confirmed like so:
Raw ip link show eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 2000 ^^^^^^^^^^ txqueuelen To make this change persistent across reboots, you can write /sbin/ifup-local as described at:
How do I run a script or program immediately after my network interface goes up? For example, /sbin/ifup-local could contain:
Raw #!/bin/bash if [ “$1” == “eth0” ]; then /sbin/ip link set dev “$1” txqueuelen 2000 fi Changing txqueuelen on a bonding device is discussed at:
How to set the ‘txqueuelen’ parameter for bond interfaces? Product(s) Red Hat Enterprise LinuxComponent initscripts kernelCategory Learn moreTags init network networking This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Was this helpful?
People who viewed this solution also viewed Why network interface card (NIC) is not detected in the system ? Solution - 6 Aug 2024 How do I determine which network interface card (NIC) Sendmail is running on? Article - 16 Sept 2012 Loopback txqueuelen Discussion - 19 Dec 2019 Get notified when this content is updated Comments Newbie Add your comment: Add comment Send notifications to content followers Submit Newbie 7 points Dec 19, 2023 3:49 AM Christopher Daniel says: What about for rhel8?
Reply