From owner-freebsd-pf@FreeBSD.ORG Sat Mar 28 14:45:59 2009 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F57A10656BB for ; Sat, 28 Mar 2009 14:45:59 +0000 (UTC) (envelope-from grishin-mailing-lists@minselhoz.samara.ru) Received: from mail.minselhoz.samara.ru (mail.minselhoz.samara.ru [195.128.135.231]) by mx1.freebsd.org (Postfix) with ESMTP id B3EAC8FC20 for ; Sat, 28 Mar 2009 14:45:58 +0000 (UTC) (envelope-from grishin-mailing-lists@minselhoz.samara.ru) Received: from [94.180.156.209] (helo=[192.168.0.15]) by mail.minselhoz.samara.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LnZn5-000DBT-23; Sat, 28 Mar 2009 18:45:43 +0400 Message-ID: <49CE3822.409@minselhoz.samara.ru> Date: Sat, 28 Mar 2009 18:45:54 +0400 From: Yuriy Grishin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14 MIME-Version: 1.0 To: Jay Aikat References: <49CE29DB.7010803@unc.edu> In-Reply-To: <49CE29DB.7010803@unc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-pf@freebsd.org Subject: Re: pftop queue stats X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 14:45:59 -0000 Jay Aikat wrote: > Hi, > I am looking for a way to log queue stats at less than 1 second > intervals. > > On my FreeBSD router, the pf.conf file is configured as follows: > > altq on $ext_if1 priq bandwidth 622Mb qlimit 65535 queue { tcp_q1 } > > queue tcp_q1 on $ext_if1 qlimit 65535 priq (default) > > Using pftop, I can get queue lengths per second at best. > $ pftop -s 1 -v queue -d 1000 > pftop.out > > Is there an option in pftop to log stats per millisecond, or even > 100ms? The -s option above seems to default to 1 second at best. > > Thanks for any pointers you can give me. I suppose that there should be some pre-defined variables in the source code. BTW Why do you use an extremely large qlimit?