From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id AB4AD3B29E for ; Thu, 7 Mar 2019 13:05:35 -0500 (EST) Received: by mail-wm1-x334.google.com with SMTP id n19so10167605wmi.1 for ; Thu, 07 Mar 2019 10:05:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heistp.net; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Q4avZW7wJ2yWccizHec9cPh1kgpQgmgaXHkzjWKpdnw=; b=NU4Wr1lD1+7FIAJluOCgQ44LNfsTfbDdx2IRe36oEYuXg6iyaFrhF4PsnoF7Qd/D4Q nDyD8O8WpUR5ltBiBxrVAqpICzr7+xT408PSmnY5qA1YvKg1/xoKYDM+v4dtZc6HK9mG KdmOmONnq4kKIqnWeVuB4YW5eEFiWHKjlFrTn9sZFWH4bJdIWyyBKlnisud0x52+1Xs8 hZ0x0T6nJC9pSesmpyyEE2Xbi9Ykuvp1sZzXnbt2W6/6mu2+Ev0AbAqU4ukRWT11K56e 7drVnWMFjRaJ4lPRAGf7gxf1ngGWhM9THYbM5AT4sMv2s8LzruHz97OBggvjqttQGVDj M4rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Q4avZW7wJ2yWccizHec9cPh1kgpQgmgaXHkzjWKpdnw=; b=Amk+iqayMxObJT/X+QoP6DpzCVG1TLlqkEOmVu/aW80HQG1V4S1cLy38KUoyc/q4Z0 daF6fv+Lou9xfx3MErknaVN2dseVjK+R+ZuJJ8NliPZOq1ys4t/DARBZ5wo8wM83ryJL Yjyn+b+CSjLFMaSaz7jDHbmkUaKIedMWGuirzuj+3cNbX6R4VWMviIx4xQWY6aLkNW+S xcaqzSaC97j5WUW7GfQ5ZCSLBLbRWPhexP2ldCIvfl9b7vFA8YNTpChdXRVNTKu4TUAt EqtU+QvQfE2RDZiVki83MEPQddZQeYqp+iGf07igMS6EACzVuum5Ke4zakKEwxZZtJR/ feEw== X-Gm-Message-State: APjAAAVlL6sWd9yM2Orf350+ArRgUfwiydQY+iDG0M7uSjE5433rFl81 wOpj1uEA73JqvqT/igMC0HSHwg== X-Google-Smtp-Source: APXvYqydNprPpHV3YuvR/ruF7l+OAlaac8+Uq9sZSkDFTH4rQOJNXgJ4ejCzeDKBGco7egNGp26nSg== X-Received: by 2002:a1c:6c0c:: with SMTP id h12mr6763405wmc.35.1551981934752; Thu, 07 Mar 2019 10:05:34 -0800 (PST) Received: from tron.luk.heistp.net (h-1169.lbcfree.net. [185.193.85.130]) by smtp.gmail.com with ESMTPSA id t14sm5587542wrr.49.2019.03.07.10.05.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2019 10:05:34 -0800 (PST) From: Pete Heist Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_00367AC5-314C-48BE-9EF2-4E9DFBE11A9F" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Date: Thu, 7 Mar 2019 19:05:32 +0100 In-Reply-To: Cc: =?utf-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen_via_Cake?= To: Martin Zaharinov References: <8736nz11mt.fsf@toke.dk> <87o96nyo1n.fsf@toke.dk> <87lg1r0xp0.fsf@toke.dk> <87h8cf0wt7.fsf@toke.dk> <87ef7j0vui.fsf@toke.dk> X-Mailer: Apple Mail (2.3445.9.1) Subject: Re: [Cake] Bug or not Cake + hfsc or Cake + Drr 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: Thu, 07 Mar 2019 18:05:35 -0000 --Apple-Mail=_00367AC5-314C-48BE-9EF2-4E9DFBE11A9F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 If it=E2=80=99s just straight cake under hfsc with a rate here=E2=80=99s = what I do (obviously replace 100mbit with your rate): tc qdisc add dev eth1 root handle 1: hfsc default 1 tc class add dev eth1 parent 1: classid 1:1 hfsc ls rate 100mbit ul rate = 100mbit tc qdisc add dev eth1 parent 1:1 cake Also, there were recent fixes to the Linux kernel and cake regarding GSO = splitting. You may find with hfsc on older kernels that you have to use = =E2=80=9Ccake no-split-gso=E2=80=9D to avoid lockups. > On Mar 7, 2019, at 12:32 PM, Martin Zaharinov = wrote: >=20 > thanks i will try >=20 >=20 >=20 > On Thu, Mar 7, 2019, 13:25 Toke H=C3=B8iland-J=C3=B8rgensen = > wrote: > Martin Zaharinov > = writes: >=20 > > please write my one sample line with this >=20 > =46rom your script you'd need to use: >=20 > tc qdisc add dev eth1 parent 1:0004 cake >=20 > instead of >=20 > tc qdisc add dev eth1 parent 1:0004 sfq perturb 10 >=20 > And adjust your HFSC parameter to shape to the rate you want. Can't = help > you with that part, sorry, you'll need to go read up on shaping with > HFSC (or I'd suggest maybe using HTB instead as that is simpler to > configure). There are loads of tutorials for that online :) >=20 > -Toke > _______________________________________________ > Cake mailing list > Cake@lists.bufferbloat.net > https://lists.bufferbloat.net/listinfo/cake --Apple-Mail=_00367AC5-314C-48BE-9EF2-4E9DFBE11A9F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 If = it=E2=80=99s just straight cake under hfsc with a rate here=E2=80=99s = what I do (obviously replace 100mbit with your rate):

tc qdisc add dev eth1 = root handle 1: hfsc default 1
tc class add dev eth1 = parent 1: classid 1:1 hfsc ls rate 100mbit ul rate 100mbit
tc qdisc add dev eth1 parent 1:1 cake

Also, there were recent fixes to the = Linux kernel and cake regarding GSO splitting. You may find with hfsc on = older kernels that you have to use =E2=80=9Ccake no-split-gso=E2=80=9D = to avoid lockups.

On Mar 7, 2019, at 12:32 PM, Martin Zaharinov <micron10@gmail.com> = wrote:

thanks i will try



On Thu, Mar 7, 2019, 13:25 Toke = H=C3=B8iland-J=C3=B8rgensen <toke@redhat.com> wrote:
Martin Zaharinov <micron10@gmail.com> writes:

> please write my one sample line with this

=46rom your script you'd need to use:

tc qdisc add dev eth1 parent 1:0004 cake

instead of

tc qdisc add dev eth1 parent 1:0004 sfq perturb 10

And adjust your HFSC parameter to shape to the rate you want. Can't = help
you with that part, sorry, you'll need to go read up on shaping with
HFSC (or I'd suggest maybe using HTB instead as that is simpler to
configure). There are loads of tutorials for that online :)
=
-Toke
_______________________________________________
Cake = mailing list
Cake@lists.bufferbloat.net
https://lists.bufferbloat.net/listinfo/cake

= --Apple-Mail=_00367AC5-314C-48BE-9EF2-4E9DFBE11A9F--