lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <688ac6e7-dd6d-d0ff-ee37-a0e2a0ea761c@gmail.com>
Date:   Wed, 25 Apr 2018 12:02:37 -0700
From:   Eric Dumazet <eric.dumazet@...il.com>
To:     Toke Høiland-Jørgensen <toke@...e.dk>,
        Eric Dumazet <eric.dumazet@...il.com>,
        Jonathan Morton <chromatix99@...il.com>
Cc:     netdev@...r.kernel.org, cake@...ts.bufferbloat.net
Subject: Re: [Cake] [PATCH net-next v3] Add Common Applications Kept Enhanced
 (cake) qdisc



On 04/25/2018 11:34 AM, Toke Høiland-Jørgensen wrote:
> Eric Dumazet <eric.dumazet@...il.com> writes:
> 
>> On 04/25/2018 09:52 AM, Jonathan Morton wrote:
>>>> We can see here the high cost of forcing software GSO :/
>>>>
>>>> Really, this should be done only :
>>>> 1) If requested by the admin ( tc .... gso ....)
>>>>
>>>> 2) If packet size is above a threshold.
>>>>  The threshold could be set by the admin, and/or based on a fraction of the bandwidth parameter.
>>>>
>>>> I totally understand why you prefer to segment yourself for < 100 Mbit links.
>>>>
>>>> But this makes no sense on 10Gbit+
>>>
>>> It is absolutely necessary, so far as I can see, to segment GSO
>>> superpackets when overhead compensation is selected - as it very
>>> often should be, even on pure Ethernet links. Without that, the
>>> calculation of link occupancy time will be wrong. (The actual
>>> transmission time of an Ethernet frame is rather more than just 14
>>> bytes longer than the underlying IP packet.)
>>
>> Just fix the overhead compensation computation in the code.
>>
>> skb in a qdisc have everything you need.
>>
>> qdisc_pkt_len_init() has initialized qdisc_skb_cb(skb)->pkt_len with
>> the exact bytes on the wire, and you have gso_segs to perform any
>> adjustement you need to do.
> 
> The problem is that may not be the right values. For example, in many
> CPEs there's a built-in switch that strips VLAN tags before the packet
> actually hits the wire. So we do need to be able to get the actual
> packet size. Is it possible to get the sizes of the individual segments
> of a GSO packet? That way we could do the calculation for the whole
> super-packet...

All segments of  GSO packets have the same size, by definition.

Only the last segment might be smaller, and again this can be inferred from gso_size and gso_segs



> 
>> Do not kill GSO only because you do not want to deal with it.
> 
> It's not (just) that we don't want to deal with it, it is also a very
> aggressive optimisation for latency, which makes a lot of sense at
> residential internet bandwidths.
> 

If you keep saying this old urban legend, I will NACK your patch.

I am tired of people pretending GSO/TSO are bad for latencies.

This is not true, quite the opposite, when done well.

If you find issues, please share so that we can fix them.
Trying to hide them is not what we want for fresh code.



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