Skip to contentSkip to conversation

Limits on mtu size ?

DISCUSSION Hans de Bruin 2 participants 3 messages Oct 7, 2011 – Oct 8, 2011

lore
Share & tools
lore
#0 lore raw

Network performance on fast physical networks usually increase by switching to larger packet sizes. So I decided to increase the mtu on my virtual networks to see if that has a positive effect. Anoyingly the bridge code does not allow you to increase the mtu above 1500 if no interface is attached to the bridge. Google tels me admins attach a nic to the bridge, increase the mtu and then remove the nic from the bridge as a work around. Then I noticed that the loopback has a whopping 16k mtu. For some reason adding lo to a bridge is not allowed. To shortcut workarounds and have fun with the mtu size I modified linux-2.6/net/bridge/br_if.c. There is a line: mtu = ETH_DATA_LEN; which I changed in to mtu = 16436; If lo can handle that size why not a bridge. So my setup now has two brides with oversized mtu's and one normal sized bidge to talk to my lan. This setup has run for two day's and now it suddenly broke while ssh/rsync-ing data between the to internal networks. A server called darkstar ran out of memory, as far as i can see with an empty swapfile, a server called orion, which was reseaving the data, stopped responding. Dom0 feels sluggish. So 16436 is to big and 9000 is not?

I have attached the complaints of darkstar. Its running out of kernel memory?

Signature · 9 lines
Hans

orion: 2 cpu, 1GB
darkstar: 2 cpu 512MB
...
dom0: 1 cpu's (dual core dual threaded), 1GB
kernels 3.1-rc7 and higher
xen 4.1.1
al pure pv.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 3 lines

Network performance on fast physical networks usually increase by switching to larger packet sizes. So I decided to increase the mtu on

my

Quoted 1 line

virtual networks to see if that has a positive effect. Anoyingly the

bridge code

Quoted 1 line

does not allow you to increase the mtu above 1500 if no interface is

attached

Quoted 1 line

to the bridge. Google tels me admins attach a nic to the bridge,

increase the

Quoted 2 lines

mtu and then remove the nic from the bridge as a work around. Then I noticed that the loopback has a whopping 16k mtu. For some reason

adding

Quoted 1 line

lo to a bridge is not allowed. To shortcut workarounds and have fun

with the

Quoted 1 line

mtu size I modified linux-2.6/net/bridge/br_if.c. There is a line: mtu

=

Quoted 1 line

ETH_DATA_LEN; which I changed in to mtu = 16436; If lo can handle that

size

Quoted 1 line

why not a bridge. So my setup now has two brides with oversized mtu's

and

Quoted 1 line

one normal sized bidge to talk to my lan. This setup has run for two

day's and

Quoted 2 lines

now it suddenly broke while ssh/rsync-ing data between the to internal networks. A server called darkstar ran out of memory, as far as i can

see with

Quoted 1 line

an empty swapfile, a server called orion, which was reseaving the

data,

Quoted 1 line

stopped responding. Dom0 feels sluggish. So 16436 is to big and 9000

is not?

Quoted 4 lines

I have attached the complaints of darkstar. Its running out of kernel memory?

If all the hosts are Linux and GSO is enabled, the machines should be exchanging 64K packets anyway, regardless of MTU.

James

#2 lore raw
Quoted 3 lines · James Harper
Quoted 3 lines

Network performance on fast physical networks usually increase by switching to larger packet sizes. So I decided to increase the mtu on

...

Quoted 1 line

Dom0 feels sluggish.

This was a wrong dns setting.

So 16436 is to big and 9000

Quoted 9 lines

is not?

Quoted 4 lines

I have attached the complaints of darkstar. Its running out of kernel memory?

If all the hosts are Linux and GSO is enabled, the machines should be exchanging 64K packets anyway, regardless of MTU.

I should have read this http://lwn.net/Articles/188489/

Signature · 1 line
Hans