From owner-freebsd-net@FreeBSD.ORG Sun Jul 27 21:27:14 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F303494D for ; Sun, 27 Jul 2014 21:27:14 +0000 (UTC) Received: from mail-qa0-x22e.google.com (mail-qa0-x22e.google.com [IPv6:2607:f8b0:400d:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AFB9229EF for ; Sun, 27 Jul 2014 21:27:14 +0000 (UTC) Received: by mail-qa0-f46.google.com with SMTP id v10so7060873qac.19 for ; Sun, 27 Jul 2014 14:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=5Vo3hlRl8Ue5Y7IJ2Ix5Iog+Rlv7xT4UzyP12UqQ5Sk=; b=fJX0haNtgXlNfSIr2+FTLeSqACBWvbvdRdxyAXV6hpNZ4hM2AUkAhvzLUtwuBa5ovh 1UXnnLVjoKceAniGcFNgWkb1I35Ot7riZkIYt+OckorteK797bx6D1KG2gFCNjTBJD+g 1x/330TkAoX0bwACV1D0suoCGsU4kZX9foL6yBLpPtvyxxonkbrRIcLr3t2BwOAJBxTB RKlQHFridwtYpyNpkDR1t74Q9YglB4E2F3TvSQckwNVTITjb9WMDY6jMN7irt83QYjfc 1U26/VUOwRZBJt2ZXPGWx3xoE0TaVL3gOkHecE2uSj4nSMZOvFT5YRWf+/SdIkOSRTzG NrbA== MIME-Version: 1.0 X-Received: by 10.140.38.169 with SMTP id t38mr51647991qgt.3.1406496433795; Sun, 27 Jul 2014 14:27:13 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.1.6 with HTTP; Sun, 27 Jul 2014 14:27:13 -0700 (PDT) In-Reply-To: <83597B15-63B3-4AD7-A458-00B67C9E5396@neville-neil.com> References: <53CE80DD.9090109@gmail.com> <53CEB090.7030701@gmail.com> <53CEB670.9060600@gmail.com> <53CEB9B5.7020609@gmail.com> <83597B15-63B3-4AD7-A458-00B67C9E5396@neville-neil.com> Date: Sun, 27 Jul 2014 14:27:13 -0700 X-Google-Sender-Auth: rZuEh8vVVwdh-zuCx0YsRnufHZs Message-ID: Subject: Re: fastforward/routing: a 3 million packet-per-second system? From: Adrian Chadd To: George Neville-Neil Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Net , Navdeep Parhar , John Jasen X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2014 21:27:15 -0000 On 27 July 2014 13:42, George Neville-Neil wrote: > On 22 Jul 2014, at 20:30, Adrian Chadd wrote: > >> hi! >> >> You can use 'pmcstat -S CPU_CLK_UNHALTED_CORE -O pmc.out' (then ctrl-C >> it after say 5 seconds), which will log the data to pmc.out; >> then 'pmcannotate -k /boot/kernel pmc.out /boot/kernel/kernel' to find >> out where the most cpu cycles are being spent. >> > > Chiming in late, but don't you mean instruction-retired instead of > CPU_CLK_UNHALTED_CORE? Nope. the hardware retires instructions in parallel. That gives a different indication of a different class of bottlenecks. -a