From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 2 04:31:09 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 65045106566C for ; Tue, 2 Jun 2009 04:31:09 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outN.internet-mail-service.net (outn.internet-mail-service.net [216.240.47.237]) by mx1.freebsd.org (Postfix) with ESMTP id 4DB978FC0A for ; Tue, 2 Jun 2009 04:31:09 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 39DF3322D9; Mon, 1 Jun 2009 21:31:09 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id AB8672D600F; Mon, 1 Jun 2009 21:31:08 -0700 (PDT) Message-ID: <4A24AB0C.70506@elischer.org> Date: Mon, 01 Jun 2009 21:31:08 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: Jason Chambers References: <4A249906.8050802@ucla.edu> In-Reply-To: <4A249906.8050802@ucla.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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 04:31:09 -0000 Jason Chambers wrote: > Hello all, > > 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. > > I wonder if netgraph could somehow be used for this ? > > > Thanks, > > --Jason > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" 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. THEORETICALLY you could get every device driver to report back how much traffic it has sent to each device and you could aggregate that by bus bt it would be a lot of work and overhead ad wouldn't really be agood measure of burst throughput...