From owner-freebsd-net@FreeBSD.ORG Fri Aug 16 17:59:31 2013 Return-Path: Delivered-To: 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 ESMTP id DEB35A14; Fri, 16 Aug 2013 17:59:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 20182276B; Fri, 16 Aug 2013 17:59:30 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id hi8so1063431wib.15 for ; Fri, 16 Aug 2013 10:59:29 -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:message-id:subject :from:to:cc:content-type; bh=IxUKeSU9a3GYco3yy2FckMPeMc+STXLr8WYJmCWJVGg=; b=Uoclntpfof6vZPcqRON4UKizrLCzKZYfhDnzrQ0UZ10chcTgIiErTPeBCVL0gFcZv4 bKdZHFnwMVOvgIpx1fqGqbPi4bT5w6Jo+lceuVPycsBL7rH7sYI2p1FDRH8U8QSU7C1C tvOEa404hcE6ney6deE8fWGgNc9dxiZ2YAWlpymGGxaP8bccYFvuf5qn/Jc5mFJRM1D1 VuHFVooREcXP5TsIHbnw8bfUNDb0oepCdIJ6FEzFXADIpQleIhZjxqHR6fAYQhcfwXSh 17gWQkSRHXgkGkvxPh/m7u5oGUJdsiLr1rnzhJIPnylKGVIA3IbaQhlllnmFjWfCxtIv I2Tw== MIME-Version: 1.0 X-Received: by 10.180.20.116 with SMTP id m20mr63138wie.46.1376675969210; Fri, 16 Aug 2013 10:59:29 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.116.136 with HTTP; Fri, 16 Aug 2013 10:59:29 -0700 (PDT) In-Reply-To: References: <520A6D07.5080106@freebsd.org> <520AFBE8.1090109@freebsd.org> <520B24A0.4000706@freebsd.org> <520B3056.1000804@freebsd.org> <20130814102109.GA63246@onelab2.iet.unipi.it> <587579055.20130814154713@serebryakov.spb.ru> Date: Fri, 16 Aug 2013 10:59:29 -0700 X-Google-Sender-Auth: vk_WhoyFlF0yEi9xSTBFb5BykLE Message-ID: Subject: Re: it's the output, not ack coalescing (Re: TSO and FreeBSD vs Linux) From: Adrian Chadd To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Lawrence Stewart , Lev Serebryakov , FreeBSD Net , Vijay Singh X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 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, 16 Aug 2013 17:59:31 -0000 On 16 August 2013 10:06, Luigi Rizzo wrote: > the usenix paper and talk > > https://www.usenix.org/conference/usenixfederatedconferencesweek/netmap-novel-framework-fast-packet-io > should give a short description of what i did. > > Basically i manually insert returns (and free mbufs and resources) > in some place in the path and then compute the time consumed by > the code as the inverse of the average pps over 0.1 .. 1s intervals. > By moving the point where i place the return, i can estimate the > cost of the various sections of code involved. > > Cool. I think I've seen this stuff. I may have to spin up netmap soon, if only to look at how much more efficient (and how!) you're driving the CPU and IO bus. -adrian