If you're sshing to something that's connected over wifi
and it feels as if you were ssh-ing to another continent... from a train
do yourself a favor and, on the remote end, set this:
iw dev wlan0 set power_save off
If you're sshing to something that's connected over wifi
and it feels as if you were ssh-ing to another continent... from a train
do yourself a favor and, on the remote end, set this:
iw dev wlan0 set power_save off
I totally didn't just lose 2 hours chasing ghosts, comparing kernel logs, changing wifi channels, and turning off devices that might cause interference, due to not knowing about this feature.
@amonakov
I should check tomorrow at work if ssh'ing to Japan is faster without wifi power-saving on the client.
Anyway, what is certainly faster when I disable power-saving is ssh-ing *to the laptop* (or to the mini-pc)
@wolf480pl yeah, evidently pinging the access point from the laptop (2-4ms) is not the same as pinging the laptop from the AP (1-200ms) unless I run 'ping -i 0.1 AP' on the laptop (or disable power_save). Which seems to imply the power_save timeout is about 100ms in my case, and I randomly get its extra latency when the response doesn't arrive in that time (e.g. ssh'ing to another continent).
@amonakov
ping from router to my laptop
with powersave on:
30-200ms (highly variable)
with powersave off:
1.5-4ms, usually below 2.1
on a Lenovo mini-PC with QCA6174 (ath10k) I was getting up to 800ms with wifi power-saving on
@wolf480pl I think it shouldn't be that bad? On my old laptop power_save is disabled by default, as I recall, due to known issues, on the new laptop I never noticed any problems (and, as I just checked, it is enabled by default).
@Suiseiseki
@amonakov
do you think a wifi card that runs free software wouldn't have that feature?
do you know of such a card?
@Suiseiseki
@amonakov
As in, if you let the computer with that card idle, not sending any traffic, and then ping it from the router / access point / another computer on the network, it will still be 2-15ms?
@Suiseiseki
@amonakov
yeah, ok
Do these cards not have a power-saving feature?
@Suiseiseki
@amonakov
> seems negligible
have you measured it?
> similar card says it has Dynamic MIMO Power save
if this one does too, then you should be able to find out how it works by reading the source code, right?
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.