From owner-freebsd-net@FreeBSD.ORG Thu Jul 24 12:47:23 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 98510B39; Thu, 24 Jul 2014 12:47:23 +0000 (UTC) Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (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 5AEBA2C4A; Thu, 24 Jul 2014 12:47:23 +0000 (UTC) Received: by mail-ig0-f176.google.com with SMTP id hn18so6410056igb.15 for ; Thu, 24 Jul 2014 05:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=gpfxwxhRjaefu/+T2wa7GMhOmui7U++OJ8sIdyCnW+c=; b=zww+/kZcGfMvIgrzEkpWVzBGoARGCyWwjEZQZcRfdM+X9nsH40LVkTAR6l3xwRGyuv Av26R69khmPtzixHYS71hYDi86oyXi2t3DEhNcQbR4db/zUNMjj3cV9vJBGeTBAEN5S+ KDmrYMLOyruG/GQDDSRfCUX5EYetliWyFjLZHSmErAZSqTZcRi+wv5sb7VQwGBRaWCkI Eq+yaYlz0mI4Y3H/elrQ+IoOYK8mNoYwqAGcWkKECL1QmM2spmfXva05fzH2RjpqBvQh BKDFIlTbDlwhjX96XXEfI9R48qWmNdVnzzakdjMJgXmxp0csqTWaEqtavMjrXRm8LHFc dsZw== X-Received: by 10.50.136.167 with SMTP id qb7mr5669418igb.31.1406206042800; Thu, 24 Jul 2014 05:47:22 -0700 (PDT) Received: from [10.0.0.215] ([96.234.167.12]) by mx.google.com with ESMTPSA id ik1sm69831023igb.18.2014.07.24.05.47.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jul 2014 05:47:19 -0700 (PDT) Message-ID: <53D10055.1050304@gmail.com> Date: Thu, 24 Jul 2014 08:47:17 -0400 From: John Jasen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "Andrey V. Elsukov" , FreeBSD Net , "Alexander V. Chernikov" Subject: Re: fastforward/routing: a 3 million packet-per-second system? References: <53CE80DD.9090109@gmail.com> <53D0D0B2.6080600@yandex.ru> In-Reply-To: <53D0D0B2.6080600@yandex.ru> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Thu, 24 Jul 2014 12:47:23 -0000 On 07/24/2014 05:24 AM, Andrey V. Elsukov wrote: > On 22.07.2014 19:18, John Jasen wrote: >> Feedback and/or tips and tricks more than welcome. >> >> Outstanding questions: >> >> Would increasing the number of processor cores help? > AFAIR, increasing the number of cores will lead to worse results. > With patched and tuned FreeBSD we able to route (with fastforwarding) > about 7 Mpps IPv4 and 2.5Mpps IPv6. But the stock system is far from > even half of this results. > Increasing the physical CPU count can (and probably will) result in performance degradation. However, from what I've seen, balancing IRQs across the cores on a single physical CPU seems to help. I am curious as well, as to how you achieved 7 Mpps. Can you share the system specs, the patches and tuning? Thanks! -- John Jasen (jjasen@gmail.com)