From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 2 13:14:10 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 6E07B1065672 for ; Tue, 2 Jun 2009 13:14:10 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65]) by mx1.freebsd.org (Postfix) with ESMTP id 408038FC25 for ; Tue, 2 Jun 2009 13:14:10 +0000 (UTC) (envelope-from ler@lerctr.org) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lerami; d=lerctr.org; h=Received:Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:User-Agent:MIME-Version:Content-Type:X-Spam-Score:X-LERCTR-Spam-Score:X-Spam-Report:X-LERCTR-Spam-Report:DomainKey-Status; b=DMZUB7Jlg6VZMoCg3drZUDT9GGBLyg84j3zm9c5pomeMlZuaO8G5ivD8Mq3VYAXJXNPfzQIRthpGxzKLL21UIsD63IINuZmkaDIW+PdLEMZq+Qcz0rle2Smkcq46VYAJa2IwjadR7eGRvcKH5rYULIpkrdOlfYLBFxOC6QmH37g=; Received: from thebighonker.lerctr.org ([192.147.25.65]:50517) by thebighonker.lerctr.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MBTef-000G5U-9C; Tue, 02 Jun 2009 08:03:50 -0500 Date: Tue, 2 Jun 2009 08:03:47 -0500 (CDT) From: Larry Rosenman To: Dan Nelson In-Reply-To: <20090602052809.GF90077@dan.emsphone.com> Message-ID: References: <4A249906.8050802@ucla.edu> <4A24AB0C.70506@elischer.org> <20090602052809.GF90077@dan.emsphone.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Score: -4.4 (----) X-LERCTR-Spam-Score: -4.4 (----) X-Spam-Report: SpamScore (-4.4/5.0) ALL_TRUSTED=-1.8,BAYES_00=-2.599 X-LERCTR-Spam-Report: SpamScore (-4.4/5.0) ALL_TRUSTED=-1.8,BAYES_00=-2.599 DomainKey-Status: no signature Cc: Jason Chambers , freebsd-hackers@freebsd.org, Julian Elischer 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 13:14:10 -0000 On Tue, 2 Jun 2009, Dan Nelson wrote: > 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). > On a SuperMicro board: root@borg:~# busstat -l busstat: No devices available in system. root@borg:~# That's under OpenSolaris 2008.11 So, I expect it needs hardware support. > -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893