Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
* [Cake] Dropping last_len from stats collection & display.
@ 2016-06-01 11:40 Kevin Darbyshire-Bryant
  2016-06-01 14:00 ` Jonathan Morton
  2016-06-01 15:05 ` moeller0
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Darbyshire-Bryant @ 2016-06-01 11:40 UTC (permalink / raw)
  To: cake

Gentlemen,

Two pull requests https://github.com/dtaht/sch_cake/pull/26  & 
https://github.com/dtaht/tc-adv/pull/11

These drop the collection of last packet's length for stats purposes.

I've not dropped maxlen as I have personally found that *incredibly* 
useful in working out what overheads linux has already accounted for on 
a variety of connections.  It is also a useful indicator of GSO/GRO 
activity.

Not updating another variable (memory write) for each packet may help 
cake's CPU usage a little.

Done in a backwards compatible way for tc.

Please ACK/NACK as you see fit.

Kevin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Cake] Dropping last_len from stats collection & display.
  2016-06-01 11:40 [Cake] Dropping last_len from stats collection & display Kevin Darbyshire-Bryant
@ 2016-06-01 14:00 ` Jonathan Morton
  2016-06-01 15:54   ` Kevin Darbyshire-Bryant
  2016-06-01 15:05 ` moeller0
  1 sibling, 1 reply; 4+ messages in thread
From: Jonathan Morton @ 2016-06-01 14:00 UTC (permalink / raw)
  To: Kevin Darbyshire-Bryant; +Cc: cake


> On 1 Jun, 2016, at 14:40, Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> wrote:
> 
> Not updating another variable (memory write) for each packet may help cake's CPU usage a little.

I’ll think about this one.

I don’t think it should gate the LEDE merge (nor should it require a stats version bump), since as long as the entry remains in the stats struct, it will simply remain zero if not written.

In future the space could be reused, in which case a version bump would be appropriate.

 - Jonathan Morton


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Cake] Dropping last_len from stats collection & display.
  2016-06-01 11:40 [Cake] Dropping last_len from stats collection & display Kevin Darbyshire-Bryant
  2016-06-01 14:00 ` Jonathan Morton
@ 2016-06-01 15:05 ` moeller0
  1 sibling, 0 replies; 4+ messages in thread
From: moeller0 @ 2016-06-01 15:05 UTC (permalink / raw)
  To: Kevin Darbyshire-Bryant; +Cc: cake

Hi Kevin,


> On Jun 1, 2016, at 13:40 , Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> wrote:
> 
> Gentlemen,
> 
> Two pull requests https://github.com/dtaht/sch_cake/pull/26  & https://github.com/dtaht/tc-adv/pull/11
> 
> These drop the collection of last packet's length for stats purposes.
> 
> I've not dropped maxlen as I have personally found that *incredibly* useful in working out what overheads linux has already accounted for on a variety of connections.  It is also a useful indicator of GSO/GRO activity.

	I fully concur overhead deduction is hard any piece of information can help, also I note that fq_codel reports the same and I believe we all agree that Eric Dumazet knows what he is doing ;)

Best Regards
	Sebastian

> 
> Not updating another variable (memory write) for each packet may help cake's CPU usage a little.
> 
> Done in a backwards compatible way for tc.
> 
> Please ACK/NACK as you see fit.
> 
> Kevin
> _______________________________________________
> Cake mailing list
> Cake@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Cake] Dropping last_len from stats collection & display.
  2016-06-01 14:00 ` Jonathan Morton
@ 2016-06-01 15:54   ` Kevin Darbyshire-Bryant
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Darbyshire-Bryant @ 2016-06-01 15:54 UTC (permalink / raw)
  To: Jonathan Morton; +Cc: cake



On 01/06/16 15:00, Jonathan Morton wrote:
>
>> On 1 Jun, 2016, at 14:40, Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> wrote:
>>
>> Not updating another variable (memory write) for each packet may help cake's CPU usage a little.
>
> I’ll think about this one.
>
> I don’t think it should gate the LEDE merge (nor should it require a stats version bump), since as long as the entry remains in the stats struct, it will simply remain zero if not written.
>
> In future the space could be reused, in which case a version bump would be appropriate.
>
>   - Jonathan Morton
>

Two points/suggestions/alternate perspectives:

Not bumping the version leads to a situation where tc constantly reports 
the last length as zero.  I would suggest that looks 
odd/oversight/wrong.  A version bump at least allows a later tc to know 
not to output a dead value.


I can see your point with regard to the structure size, how about 
re-adding as

u32 __attribute__((used)) last_skblen;  /* V3 and below */

to stop the unused variable warning that would otherwise result.

The other argument I keep having with myself is "none of this has been 
released...yet".  Aren't we still free to break this as we see fit :-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-01 15:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-01 11:40 [Cake] Dropping last_len from stats collection & display Kevin Darbyshire-Bryant
2016-06-01 14:00 ` Jonathan Morton
2016-06-01 15:54   ` Kevin Darbyshire-Bryant
2016-06-01 15:05 ` moeller0

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox