On Sun, Sep 30, 2018 at 10:20:06AM +0300, Ciprian Dorin Craciun wrote:
> On Sun, Sep 30, 2018 at 10:06 AM Mathias Weiersmüller
> <[email protected]> wrote:
> > I am pretty sure you have TCP segmentation offload enabled. The TCP/IP
> > stack therefore sends bigger-than-allowed TCP segments towards the NIC who
> > in turn takes care about the proper segmentation.
> 
> I was just trying to replicate the issue I've seen yesterday, and for
> a moment (in initial tests) I was able to.  However on repeated tests
> it seems that the `tune.rcvbuf.*` (and related) have no impact, as I
> constantly see TCP fragments (around 2842 bytes Ethernet frames).

Note that these are not fragments but segments. And as Matti suggested,
it's indeed due to GSO, you're seeing two TCP frames sent at once through
the stack, and they will be segmented by the NIC.

> > You want to check the output of "ethtool -k eth0" and the values of:
> > tcp-segmentation-offload
> > generic-segmentation-offload
> 
> The output of `ethtool -k eth0` is bellow:
> ~~~~
> tcp-segmentation-offload: on
>         tx-tcp-segmentation: on
>         tx-tcp-ecn-segmentation: on
>         tx-tcp-mangleid-segmentation: off
>         tx-tcp6-segmentation: on
> generic-segmentation-offload: on
> ~~~~

Indeed.

Willy

Reply via email to