From owner-freebsd-hackers Fri Dec 6 21:52:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D32337B401 for ; Fri, 6 Dec 2002 21:52:27 -0800 (PST) Received: from mail.econolodgetulsa.com (mail.econolodgetulsa.com [198.78.66.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0A8443EB2 for ; Fri, 6 Dec 2002 21:52:26 -0800 (PST) (envelope-from user@mail.econolodgetulsa.com) Received: from mail (user@mail [198.78.66.163]) by mail.econolodgetulsa.com (8.12.3/8.12.3) with ESMTP id gB75qKZb009395; Fri, 6 Dec 2002 21:52:20 -0800 (PST) (envelope-from user@mail.econolodgetulsa.com) Date: Fri, 6 Dec 2002 21:52:20 -0800 (PST) From: Josh Brooks To: Ian Dowse Cc: freebsd-hackers@freebsd.org Subject: Re: strange netstat output inside 4.x jails... In-Reply-To: <200212050956.aa42053@salmon.maths.tcd.ie> Message-ID: <20021206215118.H77087-100000@mail.econolodgetulsa.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I waited a few seconds, and I also tried a few times after that and looked, and it did not go up to account for the transfer. This is presuming that my math in my post is correct, but I think it is. My conclusion has become that somehow transfer numbers for packet counts don't show up correctly when they are done inside the jail - which is worrisome, since these counters are system-wide... On Thu, 5 Dec 2002, Ian Dowse wrote: > In message <20021204215129.Q77087-100000@mail.econolodgetulsa.com>, Josh Brooks > writes: > > > >I run netstat -i fxp0 while _innside_ a jail: > > >and then, I transfer a large file from the jail to some external host. > > >The file I transferred out was 4.3 megabytes. Opkts only increased by > >1733 ... which means 2481 bytes per packet ... but ifconfig tells us: > > How long did you wait after the transfer completed before checking > netstat? I think the packet counts for fxp interfaces are only > updated about once a second, as the driver periodically polls them > from the hardware (the byte counts are updated immediately though). > > Ian > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message