From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id A451B3B2A4 for ; Tue, 9 Jan 2024 10:40:08 -0500 (EST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8F1C65C058D; Tue, 9 Jan 2024 10:40:08 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 09 Jan 2024 10:40:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lochnair.net; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1704814808; x=1704901208; bh=1rZgoBNrIb wv7U14lryJqOgsPTC+C9MGwMC7o80Phfw=; b=DRj+hRiqicqLyvBS/qu5Kxyjab xz9w6C+tiLkqIKbkhtPnM/qiaYbiZhNp376o+qkS8m9F/sO09a7es9//YQWKm0DH BERmqqDakyeFV/cooO3QXM/58CQeB1L47SMwfEmDcoyVkp3R5s8Gdz7j5yPjGNDT 1/uDV9eh5nHOut/b06kGooVjV24Qh1XyhuDTdQ77ugIOc+rGoWoZ2kx5mm9awyx8 VDJDXsqbjVn6TbXTOczRrT/PUuormkDiD8y80/gBOQ9fzsGulJxtr72wMgxDLWsc 9Oy3PBOKzribos9RydNVUcBWOvTgYOtTxN6wnqn/U8ALndtmUEzFGSqbyw2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704814808; x=1704901208; bh=1rZgoBNrIbwv7U14lryJqOgsPTC+ C9MGwMC7o80Phfw=; b=Th2S26INLU1yiCtGzyqXz2vSmMQOtz2VKCTR+bn7TDF7 MuTIVvsI7ZPooZ6Sy1r71+qsmUv0uBhm5a0nR1p720fDH61doJHV4oPeXe+rhfAX qDqqi5VcQq15r1wy8rw4kf4vTN9pTzuPkjipwIgFDTcvddIFBu/xwdSYCqryDd1k 60tCBM+OzuCnyDlVGEDheeLUvHtzR/Ku402s64uwZ+7s+mv5SbE23O3dF8gBVBSp KjW36xFZyLZdemAoZYW4RaRKtg7PLn2jorXhG2sEkpb9oypq1ExHH0D4fq4MbNG6 WVzi/FaY3CMHeL0NE4xIbfZ4K/33DM6JOPiD2U36Jw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehledgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffktgggufffjgevvfhfofesrgdtmherhhdtjeenucfhrhhomheppfhilhhs ucetnhgurhgvrghsucfuvhgvvgcuoehmvgeslhhotghhnhgrihhrrdhnvghtqeenucggtf frrghtthgvrhhnpedujefgvdfhveejueevueeifedvudekiedttdfhhfejhffgueeukeet tefgtddtudenucffohhmrghinhepuhhirdgtohhmpdgsuhhffhgvrhgslhhorghtrdhnvg htnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgv sehlohgthhhnrghirhdrnhgvth X-ME-Proxy: Feedback-ID: id883430e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 9 Jan 2024 10:40:07 -0500 (EST) From: Nils Andreas Svee Message-Id: <65325791-A1D1-4E21-9F1D-D17737BCFF0F@lochnair.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_56F9B135-64E1-4E24-9772-44C4739FFBAB" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Date: Tue, 9 Jan 2024 16:39:55 +0100 In-Reply-To: Cc: dave seddon , CAKE list To: Pete Heist References: X-Mailer: Apple Mail (2.3774.300.61.1.2) Subject: Re: [Cake] Ubiquity (Unifi ) Smart Queues X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2024 15:40:08 -0000 --Apple-Mail=_56F9B135-64E1-4E24-9772-44C4739FFBAB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 You=E2=80=99re unlikely to do any real harm though, but the warning is = there cause you can potentially soft brick your router using it. I=E2=80=99= ve run into that myself if I remember correctly, where after a firmware = upgrade the kernel had slightly changed, so loading the sch_cake module = caused it to panic. And I had it start through = /config/scripts/post-config.d of course, so it would happen on every = restart. Nothing a factory reset won=E2=80=99t solve, but annoying when if = you=E2=80=99re messing about remotely :) As for USG, I think I used to have some binaries for those too. I do = still have some old kernel sources for them laying around in a repo. It=E2=80=99s been awhile, but I probably stopped building for those as = it wasn=E2=80=99t as straightforward to keep up with the versions of the = firmware. Though frankly, I don=E2=80=99t plan on updating the sch_cake and tc = binaries when new firmwares are released anymore, as they don=E2=80=99t = publish the GPL archives on their webpage after the redesign, and they = don=E2=80=99t respond to requests for them either by the looks of the = forums. So if it breaks there=E2=80=99s not much I can do anymore. Best Regards, Nils Andreas Svee > On Jan 3, 2024, at 14:44, Pete Heist via Cake = wrote: >=20 > On Tue, 2024-01-02 at 10:59 -0800, dave seddon via Cake wrote: >> I thought people might be interested to see what Ubiquity/Unifi is >> doing with "Smart Queues" on their devices. The documentation on >> their website is not very informative. >> >> "Smart Queue" Implementation >>=20 >> Looks like they only apply tc qdiscs to the Eth2, and sadly this is >> NOT cake, but fq_codel. >>=20 >> And cake isn't available :( >>=20 >> root@USG-Pro-4:~# tc qdisc replace dev eth0 cake bandwidth 100m rtt >> 20ms >> Unknown qdisc "cake", hence option "bandwidth" is unparsable >=20 > Hi Dave, there's a community contributed version of Cake for = EdgeRouter > devices that I've been using for years on production ER-X's: >=20 > = https://community.ui.com/questions/Cake-compiled-for-the-EdgeRouter-device= s/fc1ff27c-f321-4344-8737-fcc755cae8a2 >=20 > I don't think that works for UniFi/USG devices, however, and one = should > note the disclaimer and be careful when installing it. Also, it must = be > re-installed after every upgrade. >=20 > Cheers, > Pete >=20 > _______________________________________________ > Cake mailing list > Cake@lists.bufferbloat.net > https://lists.bufferbloat.net/listinfo/cake --Apple-Mail=_56F9B135-64E1-4E24-9772-44C4739FFBAB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
You=E2=80=99= re unlikely to do any real harm though, but the warning is there cause = you can potentially soft brick your router using it. I=E2=80=99ve run = into that myself if I remember correctly, where after a firmware upgrade = the kernel had slightly changed, so loading the sch_cake module caused = it to panic. And I had it start through /config/scripts/post-config.d of = course, so it would happen on every = restart.

Nothing a factory reset won=E2=80=99t = solve, but annoying when if you=E2=80=99re messing about remotely = :)

