From nobody Thu Jun 13 20:38:46 2024 X-Original-To: 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 4W0Z523G2jz5PK5C for ; Thu, 13 Jun 2024 20:39:02 +0000 (UTC) (envelope-from brett@lariat.net) Received: from mail.lariat.net (mail.lariat.net [66.62.230.51]) by mx1.freebsd.org (Postfix) with ESMTP id 4W0Z514zvlz43JX for ; Thu, 13 Jun 2024 20:39:01 +0000 (UTC) (envelope-from brett@lariat.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of brett@lariat.net designates 66.62.230.51 as permitted sender) smtp.mailfrom=brett@lariat.net Received: from Toshi.lariat.net (localhost.lariat.org [127.0.0.1]) by mail.lariat.net (8.9.3/8.9.3) with ESMTP id OAA03662 for ; Thu, 13 Jun 2024 14:38:48 -0600 (MDT) Message-Id: <202406132038.OAA03662@mail.lariat.net> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Thu, 13 Jun 2024 14:38:46 -0600 To: net@freebsd.org From: freebsd-net@brettglass.com Subject: Overflow or div by 0 in systat -ifstat? 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 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spamd-Bar: - X-Spamd-Result: default: False [-1.27 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.96)[-0.963]; NEURAL_HAM_SHORT(-0.90)[-0.905]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[freebsd-net@brettglass.com,brett@lariat.net]; R_SPF_ALLOW(-0.20)[+a]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; FROM_NO_DN(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:19092, ipnet:66.62.228.0/22, country:US]; R_DKIM_NA(0.00)[]; DMARC_NA(0.00)[brettglass.com]; FROM_NEQ_ENVFROM(0.00)[freebsd-net@brettglass.com,brett@lariat.net]; MLMMJ_DEST(0.00)[net@freebsd.org]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[net@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4W0Z514zvlz43JX Hello! Left systat -ifstat running to watch the bandwidth on a few Netgraph VPN tunnels overnight, and woke up to this today: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average | Interface Traffic Peak Total ng4 in 0.000 Mb/s 0.001 Mb/s 1.976 MB out 0.000 Mb/s 0.000 Mb/s 5.049 MB ng3 in 0.000 Mb/s 29132214617622.535 M 46.615 MB out 0.000 Mb/s 29132214589474.320 M 1.143 GB ng2 in 0.000 Mb/s 0.384 Mb/s 322.777 MB out 0.000 Mb/s 8.150 Mb/s 9.344 GB ng1 in 0.000 Mb/s 0.000 Mb/s 2.688 MB out 0.000 Mb/s 0.000 Mb/s 12.815 MB ng0 in 0.000 Mb/s 1.467 Mb/s 853.927 MB out 0.000 Mb/s 2.548 Mb/s 3.896 GB Looks like an overflow, a math error (perhaps at the stroke of midnight?), or an uncaught divide-by-zero. Since the peak rate calculation is done in userland, this isn't a critical bug; it won't cause a kernel panic. But it may be a good idea to see what might have caused it. --Brett Glass