Adding Byte Queue Limits: debian kernel build recipe?

32 views
Skip to first unread message

Dave Taht

unread,
Jun 10, 2014, 8:41:02 PM6/10/14
to beagl...@googlegroups.com
I have generally been delightedly following the Robert Nelson's debian kernel builds.

https://rcn-ee.net/deb/wheezy-armhf

and the day came where I wanted to try out a tiny patch adding BQL support to the beaglebone black. There is something of a huge gap between the available and largely conflicting data on the internet as to how to build a kernel properly and the lovely debs he provides.

It's a really tiny patch, (5 lines). My hope would be to see network latency on the beaglebone improve dramatically with it and fq_codel.

http://snapon.lab.bufferbloat.net/~d/0001-Add-BQL-support-to-cpsw-beaglebone-driver.patch

But assembling all the pieces to actually build a kernel the right way elude me. Right now I'm trying to cross compile using an armeabihf toolchain, and not having figured out how to create a .deb file to use...
link to how to cross compile a .deb kernel build??

OR:

... if there's someone out there daring enough to try something that might help networking, but might also lock up the networking interface in this first test, AND can patch and build a working kernel... I'd love to see this patch tried.

A bit about BQL:

http://lwn.net/Articles/454390/




John Syn

unread,
Jun 10, 2014, 9:30:04 PM6/10/14
to beagl...@googlegroups.com

From: Dave Taht <dave...@gmail.com>
Reply-To: <beagl...@googlegroups.com>
Date: Tuesday, June 10, 2014 at 5:41 PM
To: <beagl...@googlegroups.com>
Subject: [beagleboard] Adding Byte Queue Limits: debian kernel build recipe?

I have generally been delightedly following the Robert Nelson's debian kernel builds.

https://rcn-ee.net/deb/wheezy-armhf

and the day came where I wanted to try out a tiny patch adding BQL support to the beaglebone black. There is something of a huge gap between the available and largely conflicting data on the internet as to how to build a kernel properly and the lovely debs he provides.

It's a really tiny patch, (5 lines). My hope would be to see network latency on the beaglebone improve dramatically with it and fq_codel.

http://snapon.lab.bufferbloat.net/~d/0001-Add-BQL-support-to-cpsw-beaglebone-driver.patch

But assembling all the pieces to actually build a kernel the right way elude me. Right now I'm trying to cross compile using an armeabihf toolchain, and not having figured out how to create a .deb file to use...
link to how to cross compile a .deb kernel build??

Build the kernel as shown and then add your patch (either add it to the /KERNEL directly or add it as a new patch in /patches and update patch.sh). 

tools/rebuild_deb.sh

Regards,
John


OR:

... if there's someone out there daring enough to try something that might help networking, but might also lock up the networking interface in this first test, AND can patch and build a working kernel... I'd love to see this patch tried.

A bit about BQL:

http://lwn.net/Articles/454390/




--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dave Taht

unread,
Jun 11, 2014, 12:46:47 AM6/11/14
to beagl...@googlegroups.com
Thank you! with that recipe I was able to build a 3.15 kernel with
a minimum of twiddling, and prove that that patch was buggy
a few minutes later (crashes in cpsw_tx_handler). :(

What I'm observing is 32+ms worth of queueing in the ethernet driver
under load, at 100mbit, which can easily be cut to 2ms or less with BQL.

>
> OR:
>
> ... if there's someone out there daring enough to try something that might
> help networking, but might also lock up the networking interface in this
> first test, AND can patch and build a working kernel... I'd love to see this
> patch tried.
>
> A bit about BQL:
>
> http://lwn.net/Articles/454390/
>
>
>
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/hKeVYvnOt5E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
--
Dave Täht

NSFW: https://w2.eff.org/Censorship/Internet_censorship_bills/russell_0296_indecent.article

Dave Taht

unread,
Jun 11, 2014, 5:09:02 PM6/11/14
to beagl...@googlegroups.com
And this morning, managed to get the patch to work correctly.
Reply all
Reply to author
Forward
0 new messages