Linxr cuts SSH terminal latency from 250ms to 15ms on Android via TCP tuning
The Linxr development team has published Part 8 of their build series, detailing how they resolved significant input lag in the app's SSH terminal on Android. During testing, keystrokes were delayed by 100–300ms before appearing on screen, traced to QEMU's SLIRP user-mode networking stack running inside Android's process sandbox. The root cause was Nagle's Algorithm, which buffered small single-byte keystroke packets to coalesce TCP frames before transmission. Engineers fixed this by forcing TCP_NODELAY on local SSH port forwards and tuning the guest network interface MTU to 1500 with checksum offloading disabled. These changes reduced keystroke response time to under 15ms, bringing a near-desktop shell experience to mobile devices.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in