From owner-svn-src-head@freebsd.org Tue Mar 21 20:40:24 2017 Return-Path: Delivered-To: svn-src-head@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 D2645D16706; Tue, 21 Mar 2017 20:40:24 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (glebi.us [96.95.210.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A132C1F3A; Tue, 21 Mar 2017 20:40:24 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.15.2/8.15.2) with ESMTPS id v2LKeMWF064217 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 21 Mar 2017 13:40:22 -0700 (PDT) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebi.us (8.15.2/8.15.2/Submit) id v2LKeM8e064216; Tue, 21 Mar 2017 13:40:22 -0700 (PDT) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@FreeBSD.org using -f Date: Tue, 21 Mar 2017 13:40:22 -0700 From: Gleb Smirnoff To: Slawa Olhovchenkov Cc: John Baldwin , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r315662 - in head: contrib/bsnmp/snmp_mibII contrib/ipfilter/ipsend lib/libprocstat sys/netinet sys/sys usr.bin/netstat usr.bin/sockstat usr.bin/systat usr.sbin/tcpdrop usr.sbin/trpt Message-ID: <20170321204022.GX23308@FreeBSD.org> References: <201703210639.v2L6dnRf055522@repo.freebsd.org> <1782817.djIc6TfI1t@ralph.baldwin.cx> <20170321185004.GW23308@FreeBSD.org> <20170321195202.GF86500@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170321195202.GF86500@zxy.spb.ru> User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Mar 2017 20:40:24 -0000 On Tue, Mar 21, 2017 at 10:52:02PM +0300, Slawa Olhovchenkov wrote: S> > On Tue, Mar 21, 2017 at 10:40:34AM -0700, John Baldwin wrote: S> > J> First, this is a very good change and long overdue in divorcing the S> > J> user-facing structure for live system reporting vs the kernel structure. S> > J> S> > J> However, I realize you don't use info from netstat when debugging kernel S> > J> crash dumps, but other people _do_. It's ok if the kvm bits of netstat S> > J> require a matching kernel and thus require recompiling everytime the ABI S> > J> changes, but it is useful to have them. Please restore those. S> > S> > I have very much anticipated this comment from you, John. S> > S> > I would like to remind you, that we have had this very exact conversation S> > back when I removed kvm support from netstat/route.c. Let me search the S> > archives: S> > S> > https://lists.freebsd.org/pipermail/svn-src-head/2015-April/070480.html S> > S> > This conversation has had a continuation on IRC, which I don't archive. S> > S> > AFAIR, first I told that with all my involvement into networking stack, S> > I never ever had experienced a need to run route stats on a core. The S> > debugger were the only useful tool. And that opinion was seconded by S> > other network hackers. Then we discussed that a proper tool chould use S> > dynamic type parsing and not kvm(3). You said that future gdb has python S> > scripting and that would work fine. Meanwhile, you insisted that I restore S> > the functionality. I resisted to put kvm(3) back into netstat/route.c, and S> > instead I created a gdb script that prints exactly what 'nestat -anr -M core' S> > prints. And I committed the script just to satisfy your demand: S> > S> > tools/debugscripts/netstat-anr.gdb S> > S> > Can you please fairly answer, have you (or anyone else) ever used the S> > script during these 2 years? S> > S> > I believe, the inpcb/tcpcb printing from a core functionality has the S> > same level of real usefulness. I could create the same script for pcbs, S> > and I am afraid it is going to share fate of netstat-anr.gdb. S> S> How long run this script for core file w/ 40K TCP connections? You tell me. When I analyze cores, I don't read through 40K TCP connections. -- Totus tuus, Glebius.