2 ms·
This past week, I, living in country Australia, a few hundred kilometres from Melbourne, needed to help a coworker in Melbourne to diagnose something on his VM.
by chrismorgan 9y ago
This past week, I, living in country Australia, a few hundred kilometres from Melbourne, needed to help a coworker in Melbourne to diagnose something on his VM. It was easiest for us both to hook the SSH connection via a server in New York—increasing 30ms of round-trip latency to about 560ms. A terminal alone was fairly painful to use, but this is the part that I found really interesting: stdout line buffering goes from being a performance optimisation to being a significant slow-down—nay, a nightmare. Installing packages via Yarn, for example, suddenly took minutes, where it took only seconds with `> /dev/null`, because of a progress bar that kept on flushing its stdout buffer.
- predakanga 9y agoThis is one of those issues that Mosh handles well - it essentially emulates a terminal on the server and sends snapshots to the client, varying the rate based on network conditions.
- chrismorgan 9y agoI contemplated mosh while waiting for things to install, and wondered whether it’d resolve that issue; but I’ve never set it up, and would seldom indeed have any use for it, so I expect I’ll continue to not use it.