From: Jakub Kicinski <kuba@kernel.org>
To: "Toke Høiland-Jørgensen" <toke@redhat.com>
Cc: gautamramk@gmail.com, netdev@vger.kernel.org,
"Mohit P. Tahiliani" <tahiliani@nitk.edu.in>,
Jamal Hadi Salim <jhs@mojatatu.com>,
"David S . Miller" <davem@davemloft.net>,
Dave Taht <dave.taht@gmail.com>,
Leslie Monis <lesliemonis@gmail.com>,
"Sachin D . Patil" <sdp.sachin@gmail.com>,
"V . Saicharan" <vsaicharan1998@gmail.com>,
Mohit Bhasi <mohitbhasi1998@gmail.com>
Subject: Re: [PATCH net-next v3 2/2] net: sched: add Flow Queue PIE packet scheduler
Date: Mon, 13 Jan 2020 04:19:22 -0800 [thread overview]
Message-ID: <20200113041922.25282650@cakuba> (raw)
In-Reply-To: <87eew3wpg9.fsf@toke.dk>
On Mon, 13 Jan 2020 12:44:38 +0100, Toke Høiland-Jørgensen wrote:
> Jakub Kicinski <kuba@kernel.org> writes:
> > On Fri, 10 Jan 2020 11:56:57 +0530, gautamramk@gmail.com wrote:
> >> From: "Mohit P. Tahiliani" <tahiliani@nitk.edu.in>
> >>
> >> Principles:
> >> - Packets are classified on flows.
> >> - This is a Stochastic model (as we use a hash, several flows might
> >> be hashed on the same slot)
> >> - Each flow has a PIE managed queue.
> >> - Flows are linked onto two (Round Robin) lists,
> >> so that new flows have priority on old ones.
> >> - For a given flow, packets are not reordered.
> >> - Drops during enqueue only.
> >> - ECN capability is off by default.
> >> - ECN threshold is at 10% by default.
> >> - Uses timestamps to calculate queue delay by default.
> >>
> >> Usage:
> >> tc qdisc ... fq_pie [ limit PACKETS ] [ flows NUMBER ]
> >> [ alpha NUMBER ] [ beta NUMBER ]
> >> [ target TIME us ] [ tupdate TIME us ]
> >> [ memory_limit BYTES ] [ quantum BYTES ]
> >> [ ecnprob PERCENTAGE ] [ [no]ecn ]
> >> [ [no]bytemode ] [ [no_]dq_rate_estimator ]
> >>
> >> defaults:
> >> limit: 10240 packets, flows: 1024
> >> alpha: 1/8, beta : 5/4
> >> target: 15 ms, tupdate: 15 ms (in jiffies)
> >> memory_limit: 32 Mb, quantum: device MTU
> >> ecnprob: 10%, ecn: off
> >> bytemode: off, dq_rate_estimator: off
> >
> > Some reviews below, but hopefully someone who knows more about qdiscs
> > will still review :)
>
> I looked it over, and didn't find anything you hadn't already pointed
> out below. It's pretty obvious that this started out as a copy of
> sch_fq_codel. Which is good, because that's pretty solid. And bad,
> because that means it introduces another almost-identical qdisc without
> sharing any of the code...
>
> I think it would be worthwhile to try to consolidate things at some
> point. Either by just merging code from fq_{codel,pie}, but another
> option would be to express fq_codel and fq_pie using the fq{,_impl}.h
> includes. Maybe even sch_cake as well, but that may take a bit more
> work. Not sure if we should require this before merging fq_pie, or just
> leave it as a possible enhancement for later? WDYT?
Tricky :/ No strong opinion on my side. I'm already a little weary of
added function calls in the fast path (e.g. pie_drop_early()), but using
some static inlines wouldn't hurt... Then again since fq_codel doesn't
use fq{,_impl}.h it indeed seems like a bigger project to clean things
up.
IMHO if this qdisc works and is useful it could probably be merged as
is. Hopefully we can get an opinion on this from Stephen or others.
next prev parent reply other threads:[~2020-01-13 12:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-10 6:26 [PATCH net-next v3 0/2] net: sched: add Flow Queue PIE packet scheduler gautamramk
2020-01-10 6:26 ` [PATCH net-next v3 1/2] net: sched: pie: refactor code gautamramk
2020-01-10 6:26 ` [PATCH net-next v3 2/2] net: sched: add Flow Queue PIE packet scheduler gautamramk
2020-01-13 1:36 ` Jakub Kicinski
2020-01-13 11:44 ` Toke Høiland-Jørgensen
2020-01-13 12:19 ` Jakub Kicinski [this message]
2020-01-13 12:33 ` Toke Høiland-Jørgensen
2020-01-13 13:34 ` Gautam Ramakrishnan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200113041922.25282650@cakuba \
--to=kuba@kernel.org \
--cc=dave.taht@gmail.com \
--cc=davem@davemloft.net \
--cc=gautamramk@gmail.com \
--cc=jhs@mojatatu.com \
--cc=lesliemonis@gmail.com \
--cc=mohitbhasi1998@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=sdp.sachin@gmail.com \
--cc=tahiliani@nitk.edu.in \
--cc=toke@redhat.com \
--cc=vsaicharan1998@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).