Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
* [Cake] kernel performance analysis in openwrt
@ 2015-10-30 12:26 Dave Taht
  2015-10-30 12:30 ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 8+ messages in thread
From: Dave Taht @ 2015-10-30 12:26 UTC (permalink / raw)
  To: cake, Felix Fietkau, Jesper Dangaard Brouer

So we are having issues with long term forwarding throughput in cake?
or just cake on low end processors? Am confused. ?

my original rrul tests of cake were at 100 mbit down/20 up, which is
what comcast had upgraded me to.  It worked where the fq_codel based
system had not.

If we have limits at 50/50, well, that wasn't my tested scenario and
my observation is inbound rate limiting is more expensive than
outbound by about 2x. i keep hoping someone will poke into an
act_mirred replacement....

and ALL that said, performance on a system is a whole system issue -
you need to profile the whole thing, over time, to see where the
performance loss over a 5 minute run is coming from. My guess would be
memory fragmentation, but I am old enough to profile, always. You
could also be losing packets on the rx path... another bug entirely...
it could be space aliens...

and looking at the state of the codel algorithms is also important -
but being out of cpu does heisenbug things.

I used to use oprofile, but perf is all the rage.

Perf can be cross compiled for openwrt, (it is in the kernel tree, you
just need to go in there and tell it what compiler to use) however you
generally need to nfs mount the kernel and fs in order to get a
debuggable build.

Also, in the case of the archer, the unaligned access hacks are
uneeded, and you can actually compile for a later model cpu
architecture.

I learned an awful lot from jesper recently about how to use perf, but
then it all exited my head. Perhaps there is a good tutorial out
there? Or jesper can do a perf run with the current sch_cake codebase
on his gear? :puppy dog eyes:

Certainly once we are convinced the algorithms and implementations in
cake are correct, then it is time to profile, and profiling earlier
than that - like now - is good practice and may expose other issues
elsewhere in the system.

Jesper and I did take a look at it a few weeks back, and only found 3
hotspots (he probably has the data somewhere) - one of which was
unnecessarily computing the hash twice, which I think is fixed now.


Dave Täht
I just invested five years of my life to making wifi better. And,
now... the FCC wants to make my work, illegal for people to install.
https://www.gofundme.com/savewifi

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

* Re: [Cake] kernel performance analysis in openwrt
  2015-10-30 12:26 [Cake] kernel performance analysis in openwrt Dave Taht
@ 2015-10-30 12:30 ` Toke Høiland-Jørgensen
  2015-10-30 14:33   ` Jonathan Morton
  0 siblings, 1 reply; 8+ messages in thread
From: Toke Høiland-Jørgensen @ 2015-10-30 12:30 UTC (permalink / raw)
  To: Dave Taht; +Cc: cake, Jesper Dangaard Brouer, Felix Fietkau

Dave Taht <dave.taht@gmail.com> writes:

> So we are having issues with long term forwarding throughput in cake?
> or just cake on low end processors? Am confused. ?

No issues on x86 that I've noticed. The slowdown is on the Archer.

-Toke

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

* Re: [Cake] kernel performance analysis in openwrt
  2015-10-30 12:30 ` Toke Høiland-Jørgensen
@ 2015-10-30 14:33   ` Jonathan Morton
  2015-10-30 14:34     ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Morton @ 2015-10-30 14:33 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen
  Cc: cake, Felix Fietkau, Jesper Dangaard Brouer


> On 30 Oct, 2015, at 14:30, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
> 
> No issues on x86 that I've noticed. The slowdown is on the Archer.

That’s ARM based, isn’t it?  I have a theory if so.

 - Jonathan Morton


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

* Re: [Cake] kernel performance analysis in openwrt
  2015-10-30 14:33   ` Jonathan Morton
@ 2015-10-30 14:34     ` Toke Høiland-Jørgensen
  2015-10-30 14:36       ` Kevin Darbyshire-Bryant
  2015-10-30 14:38       ` Jonathan Morton
  0 siblings, 2 replies; 8+ messages in thread
From: Toke Høiland-Jørgensen @ 2015-10-30 14:34 UTC (permalink / raw)
  To: Jonathan Morton; +Cc: cake, Felix Fietkau, Jesper Dangaard Brouer

Jonathan Morton <chromatix99@gmail.com> writes:

>> On 30 Oct, 2015, at 14:30, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>> 
>> No issues on x86 that I've noticed. The slowdown is on the Archer.
>
> That’s ARM based, isn’t it?

Yup.

> I have a theory if so.

Do elaborate...? ;)

-Toke

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

