From owner-freebsd-xen@freebsd.org Thu Oct 13 10:41:41 2016 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B4C0C0F555 for ; Thu, 13 Oct 2016 10:41:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EF044239 for ; Thu, 13 Oct 2016 10:41:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u9DAfen4031721 for ; Thu, 13 Oct 2016 10:41:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-xen@FreeBSD.org Subject: [Bug 213439] ifOutOctets are always zero for Xen xn interfaces Date: Thu, 13 Oct 2016 10:41:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-xen@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 10:41:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213439 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- CC|freebsd-amd64@FreeBSD.org | Assignee|freebsd-bugs@FreeBSD.org |freebsd-xen@FreeBSD.org Keywords| |patch --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-xen@freebsd.org Thu Oct 13 11:09:38 2016 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9E91C0FFF5 for ; Thu, 13 Oct 2016 11:09:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D8D24141 for ; Thu, 13 Oct 2016 11:09:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u9DB9cj9036572 for ; Thu, 13 Oct 2016 11:09:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-xen@FreeBSD.org Subject: [Bug 213439] ifOutOctets are always zero for Xen xn interfaces Date: Thu, 13 Oct 2016 11:09:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ae@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-xen@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 11:09:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213439 Andrey V. Elsukov changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #175694|0 |1 is obsolete| | --- Comment #2 from Andrey V. Elsukov --- Created attachment 175696 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D175696&action= =3Dedit Proposed patch (untested) I think this version is more correct, because after xn_txeof() mbuf should = be freed. Also removed duplicate OPACKETS accounting. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-xen@freebsd.org Thu Oct 13 11:31:49 2016 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 93363C0E98B for ; Thu, 13 Oct 2016 11:31:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 82BE9F4A for ; Thu, 13 Oct 2016 11:31:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u9DBVn78093583 for ; Thu, 13 Oct 2016 11:31:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-xen@FreeBSD.org Subject: [Bug 213439] ifOutOctets are always zero for Xen xn interfaces Date: Thu, 13 Oct 2016 11:31:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: royger@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-xen@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 11:31:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213439 Roger Pau Monn=C3=83=C2=A9 changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress CC| |royger@freebsd.org --- Comment #3 from Roger Pau Monn=C3=83=C2=A9 --- Could you please upload the patch to reviews.freebsd.org and add me (royger) and liuw_liuw.name as reviewers? Thanks. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-xen@freebsd.org Thu Oct 13 14:59:32 2016 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B651C0E69D for ; Thu, 13 Oct 2016 14:59:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 324D8A5D for ; Thu, 13 Oct 2016 14:59:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u9DExWl3039920 for ; Thu, 13 Oct 2016 14:59:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-xen@FreeBSD.org Subject: [Bug 213439] ifOutOctets are always zero for Xen xn interfaces Date: Thu, 13 Oct 2016 14:59:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: Trond.Endrestol@ximalas.info X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-xen@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 14:59:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213439 --- Comment #4 from Trond.Endrestol@ximalas.info --- (In reply to Andrey V. Elsukov from comment #2) I tried the second proposed patch on an identical and least busy system: root@[WITHHELD]:~ # uname -a FreeBSD [WITHHELD] 11.0-STABLE FreeBSD 11.0-STABLE #2 r307213M: Thu Oct 13 16:28:54 CEST 2016 root@[WITHHELD]:/usr/obj/usr/src/sys/XENGUEST amd64 root@[WITHHELD]:~ # snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.2.2 IF-MIB::ifDescr.2 =3D STRING: xn0 root@[WITHHELD]:~ # snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.10.2 IF-MIB::ifInOctets.2 =3D Counter32: 29079 root@[WITHHELD]:~ # snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.16.2 IF-MIB::ifOutOctets.2 =3D Counter32: 24659 root@[WITHHELD]:~ # snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.2.3 IF-MIB::ifDescr.3 =3D STRING: xn1 root@[WITHHELD]:~ # snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.10.3 IF-MIB::ifInOctets.3 =3D Counter32: 10450 root@[WITHHELD]:~ # snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.16.3 IF-MIB::ifOutOctets.3 =3D Counter32: 696 After running for a while, I got this: root@[WITHHELD]:~ # snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.2.2= ; snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.10.2 ; snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.16.2 IF-MIB::ifDescr.2 =3D STRING: xn0 IF-MIB::ifInOctets.2 =3D Counter32: 115769 IF-MIB::ifOutOctets.2 =3D Counter32: 117953 root@[WITHHELD]:~ # snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.2.3= ; snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.10.3 ; snmpget -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.16.3 IF-MIB::ifDescr.3 =3D STRING: xn1 IF-MIB::ifInOctets.3 =3D Counter32: 67898 IF-MIB::ifOutOctets.3 =3D Counter32: 696 The low count on ifOutOctets.3 is due to pf filtering and low activity on t= he xn1 interface. This patch looks promising. I guess this patch can be committed after some = more testing. --=20 You are receiving this mail because: You are the assignee for the bug.=