As for USG, I think I used to have some = binaries for those too. I do still have some old kernel sources for them = laying around in a repo.
It=E2=80=99s been awhile, but I = probably stopped building for those as it wasn=E2=80=99t as = straightforward to keep up with the versions of the = firmware.

Though frankly, I don=E2=80=99t plan = on updating the sch_cake and tc binaries when new firmwares are released = anymore, as they don=E2=80=99t publish the GPL archives on their webpage = after the redesign, and they don=E2=80=99t respond to requests for them = either by the looks of the forums. So if it breaks there=E2=80=99s not = much I can do anymore.

=
Best Regards,
Nils Andreas Svee

On Jan 3, 2024, at 14:44, Pete = Heist via Cake <cake@lists.bufferbloat.net> wrote:

On Tue, 2024-01-02 at = 10:59 -0800, dave seddon via Cake wrote:
I = thought people might be interested to see what Ubiquity/Unifi = is
doing with "Smart Queues" on their devices.  The = documentation on
their website is not very = informative.
<snip>
"Smart Queue" = Implementation

Looks like they only apply tc qdiscs to the Eth2, = and sadly this is
NOT cake, but fq_codel.

And cake isn't = available :(

root@USG-Pro-4:~# tc qdisc replace dev eth0 cake = bandwidth 100m rtt
20ms
Unknown qdisc "cake", hence option = "bandwidth" is unparsable

Hi Dave, there's a = community contributed version of Cake for EdgeRouter
devices that = I've been using for years on production = ER-X's:

https://community.ui.com/questions/Cake-compiled-for-the-Ed= geRouter-devices/fc1ff27c-f321-4344-8737-fcc755cae8a2

I don't = think that works for UniFi/USG devices, however, and one should
note = the disclaimer and be careful when installing it. Also, it must = be
re-installed after every = upgrade.

Cheers,
Pete

___________________________________= ____________
Cake mailing = list
Cake@lists.bufferbloat.net
https://lists.bufferbloat.net/listin= fo/cake

= --Apple-Mail=_56F9B135-64E1-4E24-9772-44C4739FFBAB--