From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 2 05:44:52 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE0761065679 for ; Tue, 2 Jun 2009 05:44:52 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 4CC3D8FC20 for ; Tue, 2 Jun 2009 05:44:52 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id n525SBYR092438 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 2 Jun 2009 00:28:11 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id n525SBwc039194 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 2 Jun 2009 00:28:11 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id n525S9hh039193; Tue, 2 Jun 2009 00:28:09 -0500 (CDT) (envelope-from dan) Date: Tue, 2 Jun 2009 00:28:09 -0500 From: Dan Nelson To: Julian Elischer Message-ID: <20090602052809.GF90077@dan.emsphone.com> References: <4A249906.8050802@ucla.edu> <4A24AB0C.70506@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A24AB0C.70506@elischer.org> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Tue, 02 Jun 2009 00:28:11 -0500 (CDT) X-Scanned-By: MIMEDefang 2.45 Cc: Jason Chambers , freebsd-hackers@freebsd.org Subject: Re: Monitoring throughput of PCIe lanes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 05:44:53 -0000 In the last episode (Jun 01), Julian Elischer said: > Jason Chambers wrote: > > I'm wondering if there is currently a way to monitor the throughput of a > > PCIe lane or group of lanes associated with a device ? > > > > I've done a little exploring of the source and man pages but have yet to > > find anything that seems to relate in an obvious form. > > unfortunatly PCIe traffic occurs at a level below that at which the OS can > really monitor. > > there would have to be some hardware support I think. Solaris has a busstat command that can print a huge number of low-level counters, including PCI DMA counts. If it's supported under OpenSolaris it should be easy to check and see whether it's dependant on Sun hardware or works with any PC (just boot it up and run busstat -l). -- Dan Nelson dnelson@allantgroup.com