From owner-freebsd-ipfw@FreeBSD.ORG Fri Jan 22 21:52:02 2010 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84621106568F for ; Fri, 22 Jan 2010 21:52:02 +0000 (UTC) (envelope-from mike@magicislandtechnologies.com) Received: from mail.magicislandtechnologies.com (mail.magicislandtechnologies.com [74.208.96.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3A5CA8FC15 for ; Fri, 22 Jan 2010 21:52:01 +0000 (UTC) Received: (qmail 32571 invoked from network); 23 Jan 2010 01:44:21 +0300 Received: from unknown (HELO mork.mitglobalnet.net) (mike@217.194.139.22) by mail.magicislandtechnologies.com with SMTP; 23 Jan 2010 01:44:21 +0300 Message-ID: <4B59F8F8.3000902@magicislandtechnologies.com> Date: Fri, 22 Jan 2010 21:14:00 +0200 From: Michael Spratt Organization: Magic Island Technologies User-Agent: Thunderbird 2.0.0.6 (X11/20070818) MIME-Version: 1.0 To: Luigi Rizzo References: <25ff90d61001021736p7b695197q104f4a7769b51b71@mail.gmail.com> <20100110185232.GA27907@onelab2.iet.unipi.it> <20100112110539.GQ10388@korolev-net.ru> <20100122131026.GC19815@korolev-net.ru> <20100122133905.GA21059@onelab2.iet.unipi.it> <20100122133535.GD19815@korolev-net.ru> <20100122134628.GA22078@onelab2.iet.unipi.it> <20100122164246.GE19815@korolev-net.ru> <20100122171513.GA86641@onelab2.iet.unipi.it> In-Reply-To: <20100122171513.GA86641@onelab2.iet.unipi.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ipfw@freebsd.org, Evgenii Davidov Subject: Re: dummynet: waking up pipe X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mike@magicislandtechnologies.com List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 21:52:02 -0000 you should use vstat or something to see if its interrupts eating your cpu.. Luigi Rizzo wrote: > On Fri, Jan 22, 2010 at 07:42:46PM +0300, Evgenii Davidov wrote: >> ????????????, >> >> On Fri, Jan 22, 2010 at 02:46:28PM +0100, Luigi Rizzo ?????: >> >>> On Fri, Jan 22, 2010 at 04:35:35PM +0300, Evgenii Davidov wrote: >>> ... >>>>>>> my problem is that dummynet cpu usage jumps from 0 to 99%: >>>>>>> >>>>>>> 33 root 1 -68 - 0K 8K - 1 512.6H 86.18% dummynet >>>>>>> 33 root 1 -68 - 0K 8K - 1 512.6H 85.89% dummynet >>>>>>> 33 root 1 -68 - 0K 8K - 1 512.6H 88.28% dummynet >>>>>>> 33 root 1 -68 - 0K 8K - 0 512.6H 78.17% dummynet >>>>>>> 33 root 1 -68 - 0K 8K - 0 512.6H 0.88% dummynet >>>>>>> 33 root 1 -68 - 0K 8K - 1 512.6H 0.10% dummynet >>>>>>> 33 root 1 -68 - 0K 8K - 1 512.7H 0.00% dummynet >>>>>>> 33 root 1 -68 - 0K 8K - 1 512.7H 0.10% dummynet >>>>> i am not too clear on why this happens -- there shuold be only >>>>> one instance of the dummynet thread, not 8 as in your case. >>>> no-no, one instance, it's a grep of a top log >>> ok then it's rather normal -- the task wakes up every millisecond and >>> it might have hundreds of packets to send at once, especially when >>> the machine is heavily loaded as in your case. >> but since i restricted dummunet to run only on cpu 0 it's much better >> maybe it's some smp problem in freebsd7 > > maybe the memory affinity helps a bit here. > > cheers > luigi >> -- >> Evgenii V Davidov >> _______________________________________________ >> freebsd-ipfw@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw >> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" > -- -------------------------------------------------- Mike Spratt - Iraq (GMT+3) Office: (214)242-1782 DSN: (318)847-2983 Cell: +964-770-398-4366 mike@magicislandtechnologies.com ---------------------------------------------------