From nobody Tue Dec 03 17:21:39 2024 X-Original-To: dev-commits-src-main@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 4Y2nWS4TXbz5gRk3; Tue, 03 Dec 2024 17:21:40 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y2nWS3slfz4R2P; Tue, 3 Dec 2024 17:21:40 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733246500; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5/ZMjZn/h0BOhR5+jBTwTiQSfM/+gu0KOUKHImj+IVI=; b=H+ir+GoZKAC4B2JqKeWGeWYU/SwFGvcBaI4ia0NMGrJBpb+7fTizArlBExLOFu5WBPIn3i ROsjhUQ48+OxsPE1j2sVhh274JONCNfVREJubF9AFWPh9IfRRaREfvOZS/F+pNjshdq6pv EB9piOa2q7sCsclJezIy37ct7jicp/WQfF6/OMkO1T3mARhziE/8rsW2JA6sPpymSRTZ21 UfX7YWQPQ7GAuAZlZALKM/F/ktxogJiH9GJstgYdRASxOe+f6vxhEXQgJ/5iMAfp/X3r+k YDajrpK36mvi8bDlVWuRJUD5XUUGegOLcsI+nF3AXo8bdhkWPZLlwGWXrBPjGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733246500; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5/ZMjZn/h0BOhR5+jBTwTiQSfM/+gu0KOUKHImj+IVI=; b=c5rrJ3u0UnMl4dcG+HwM9CkF/3QrE2jn1hsgvpryS27PtmbcA878/AGz1ll20iilVZi7AT zhUn5lA9KW3ARh/9T5sWVz9CZaDNc/vPRfnne5SzdWaH73Cp48VPpw6MREq6e+Qt9fFX98 tmD8nj6eg766o1q7OYFESh007TybdbOadyKvaF98W9dWE80JP4Fk1CXObrthaXByhLPsNo hFWy23um0V/5/9DchgsvPROoidkpG2/ZK+89L2//83ROuMcr4xpdZNKBXFqwy1a/eOzFZj ag3VleaATOuE2tE4/0wG9xuYwyJENvdqZUegm4pfmiDnGNjmLRXsgbdTfVH7Rg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733246500; a=rsa-sha256; cv=none; b=jaj1Af218nGePcPIGwBPf42yluQTKjNzvsxNy8bCC8MarCVDL6PkSpGp6mTMLTSAGONeu0 S7iUBrHs1Yz+0c7SDJSAiZGghwhXT6AHu7Exu8HlPPd9yNhjefiYXjKIkOaf9WvTFgQEQO c+JM5xHETGJb0fQkZore+0MbG86BloQ3lPUwkAq8Ijyol1er37pjL7ttvsxfa12blPOzpF c+EbT+pMwx6rAZw0gz9LDS4fcxuGxp2AmVRu/3xZIPDPYbqlC9QLjBLcVbf/CglPQpBdaY OKWhYMEXSn1pdwxxMayDDc0HVgz4lBUeYD23Gw0NveSS0Z9zssmBejLXXP4FPg== Received: from [IPV6:2601:5c0:4200:b830:814a:cbb2:d950:d5f7] (unknown [IPv6:2601:5c0:4200:b830:814a:cbb2:d950:d5f7]) (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) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Y2nWS2DkYzR8K; Tue, 3 Dec 2024 17:21:40 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <665823ac-7f80-4872-b224-ae2bfa7059ac@FreeBSD.org> Date: Tue, 3 Dec 2024 12:21:39 -0500 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: b5a8abe9502e - main - How to show interface traffic in bits per second Content-Language: en-US To: Poul-Henning Kamp Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202412022113.4B2LD0mt010926@gitrepo.freebsd.org> <202412031609.4B3G9HAf023627@critter.freebsd.dk> From: John Baldwin In-Reply-To: <202412031609.4B3G9HAf023627@critter.freebsd.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/3/24 08:09, Poul-Henning Kamp wrote: > -------- > John Baldwin writes: > >>> +When netstat reports every 8 seconds, it tells traffic in bits per second: >>> + >>> +$ netstat -I bge0 8 >>> +% >> >> Hmm, I'm pretty sure it's in bytes, and checking the code, it seems like show_stat() >> in netstat/if.c just shows the raw delta in values without scaling it by 'interval', >> so I think the counts are the number of bytes sent/received in 8 seconds: > > And since > > bytes/8 seconds == bits/second > > Q.E.D Ah, fair enough. Clearly too subtle for my thick head. ;-) -- John Baldwin