netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: "Toke Høiland-Jørgensen" <toke@redhat.com>,
	"Jens Axboe" <axboe@kernel.dk>,
	"Emmanuel Grumbach" <emmanuel.grumbach@intel.com>,
	"Luca Coelho" <luciano.coelho@intel.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	Networking <netdev@vger.kernel.org>
Subject: Re: iwlwifi warnings in 5.5-rc1
Date: Wed, 11 Dec 2019 15:12:31 +0100	[thread overview]
Message-ID: <b14519e81b6d2335bd0cb7dcf074f0d1a4eec707.camel@sipsolutions.net> (raw)
In-Reply-To: <87r21bez5g.fsf@toke.dk>

On Wed, 2019-12-11 at 15:04 +0100, Toke Høiland-Jørgensen wrote:
> Johannes Berg <johannes@sipsolutions.net> writes:
> 
> > Btw, there's *another* issue. You said in the commit log:
> > 
> >     This patch does *not* include any mechanism to wake a throttled TXQ again,
> >     on the assumption that this will happen anyway as a side effect of whatever
> >     freed the skb (most commonly a TX completion).
> > 
> > Thinking about this some more, I'm not convinced that this assumption
> > holds. You could have been stopped due to the global limit, and now you
> > wake some queue but the TXQ is empty - now you should reschedule some
> > *other* TXQ since the global limit had kicked in, not the per-TXQ limit,
> > and prevented dequeuing, no?
> 
> Well if you hit the global limit that means you have 24ms worth of data
> queued in the hardware; those should be completed in turn, and enable
> more to be dequeued, no?

Yes, but on which queues?

Say you have some queues - some (Q1-Qn) got a LOT of traffic, and
another (Q0) just has some interactive traffic.

You could then end up in a situation where you have 24ms queued up on
Q1-Qn (with n high enough to not have hit the per-queue AQL limit),
right?

Say also the last frame on Q0 was dequeued by the hardware, but the
tx_dequeue() got NULL because of the AQL limit having been eaten up by
all the packets on Q1-Qn.

Now you'll no longer get a new dequeue attempt on Q0 (it was already
empty last time, so no hardware reclaim to trigger new dequeues), and a
new dequeue on the *other* queues will not do anything for this queue.

johannes


  reply	other threads:[~2019-12-11 14:12 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-10 20:46 iwlwifi warnings in 5.5-rc1 Jens Axboe
2019-12-11  8:36 ` Johannes Berg
2019-12-11  8:53   ` Toke Høiland-Jørgensen
2019-12-11 10:11     ` Johannes Berg
2019-12-11 10:23       ` Toke Høiland-Jørgensen
2019-12-11 11:51         ` Johannes Berg
2019-12-11 13:42           ` Johannes Berg
2019-12-11 14:04             ` Toke Høiland-Jørgensen
2019-12-11 14:12               ` Johannes Berg [this message]
2019-12-11 14:47                 ` Toke Høiland-Jørgensen
2019-12-11 21:18                   ` Johannes Berg
2019-12-12 10:45                     ` Toke Høiland-Jørgensen
2019-12-11 14:02           ` Toke Høiland-Jørgensen
2019-12-11 21:17             ` Johannes Berg
2019-12-12 10:55               ` Toke Høiland-Jørgensen
2019-12-12 11:00                 ` Johannes Berg
2019-12-21  0:55   ` Jens Axboe
2019-12-21  9:17     ` Johannes Berg
2019-12-21 13:45       ` Jens Axboe
2019-12-11 13:45 ` Johannes Berg
2019-12-11 14:09   ` Toke Høiland-Jørgensen
2019-12-11 14:13     ` Johannes Berg
2019-12-11 14:55       ` Toke Høiland-Jørgensen
2019-12-11 21:19         ` Johannes Berg
2019-12-12 10:55           ` Toke Høiland-Jørgensen

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=b14519e81b6d2335bd0cb7dcf074f0d1a4eec707.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=axboe@kernel.dk \
    --cc=emmanuel.grumbach@intel.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luciano.coelho@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=toke@redhat.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).