From owner-freebsd-net@FreeBSD.ORG Tue Mar 24 14:14:36 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8591710656E0 for ; Tue, 24 Mar 2009 14:14:36 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 033B78FC1A for ; Tue, 24 Mar 2009 14:14:35 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPA id 238369983; Tue, 24 Mar 2009 15:14:33 +0200 Message-ID: <49C8DCB9.5040406@FreeBSD.org> Date: Tue, 24 Mar 2009 15:14:33 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: Andrey Kropachev References: <1237897382.00091371.1237885201@10.7.7.3> In-Reply-To: <1237897382.00091371.1237885201@10.7.7.3> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: dummynet and smp X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 14:14:37 -0000 Andrey Kropachev wrote: > Is there an opportunity to scale dummynet on a number of cpu's? Currently my > router processes about 200Mbit/s and around 50kpps. The dummynet takes about > 80% of one processor. So, can dummynet be scaled, or can i somehow decrease > the cpu usage of dummynet? Dummynet itself quite effective. The 80% you see is probably some other routines called after packets leaving dummynet. So you should try to optimize other things as much as possible. 200Mbit/s and 50kpps is a quite moderate traffic now. Dummynet queue handler is really single-threaded, so the only thing you can do is to enable new dummynet feature, that allows to bypass delay when queue is not congested. -- Alexander Motin