From owner-freebsd-net@freebsd.org Fri Jan 8 08:13:57 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C016BA67730 for ; Fri, 8 Jan 2016 08:13:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8F47814E8 for ; Fri, 8 Jan 2016 08:13:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x233.google.com with SMTP id z14so52367818igp.1 for ; Fri, 08 Jan 2016 00:13:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fir5OMEL947U57kojoM6nH5dKMoeNOOK/ZS/mq3o8Tc=; b=bpW6gW/FVQ4m9yhnhNiQu5PMNROjWusBC7T0iN1mznv2zXkeeC48QVDaE5MAj0YQg6 OeYXk74D14yZEBxqxDebUgnFwuqYynjY7frylIXycEPcbtloAymhKe+AJMukzh7oLgqt ZIEk76VoC/jWa42EQFq6b0hQnsNCmzsaZ7mYnN0UoPUbMk0T+ITpJwpSfTukKonTHesL PKoZWKibGqFXGv9/l9AcRVQFdEvb508eiUsM5HudqLsO61qgydnOKyo9yY5Qb8X5ywXB NUzJrQB8LuyngCqjhFJ4eErVmncbg+1tF+KZbBjKK2zRTe4GXvSFtiqH78NVNxBU//6U BTkQ== MIME-Version: 1.0 X-Received: by 10.50.171.225 with SMTP id ax1mr18349494igc.61.1452240837012; Fri, 08 Jan 2016 00:13:57 -0800 (PST) Received: by 10.36.121.202 with HTTP; Fri, 8 Jan 2016 00:13:56 -0800 (PST) In-Reply-To: <20160108075815.3243.qmail@f5-external.bushwire.net> References: <20160104101747.58347.qmail@f5-external.bushwire.net> <20160104194044.GD3625@kib.kiev.ua> <20160104210741.32812.qmail@f5-external.bushwire.net> <20160107161213.GZ3625@kib.kiev.ua> <20160107192840.GF3625@kib.kiev.ua> <20160108172323.W1815@besplex.bde.org> <20160108075815.3243.qmail@f5-external.bushwire.net> Date: Fri, 8 Jan 2016 00:13:56 -0800 Message-ID: Subject: Re: Does FreeBSD have sendmmsg or recvmmsg system calls? From: Adrian Chadd To: Mark Delany Cc: FreeBSD Net Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2016 08:13:57 -0000 On 7 January 2016 at 23:58, Mark Delany wrote: > On 08Jan16, Bruce Evans allegedly wrote: >> If the NIC can't reach line rate > >> Network stack overheads are also enormous. > > Bruce makes some excellent points. > > I challenge anyone to get line rate UDP out of FBSD (or Linux) for a > 1G NIC yet alone a 10G NIC listening to a single port. It was exactly > my frustration with UDP performance that led me down the path of > *mmsg() and netmap. > > Frankly this is an opportunity for FBSD as UDP performance appears to > be a neglected area. I'm there, on 16 threads. I'd rather we do it on two or three, as a lot of time is wasted in producer/consumer locking. but yeah, 500k tx/rx should be doable per CPU with only locking changes. -a -adrian > > > Mark. > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"