From owner-freebsd-stable@freebsd.org Thu Dec 15 17:38:13 2016 Return-Path: Delivered-To: freebsd-stable@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 86D56C81EA1; Thu, 15 Dec 2016 17:38:13 +0000 (UTC) (envelope-from artem@viklenko.net) Received: from alf.viklenko.net (alf.viklenko.net [82.117.235.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.viklenko.net", Issuer "Art&Co. CA Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D14F285; Thu, 15 Dec 2016 17:38:12 +0000 (UTC) (envelope-from artem@viklenko.net) Received: from alf.viklenko.net (alf.viklenko.net [192.168.32.61]) (authenticated bits=0) by alf.viklenko.net (8.14.9/8.14.9) with ESMTP id uBFHc92N023082 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Dec 2016 19:38:09 +0200 (EET) (envelope-from artem@viklenko.net) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 15 Dec 2016 19:38:09 +0200 From: Artem Viklenko To: Gary Palmer Cc: Eugene Grosbein , freebsd-net , "Eugene M. Zheganin" , freebsd-stable@freebsd.org, owner-freebsd-net@freebsd.org Subject: Re: sonewconn: pcb [...]: Listen queue overflow to human-readable form Organization: Art&Co. In-Reply-To: <20161215160557.GC7032@in-addr.com> References: <58528B50.8030600@norma.perm.ru> <58528C6B.8070800@rdtc.ru> <7f33d47e2014d9c994f8b2003b011ba3@mail.viklenko.net> <20161215160557.GC7032@in-addr.com> Message-ID: <5a9d2ce3069c2ae45ca1d722e6e19236@mail.viklenko.net> X-Sender: artem@viklenko.net User-Agent: Roundcube Webmail/1.1.4 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (alf.viklenko.net [192.168.32.61]); Thu, 15 Dec 2016 19:38:09 +0200 (EET) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2016 17:38:13 -0000 2016-12-15 18:05, Gary Palmer написав: > On Thu, Dec 15, 2016 at 05:27:02PM +0200, Artem Viklenko wrote: >> 2016-12-15 14:28, Eugene Grosbein ??????????????: >> > On 15.12.2016 19:23, Eugene M. Zheganin wrote: >> > >> >> but at the time of investigation the socket is already closed and lsof >> >> cannot show me the owner. I wonder if the kernel can itself decode >> >> this >> >> output and write it in the human-readable form ? >> > >> > Until that's not implemented, you can monitor "netstat -Lan" output and >> > continuously save it for later analisys and/or draw graphs. >> > >> >> netstat -LanA -f inet ? > > That's only IPv4 sockets (or sockets that are listening on both > families > at the same time). If you are dual stack with IPv6, you'd probably > also > need to capture > > netstat -LanA -f inet6 > Sure, the point was that -A flag showes tcb addresses. :) > Regards, > > Gary -- Regards!