Very long lag time using SSH via Wifi in factory Debian OS - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114) +--- Thread: Very long lag time using SSH via Wifi in factory Debian OS (/showthread.php?tid=9164) |
Very long lag time using SSH via Wifi in factory Debian OS - Redbeard - 02-14-2020 When I SSH into my PBP everything runs like it is in super slow motion. Logging in is slow, but where the lag really stands out is even a single keystroke takes 10-30 seconds to register after logging in. This is the case ssh'ing in from both my linux desktop and using an SSH client on my android tablet. From the web searching I've done I gather that the issue is usually due to the local network. However, I don't have the same issue ssh'ing into my raspberry pi on the same network, or to my linux desktop from my tablet. After poking around for a while, I've narrowed it down some. I made a bootable SD card with Manjaro (Manjaro-ARM-xfce-pbpro-19.12.1.img.xz). Using Manjaro I can connect to the PBP via SSH with the PBP connected either via wifi or via a usb to LAN adapter and I don't experience the lag. I've also found that the lag goes away in the factory version of Debian if I am connected via usb/LAN. Interestingly, I can SSH into the PBP running Debian over wifi if the PBP is also connected to the USB/LAN adapter*. For example, with the PBP disconnected from the USB/LAN adapter, I can SSH into the IP address for the PBP wireless connection. The connection has the normal lag, until I connect the USB/LAN adapter. Then after the PBP is connected to both network connections, SSH responds normally, without the extreme lag. If I disconnect the USB/LAN adapter, the SSH connection remains open, but the lag returns. I was able to duplicate the issue booting from an SD card with a fresh image of the latest Debian stock build (pinebookpro-debian-desktop-mrfixit-191123.img). I booted from this image and without making any changes hand typed in my wifi password to connect it to the network (to rule out if my using a wired connection first was part of the issue). The lag was there when I connected from my linux desktop. Here is the output from when I did this. Obviously it doesn't show the lag, but it shows that I'm connecting via the wireless IP address of the PBP, confirmed by the output of "ip a" (Note, I've replaced my desktop user name with "redbeardsdesktop"): Code: redbeardsdesktop@redbeardsdesktop-TH67B:~$ sudo rm /home/redbeardsdesktop/.ssh/known_hosts At this point, I was able to connect but had the previously mentioned lag. Then, I connected my USB/LAN adapter and waited until the PBP had established a wired network connection as well. In the same SSH session (over wifi), the lag then went away. Again during the same session, I unplugged the wired connection and the lag reappeared. Here is the remainder of the output from the SSH session: Code: rock@Debian-Desktop:~$ ip a Can anyone else duplicate this issue? If you SSH into your PBP running the factory Debian with only a wireless connection, do you experience a long lag time? Any suggestions? Thanks! *I didn't know it was possible to have more than one active network connection/IP address at any given time. RE: Very long lag time using SSH via Wifi in factory Debian OS - rleasle - 02-15-2020 I've experienced similar lags using ssh. I assumed it was the CPUs running "on-demand". Could that be what's going on here? I've been meaning to try setting the system to performance mode and see if that keeps things running smoothly. Seems unnecessary to keep the machine in a frugal power-saving mode if it's plugged in. RE: Very long lag time using SSH via Wifi in factory Debian OS - wdt - 02-15-2020 I just checked with putty,, using ssh protocol. Seemed fine, normal Perhaps you could try that? RE: Very long lag time using SSH via Wifi in factory Debian OS - Redbeard - 02-15-2020 (02-15-2020, 09:12 AM)rleasle Wrote: I've experienced similar lags using ssh. I assumed it was the CPUs running "on-demand". Could that be what's going on here? I've been meaning to try setting the system to performance mode and see if that keeps things running smoothly. Seems unnecessary to keep the machine in a frugal power-saving mode if it's plugged in. That was something I wondered about too. I tried upping the CPUs to 2 GHz and on my machine at least it didn't solve the issue. I would be curious if it makes a difference on your machine. wdt Quote:I just checked with putty,, using ssh protocol. Seemed fine, normal Great idea. I wouldn't have thought to try it. It definitely is faster, but there is still a noticeable lag when the PBP is connected only to wifi. Instead of taking 10-30 seconds to appear, individual keystrokes come onto the screen in 1-3 seconds, so it is 10x faster. If all else fails, this will be a helpful workaround. Out of curiosity I tried connecting the USB/LAN adapter part way into a putty session, and it made the lag go away. When you use putty connecting to the PBP (with the PBP only connected to the network via wifi), does it keep up with your typing, or does it have a small lag? RE: Very long lag time using SSH via Wifi in factory Debian OS - wdt - 02-16-2020 >does it keep up with your typing, or does it have a small lag? Only wifi, no apparent lag, didn't type a lot,, just now typed a long line, no lag No special setup with putty |