[PVE-User] Network optimization: ethtool and jumbo frames...

Marco Gaiarin gaio at sv.lnf.it
Wed May 18 11:46:41 CEST 2016


Mandi! Alwin Antreich
  In chel di` si favelave...

>         # activate jumbo frames
>         post-up ip link set dev eth0 mtu 9000 && ip link set dev eth0.6 mtu 9000
>         post-up ip link set dev eth2 mtu 9000 && ip link set dev eth2.6 mtu 9000
>         post-up ip link set dev bond0 mtu 9000

Finally i've simply added manually to /etc/network/interfaces 'mtu 9000' to all
related interfaces (phisical, bond, bridge) and now Jumbo Frames works
as expected:

 root at tessier:~# ping -I vmbr2 -s 8500 -M do 10.5.252.1
 PING 10.5.252.1 (10.5.252.1) from 10.5.252.8 vmbr2: 8500(8528) bytes of data.
 8508 bytes from 10.5.252.1: icmp_seq=1 ttl=64 time=0.712 ms
 8508 bytes from 10.5.252.1: icmp_seq=2 ttl=64 time=0.770 ms
 8508 bytes from 10.5.252.1: icmp_seq=3 ttl=64 time=0.722 ms
 8508 bytes from 10.5.252.1: icmp_seq=4 ttl=64 time=0.772 ms
 ^C
 --- 10.5.252.1 ping statistics ---
 4 packets transmitted, 4 received, 0% packet loss, time 2999ms
 rtt min/avg/max/mdev = 0.712/0.744/0.772/0.027 ms
 root at tessier:~# ping -I vmbr1 -s 8500 -M do 10.5.251.1
 PING 10.5.251.1 (10.5.251.1) from 10.5.251.8 vmbr1: 8500(8528) bytes of data.
 8508 bytes from 10.5.251.1: icmp_seq=1 ttl=64 time=0.783 ms
 8508 bytes from 10.5.251.1: icmp_seq=2 ttl=64 time=0.782 ms
 8508 bytes from 10.5.251.1: icmp_seq=3 ttl=64 time=0.778 ms
 8508 bytes from 10.5.251.1: icmp_seq=4 ttl=64 time=0.781 ms
 ^C
 --- 10.5.251.1 ping statistics ---
 4 packets transmitted, 4 received, 0% packet loss, time 2999ms
 rtt min/avg/max/mdev = 0.778/0.781/0.783/0.002 ms

while does not work for non-jumbo interface, as expected:

 root at tessier:~# ping -I vmbr0 -s 8500 -M do 10.5.1.3
 PING 10.5.1.3 (10.5.1.3) from 10.5.1.8 vmbr0: 8500(8528) bytes of data.
 ping: local error: Message too long, mtu=1500
 ping: local error: Message too long, mtu=1500
 ^C
 --- 10.5.1.3 ping statistics ---
 2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1007ms


Good, thanks to all!


Still no hint on further optimization via ethernet parameters
manipulation, eg via ethtool?

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
    http://www.lanostrafamiglia.it/25/index.php/component/k2/item/123
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the pve-user mailing list