From nobody Tue Jun 27 02:38:22 2023 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qqpms5QQtz4kK1J for ; Tue, 27 Jun 2023 02:38:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-22.consmr.mail.gq1.yahoo.com (sonic310-22.consmr.mail.gq1.yahoo.com [98.137.69.148]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qqpmr2gzZz46hP for ; Tue, 27 Jun 2023 02:38:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687833513; bh=4xdC8a2rezo8gUjvzMPW1dnMt6CDUp8nPkuAph9aYxs=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=UyWYQJ2tmjJmI3xh1XJ+9AFhJOLHg5ewYvdyeHOI4qh0RdjyvGCW224dJJq1aVbJif3KCNctehWxcYTlb9EXvT2pzcSalj3S9KmVSCjNLaY2LdylIDzMiYlbCr/iyZLDbo0pjVp9M/kt4eJ2/zcZFuvsF+1LT7XGHo26B63OS3O5wjmhFdSqrax9KjQDeE79O1OXmt92OblK+VQ27Tp7vpezZHkMWNIaRZRas40izyrO1C62fVo/X2mY/vUkpcZw+8fdHesUzQH1oxrcuj1ikEtDDPY7RVTUV1V18HZqbBkdZqHQ1/lr0CCulAn/RBIREeX4NXcS1w9Wv53xMS6JWA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687833513; bh=UR9lDk9BgHbwN+iJatAfMW+jWtA9M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.Xzt5qcJ0rN7JGEpjSj17dXv6oy_2QJlKr_veAeRjbUo1eim7cLFbI5e2qOQoRGjeUQyBM qaob4Fi0GhbhVEE1uT7gsTSyZgP3J9OUOgidxQM5UqDbXMjnZiH0rN2tZ7rp598_bmyyNI30_WUA z7rAMUpzpu6qip4.brj4x5xf00WV8AULaA_0hrF6DtmQc25LrSmzJ4esLIBo1ou5vgySCDGqqiFa 6DVqqtrgg8FLwLzAoRB9DDP_FytwUA4cJPSRS_3IrkarS7lqPJF8a5eHa4yNnk_4hhHEZYtdoTI7 2vU.S0lkLsP9t9BavrBGkkBQSNTjqrM.B1iIEtE0yEVie.zPsy2JUVAoYFQ2fQmM9Al58ZwlwTBr yGugRILpu5d5pHi6qPandy1zuCj510A6u_hzV6WfVdI5Y9LdJ9aGEezJtMrRvGMypfuhzEnS06hP EkrMfebrXMcsjLToZjFIe9FJQzsQsFlQmHrmkF.VMNBQTwc.gTLYWKQjMiUOPeD2NeuWEQ_F1_3B vQAfIh44tYCbiR0jjDnDLXEBUAdToELYJmpKTOzEuovNxo1_DKlQWWLszJ2VGeVAuJ7t6hEV8 X-Sonic-MF: X-Sonic-ID: b898712c-975f-410b-ba98-33e73242d793 Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Tue, 27 Jun 2023 02:38:33 +0000 Received: by hermes--production-gq1-6db989bfb-xtcqt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID efc3bb2baab315678c825661a6154796; Tue, 27 Jun 2023 02:38:33 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: -current dropping ssh connections From: Mark Millard In-Reply-To: Date: Mon, 26 Jun 2023 19:38:22 -0700 Cc: Jamie Landeg-Jones , freebsd-net@freebsd.org, freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <601E35C4-CDE1-47A3-B2D2-29501AB5FB93@yahoo.com> References: <202306212305.35LN5ITH069587@donotpassgo.dyslexicfish.net> <202306222238.35MMcoQm017939@donotpassgo.dyslexicfish.net> To: bob prohaska X-Mailer: Apple Mail (2.3731.600.7) X-Rspamd-Queue-Id: 4Qqpmr2gzZz46hP X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Jun 26, 2023, at 19:00, bob prohaska wrote: > On Thu, Jun 22, 2023 at 11:38:50PM +0100, Jamie Landeg-Jones wrote: >> bob prohaska wrote: >>=20 >>> That seems worth a try. >>> The notion of an ssh escape (~. in this case) finding its way into = the data stream is new to me. >>=20 >> Thinking again, that looks like corruption coming down the ssh = connection. >> For the ssh escape char to affect anything (note it needs to be = preceeded >> by a new line) it would have to be sent up the line. >>=20 >> For an example, assuming ssh has the default escape char, look at the = difference between: >>=20 >> printf 'pwd;\n~.;echo sleeping.; sleep 5' | ssh -tt user@host >>=20 >> and with the same printf, but no escape char: >>=20 >> printf 'pwd;\n~.;echo sleeping.; sleep 5' | ssh -tt -e none user@host >>=20 >> You can see how the former closes the connection due to the \n~. >>=20 >> (The -tt forces a terminal/interactive session to be set up - = normally, as we are >> piping input to ssh in this case, the terminal isnt set up, and the = escape character >> isn't used - it's only recongnised in interactive sesions by default) >>=20 >> I personally have "EscapeChar none" in my ssh_config, but I suspect = this >> is probably not the issue here, still, can't hurt to try it! >=20 > Indeed, connection was dropped with escape character set to none. > There does seem to be a some dependence on system load. Connections > survive at light or no load and drop when the sshd side is busy.=20 So how busy is the disk media (really the USB bus) from somewhat before the failures happen to the failure point? The question applies separately to both systems involved in the ssh session. I'll remind that on a RPi2B v1.1, RPi2B v1.2, or RPi3B* the Ethernet and the 4 USB ports all share the one USB2 path at an internal stage for the USB subsystem, if I remember right. Saturating that USB2 path with data transfer bytes to/from disk media might be able to block other activity long enough to cause the Ethernet communications to have problems for all I know. (Amount of data queued for transfer would be relevant.) This might be a reason to avoid settings for the combination vm.pfault_oom_attempts and vm.pfault_oom_wait to values that could contribute to a sustained period of saturating the USB channel. (I have no detailed knowledge of how the tradeoffs work for the competing uses of the USB channel. So I can not validly claim to know that the above is realistic.) =3D=3D=3D Mark Millard marklmi at yahoo.com