Mosh's memory footprint becomes extremely large when pasting large inputs #482

Open
tsuna opened this Issue Dec 24, 2013 · 4 comments

Projects

None yet

3 participants

@tsuna
tsuna commented Dec 24, 2013

I have 252KB in the paste buffer.

$ pbpaste | wc
    8064   44352  258108

When I paste this into a fresh mosh session, I see mosh-client's resident set size balloon to 5GB.

Environment:

  • OS X 10.8.5 (Darwin damogran.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64)
  • mosh 1.2.4 from Homebrew on the client
  • mosh 1.2.4 from mosh-1.2.4-1.fc14.x86_64.rpm on Fedora on the server
@cgull
Member
cgull commented Mar 23, 2015

I just tried reproducing this. On OS X 10.10 to an RPi2 running Raspbian, pasting the Mac's /etc/services (677KB) with command-V in Terminal, I saw Homebrew's 1.2.4 Mosh client bloat to 3GB of core (and later shrink to 121MB). When I tried this with my performance code in #531, though, mosh-client stays at 25MB. I don't know why; I don't think this code should have any positive effect on your problem. Could you try this code?

@phmarek
phmarek commented Jun 1, 2015

Confirmed the bug with the debian package 1.2.4a-1+b2.

@cgull
Member
cgull commented Dec 11, 2015

I've pulled #531. Can either of you report whether this problem still exists?

@cgull
Member
cgull commented May 25, 2016

Still a problem.
From a FreeBSD client running 1.2.5.95rc1 I saw my client bloat to 5+ GB and take about 45s CPU to transmit that same 677KB. Mosh's timeout message also appeared for most of that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment