From owner-freebsd-net@FreeBSD.ORG Thu Apr 19 20:34:47 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46B9F106564A; Thu, 19 Apr 2012 20:34:47 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id E4EAE8FC12; Thu, 19 Apr 2012 20:34:46 +0000 (UTC) Received: by iahk25 with SMTP id k25so16162210iah.13 for ; Thu, 19 Apr 2012 13:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=buv4RqLaamZ9gTkWjFB/bxxdamfK4foqvoXtm3kgcJU=; b=JUJQSYXJ14ujWukrqAypqDfUyHL1hTA3z9ggWHHoyAruNH1TE6mq9TFr0D0iLOxPzX HP02eO/dyzR4QKc5Wvdd+bpWNDFkg1cFZYo1gxwijITl22i7PGEiyWYnIuvB07py6hyj OPJdqjzgoPJ7we+iVixv1skqj8DgMVmPm9jaa5jFJOIM5V+iNua1jx2yu5oybGlnaAxO GswWa0P2IWvvt8RlcdaWgz6Bh9rDXOIe5twrpqQ1XRczyS954jDeR7MQP58B13kEbtz4 fawQDxs1cqnUMi/iO1d0a3EwOdDkL9AuPpzcMQeScvvrW4yPTMVIrYZZUAALB1rfTNtn CyOQ== MIME-Version: 1.0 Received: by 10.42.215.68 with SMTP id hd4mr3039567icb.30.1334867685664; Thu, 19 Apr 2012 13:34:45 -0700 (PDT) Sender: kmacybsd@gmail.com Received: by 10.50.129.39 with HTTP; Thu, 19 Apr 2012 13:34:45 -0700 (PDT) In-Reply-To: <20120419204622.GA94904@onelab2.iet.unipi.it> References: <20120419133018.GA91364@onelab2.iet.unipi.it> <4F907011.9080602@freebsd.org> <20120419204622.GA94904@onelab2.iet.unipi.it> Date: Thu, 19 Apr 2012 22:34:45 +0200 X-Google-Sender-Auth: bUKbyZeO5HKtET2VBglA8ZX2Ja4 Message-ID: From: "K. Macy" To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Andre Oppermann , current@freebsd.org, net@freebsd.org Subject: Re: Some performance measurements on the FreeBSD network stack 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: Thu, 19 Apr 2012 20:34:47 -0000 >> This is indeed a big problem. =A0I'm working (rough edges remain) on >> changing the routing table locking to an rmlock (read-mostly) which > This only helps if your flows aren't hitting the same rtentry. Otherwise you still convoy on the lock for the rtentry itself to increment and decrement the rtentry's reference count. > i was wondering, is there a way (and/or any advantage) to use the > fastforward code to look up the route for locally sourced packets ? > If the number of peers is bounded then you can use the flowtable. Max PPS is much higher bypassing routing lookup. However, it doesn't scale to arbitrary flow numbers. -Kip