From: Denis Kenzior <denkenz@gmail.com>
To: "Patrick Häcker" <pat_h@web.de>, iwd@lists.linux.dev
Subject: Re: Sometimes RxBitrate of 1000 Kbit/s
Date: Sun, 6 Nov 2022 21:46:13 -0600 [thread overview]
Message-ID: <4d50da71-40e3-f888-be79-b52fa8208e88@gmail.com> (raw)
In-Reply-To: <5893463.lOV4Wx5bFT@mmm>
Hi Patrick,
On 11/6/22 08:36, Patrick Häcker wrote:
> Hello all,
>
> from time to time my RxBitrate (sometimes the TxBitrate, too) goes down to
> 1000 Kbit/s, whereas it otherwise is in the usual 5 to 6 digit range. This
> seems to especially happen some time after waking up from standby (S3), maybe
> also from hibernate (S4).
iwd doesn't do anything on sleep (it isn't even aware of sleep). So it is up to
the kernel driver to do the right thing. Maybe it isn't? You'll have to ask
the kernel / driver / firmware people for your hardware.
>
> When it happens, wireless usage is super slow to non-existent.
>
> Restarting iwd immediately solves the problem. I routinely also reloaded the
> involved kernel modules, but I think this was unnecessary as I
> skipped it the last few times and only restarted iwd and this was enough to
> get it back to a working state.
Killing iwd most likely power-cycles the card (since it brings the interface
down, or even destroys it completely), and probably reloads the firmware.
Removing the kernel modules probably doesn't matter.
We have seen some reports where (for example iwlwifi) behavior can change
between kernel versions due to different firmware behavior.
Some network managers (like NM) will explicitly IFDOWN wireless interfaces on
suspend and bring them up on resume. This isn't cost free and we'd rather not
do this.
<snip>
> This is how it looks after restarting iwd:
> # systemctl restart iwd
> # iwctl station wlan0 show
> Station: wlan0
> --------------------------------------------------------------------------------
> Settable Property Value
> --------------------------------------------------------------------------------
> Scanning no
> State connected
> Connected network *redacted*
> IPv4 address 192.168.0.10
> ConnectedBss 98:9b:cb:4b:b1:cd
> Frequency 5180
> Security WPA3-Personal
> RSSI -72 dBm
> AverageRSSI -72 dBm
> RxMode 802.11n
> RxMCS 9
> TxMode 802.11n
> TxMCS 3
> TxBitrate 60000 Kbit/s
> RxBitrate 60000 Kbit/s
> ExpectedThroughput 31125 Kbit/s
>
Some of these numbers seem suspect, but iwd has no influence on them. RX/TX MCS
selection is done by the driver / firmware. All iwd does is report what the
driver is telling it.
<snip>
> From https://iwd.wiki.kernel.org/debugging I would assume, that IWD_GENL_DEBUG
> might the relevant environment variable, but I am really not sure.
This isn't what you're looking for. That variable is for debugging generic
netlink communication which we haven't needed to do in years. We probably
should take this out completely.
> I could obviously implement some kind of watchdog checking the output of iwctl
> every some seconds and restarting iwd in case, but I would avoid that if there
> is a cleaner solution available.
You could try adding an ifdown / ifup for the wifi interface triggered by
suspend / resume (or rfkill) and see what happens?
You can also try to run run iwmon in order to capture what is happening on the
nl80211 API level when entering / leaving suspend. The driver people might be
interested in this information.
>
> I think is problem started to occur some months ago. It might be related with
> some kernel or iwd update some time ago. But due to the long time until
> occuring, a sound bisect might take more than a week.
I'd start with the kernel, it is hard for me to imagine what iwd might be doing
to trigger this.
Regards,
-Denis
next prev parent reply other threads:[~2022-11-07 3:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-06 14:36 Sometimes RxBitrate of 1000 Kbit/s Patrick Häcker
2022-11-07 3:46 ` Denis Kenzior [this message]
2022-11-10 3:18 ` Patrick Häcker
2022-11-10 15:27 ` Denis Kenzior
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=4d50da71-40e3-f888-be79-b52fa8208e88@gmail.com \
--to=denkenz@gmail.com \
--cc=iwd@lists.linux.dev \
--cc=pat_h@web.de \
/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 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.