From owner-freebsd-questions@FreeBSD.ORG Sat Nov 13 21:53:31 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D60A1065679 for ; Sat, 13 Nov 2010 21:53:31 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (ns2.r-bonomi.com [204.87.227.129]) by mx1.freebsd.org (Postfix) with ESMTP id B73608FC17 for ; Sat, 13 Nov 2010 21:53:30 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.3/rdb1) id oADLpP0X026343 for freebsd-questions@freebsd.org; Sat, 13 Nov 2010 15:51:25 -0600 (CST) Date: Sat, 13 Nov 2010 15:51:25 -0600 (CST) From: Robert Bonomi Message-ID: <201011132151.oADLpP0X026343@mail.r-bonomi.com> To: freebsd-questions@freebsd.org Subject: Re: How to obtain how much CPU take packet check on ipfw X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2010 21:53:31 -0000 > From owner-freebsd-questions@freebsd.org Sat Nov 13 13:49:50 2010 > Date: Sat, 13 Nov 2010 20:03:55 +0200 > From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= > To: freebsd-questions@freebsd.org > Subject: How to obtain how much CPU take packet check on ipfw > > Hi, Freebsd-questions. > > How to obtain how much CPU time take packet traversing via firewall? Some particular packet, or just a 'typical' packet? The latter number is -much- easier to get thant the former. See how much CPU time ipfw used during a given interval. See how many packets were handled during that same interval. Divide the first number by the second. this will give you 'average' cpu tie per packet.