Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Oct 2021 09:32:11 -0700
From:      bob prohaska <fbsd@www.zefox.net>
To:        freebsd-arm@freebsd.org
Subject:   Oddities on Pi4 under -current
Message-ID:  <20211011163211.GA98507@www.zefox.net>

next in thread | raw e-mail | index | archive | help
Recently a Pi4 running -current has been disconnecting certain
ssh connections and is also slow initially responding to pings
and ssh login attempts.

The disconnects seem to happen only when the ssh session is used
to establish a cu or tip connection to a usb-serial adapter, in
this case a TTL232R. In either case the ssh/cu combination seems to
exit, but no obvious error is reported beyond, for example,
packet_write_wait: Connection to 192.168.1.11 port 22: Broken pipe
at the originating end. The last log mention of the device appears
to be sometime in the middle of the night:
Oct 11 03:17:04 nemesis kernel: genet0: link state changed to DOWN
Oct 11 03:17:04 nemesis kernel: genet0: link state changed to UP
Oct 11 03:17:04 nemesis kernel: ums0 on uhub2
Oct 11 03:17:04 nemesis kernel: ums0: <vendor 0x413c product 0x3010, class 0/0, rev 2.00/2.20, addr 3> on usbus0
Oct 11 03:17:04 nemesis kernel: ums0: 3 buttons and [XYZ] coordinates ID=0
Oct 11 03:17:04 nemesis kernel: uftdi0 on uhub2
Oct 11 03:17:04 nemesis kernel: uftdi0: <TTL232R-3V3> on usbus0
Oct 10 20:24:46 nemesis su[1323]: BAD SU bob to root on /dev/pts/0
Oct 10 20:24:53 nemesis su[1325]: bob to root on /dev/pts/0
Oct 10 23:28:27 nemesis su[1569]: bob to root on /dev/pts/1

Half a dozen other ssh connections from the
originating host remain up to both the Pi4 and various Pi2 and Pi3 boxes.
Only sessions involving the usb serial adapter seem affected.

The slow response to ssh login appeared only in the past week or so.
It isn't entirely reproducible, usually happening after  idle time. 
The delay isn't more then five or ten seconds, but very noticeable.

A ping after ~ 30 minutes idle time looks like this:
bob@raspberrypi:~ $ ping 192.168.1.11
PING 192.168.1.11 (192.168.1.11) 56(84) bytes of data
64 bytes from 192.168.1.11: icmp_seq=1 ttl=64 time=5022 ms
64 bytes from 192.168.1.11: icmp_seq=2 ttl=64 time=4004 ms
64 bytes from 192.168.1.11: icmp_seq=3 ttl=64 time=2964 ms
64 bytes from 192.168.1.11: icmp_seq=4 ttl=64 time=1925 ms
64 bytes from 192.168.1.11: icmp_seq=5 ttl=64 time=885 ms
64 bytes from 192.168.1.11: icmp_seq=6 ttl=64 time=3.49 ms
64 bytes from 192.168.1.11: icmp_seq=7 ttl=64 time=2.31 ms
64 bytes from 192.168.1.11: icmp_seq=8 ttl=64 time=2.15 ms
64 bytes from 192.168.1.11: icmp_seq=9 ttl=64 time=2.17 ms
--- 192.168.1.11 ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 151ms
rtt min/avg/max/mdev = 2.151/1645.587/5021.971/1830.554 ms
bob@raspberrypi:~ $ 
 
Pings to other hosts in my cluster do not exhibit the large
initial delay, suggesting it isn't a network property.

Any suggestions of things to check would be welcome.

Thanks for reading,

bob prohaska




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20211011163211.GA98507>