* Re: [Cake] kernel performance analysis in openwrt
  2015-10-30 14:34     ` Toke Høiland-Jørgensen
@ 2015-10-30 14:36       ` Kevin Darbyshire-Bryant
  2015-10-30 14:43         ` Toke Høiland-Jørgensen
  2015-10-30 14:38       ` Jonathan Morton
  1 sibling, 1 reply; 8+ messages in thread
From: Kevin Darbyshire-Bryant @ 2015-10-30 14:36 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen
  Cc: cake, Jesper Dangaard Brouer, Felix Fietkau

[-- Attachment #1: Type: text/plain, Size: 721 bytes --]

No the archer c7 v2 is mips based



--
Cheers,

Kevin@Darbyshire-Bryant.me.uk
Sent from my phone, apologies for brevity, spelling & top posting

> On 30 Oct 2015, at 14:35, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
> 
> Jonathan Morton <chromatix99@gmail.com> writes:
> 
>>> On 30 Oct, 2015, at 14:30, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>>> 
>>> No issues on x86 that I've noticed. The slowdown is on the Archer.
>> 
>> That’s ARM based, isn’t it?
> 
> Yup.
> 
>> I have a theory if so.
> 
> Do elaborate...? ;)
> 
> -Toke
> _______________________________________________
> Cake mailing list
> Cake@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3062 bytes --]

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

* Re: [Cake] kernel performance analysis in openwrt
  2015-10-30 14:34     ` Toke Høiland-Jørgensen
  2015-10-30 14:36       ` Kevin Darbyshire-Bryant
@ 2015-10-30 14:38       ` Jonathan Morton
  2015-10-30 15:04         ` Toke Høiland-Jørgensen
  1 sibling, 1 reply; 8+ messages in thread
From: Jonathan Morton @ 2015-10-30 14:38 UTC (permalink / raw)
  To: Toke Høiland-Jørgensen
  Cc: cake, Felix Fietkau, Jesper Dangaard Brouer


> On 30 Oct, 2015, at 16:34, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
> 
> Jonathan Morton <chromatix99@gmail.com> writes:
> 
>>> On 30 Oct, 2015, at 14:30, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>>> 
>>> No issues on x86 that I've noticed. The slowdown is on the Archer.
>> 
>> That’s ARM based, isn’t it?
> 
> Yup.
> 
>> I have a theory if so.
> 
> Do elaborate...? ;)

Search for the following comment, and if(0) the block following it.  It includes a divide.

	/* incoming bandwidth capacity estimate */

 - Jonathan Morton


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

* Re: [Cake] kernel performance analysis in openwrt
  2015-10-30 14:36       ` Kevin Darbyshire-Bryant
@ 2015-10-30 14:43         ` Toke Høiland-Jørgensen
  0 siblings, 0 replies; 8+ messages in thread
From: Toke Høiland-Jørgensen @ 2015-10-30 14:43 UTC (permalink / raw)
  To: Kevin Darbyshire-Bryant; +Cc: cake, Jesper Dangaard Brouer, Felix Fietkau

Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> writes:

> No the archer c7 v2 is mips based

Yeah. That other thing that's not x86... arm, mips, tomato, tomahtoh...
*ahem*, my bad :P

-Toke

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

* Re: [Cake] kernel performance analysis in openwrt
  2015-10-30 14:38       ` Jonathan Morton
@ 2015-10-30 15:04         ` Toke Høiland-Jørgensen
  0 siblings, 0 replies; 8+ messages in thread
From: Toke Høiland-Jørgensen @ 2015-10-30 15:04 UTC (permalink / raw)
  To: Jonathan Morton; +Cc: cake, Felix Fietkau, Jesper Dangaard Brouer

Jonathan Morton <chromatix99@gmail.com> writes:

> Search for the following comment, and if(0) the block following it.  It includes a divide.
>
> 	/* incoming bandwidth capacity estimate */

Nope, doesn't help. But then, as Kevin said, it's mips not arm.

-Toke

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

end of thread, other threads:[~2015-10-30 15:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-30 12:26 [Cake] kernel performance analysis in openwrt Dave Taht
2015-10-30 12:30 ` Toke Høiland-Jørgensen
2015-10-30 14:33   ` Jonathan Morton
2015-10-30 14:34     ` Toke Høiland-Jørgensen
2015-10-30 14:36       ` Kevin Darbyshire-Bryant
2015-10-30 14:43         ` Toke Høiland-Jørgensen
2015-10-30 14:38       ` Jonathan Morton
2015-10-30 15:04         ` Toke Høiland-Jørgensen

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