All of lore.kernel.org
 help / color / mirror / Atom feed
* Modification to skb->queue_mapping affecting performance
@ 2016-09-13 22:59 Michael Ma
  2016-09-13 23:07 ` Eric Dumazet
  0 siblings, 1 reply; 14+ messages in thread
From: Michael Ma @ 2016-09-13 22:59 UTC (permalink / raw)
  To: Linux Kernel Network Developers

Hi -

We currently use mqprio on ifb to work around the qdisc root lock
contention on the receiver side. The problem that we found was that
queue_mapping is already set when redirecting from ingress qdisc to
ifb (based on RX selection, I guess?) so the TX queue selection is not
based on priority.

Then we implemented a filter which can set skb->queue_mapping to 0 so
that TX queue selection can be done as expected and flows with
different priorities will go through different TX queues. However with
the queue_mapping recomputed, we found the achievable bandwidth with
small packets (512 bytes) dropped significantly if they're targeting
different queues. From perf profile I don't see any bottleneck from
CPU perspective.

Any thoughts on why modifying queue_mapping will have this kind of
effect? Also is there any better way of achieving receiver side
throttling using HTB while avoiding the qdisc root lock on ifb?

Thanks,
Michael

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

end of thread, other threads:[~2016-09-23 23:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-13 22:59 Modification to skb->queue_mapping affecting performance Michael Ma
2016-09-13 23:07 ` Eric Dumazet
     [not found]   ` <CAAmHdhw6JXYtYNjcJchieW-KcwRkNnFmXTRTXrLQS_Kh+rfP2w@mail.gmail.com>
2016-09-14  0:09     ` Eric Dumazet
2016-09-14  0:23       ` Michael Ma
2016-09-14  1:18         ` Eric Dumazet
2016-09-14  5:13           ` Michael Ma
2016-09-14  5:19             ` Michael Ma
2016-09-14  5:22             ` Eric Dumazet
2016-09-14 17:46               ` Michael Ma
2016-09-16  0:51                 ` Michael Ma
2016-09-16 17:57                   ` Michael Ma
2016-09-16 19:53                     ` Eric Dumazet
2016-09-16 22:00                       ` Michael Ma
2016-09-23 23:21                         ` Michael Ma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.