From owner-freebsd-net@FreeBSD.ORG Tue May 21 14:21:14 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F10C9735 for ; Tue, 21 May 2013 14:21:14 +0000 (UTC) (envelope-from hoomanfazaeli@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) by mx1.freebsd.org (Postfix) with ESMTP id 8983B3E7 for ; Tue, 21 May 2013 14:21:14 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id c10so403417wiw.3 for ; Tue, 21 May 2013 07:21:13 -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:x-enigmail-version:content-type :content-transfer-encoding; bh=EZH3INnmS6PFIkxoZGKu9YLJv4t6pqVZMFZSScBRRy4=; b=s02gx8PKSXUWcaLQTo8QTth9e20XU0oxk9evEw7aUGZ/ZD19WA7tcQVvj4wMeL3osT axfi7ltDLoEO8W/PKFOjKyWrpCb3b12/ryoQXGgk5lzgzReZbJ7K8uTOvI2tilhUp8M7 FCcLCMq/Tqcw2MaKcSof0wDb8ypRgP9l63eDiHGswwVphKIWWM38J99UpdAJafmxDLSa fnW5aBhD10odFm5gRuVquJnkOX+S+UqF0wkyBY2zF4/yd06Zs6y/sX5x7zo+/nIbCXPw U0u+PrNLuwP4jzzok4Q1PeWQIlrwXJ1sqG9TC4lJNst2pMSQwzL/LfckWmj8/weoOQAN 7G5w== X-Received: by 10.180.74.207 with SMTP id w15mr5456688wiv.19.1369146073647; Tue, 21 May 2013 07:21:13 -0700 (PDT) Received: from [192.168.2.30] ([2.176.232.238]) by mx.google.com with ESMTPSA id x13sm4208302wib.3.2013.05.21.07.21.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 May 2013 07:21:12 -0700 (PDT) Message-ID: <519B82D8.9010508@gmail.com> Date: Tue, 21 May 2013 18:51:12 +0430 From: Hooman Fazaeli User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Re: netmap bridge can tranmit big packet in line rate ? References: <1369140007.80942.YahooMailClassic@web121602.mail.ne1.yahoo.com> In-Reply-To: <1369140007.80942.YahooMailClassic@web121602.mail.ne1.yahoo.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Tue, 21 May 2013 14:21:15 -0000 On 5/21/2013 5:10 PM, Barney Cordoba wrote: > > --- On Tue, 5/21/13, liujie wrote: > >> From: liujie >> Subject: Re: netmap bridge can tranmit big packet in line rate ? >> To: freebsd-net@freebsd.org >> Date: Tuesday, May 21, 2013, 5:25 AM >> Hi, Prof.Luigi RIZZO >> >> Firstly i should thank you for netmap. I tried to send a >> e-mail to you >> yestoday, but it was rejected. >> >> I used two machines to test netmap bridge. all with i7-2600 >> cpu and intel >> 82599 dual-interfaces card. >> >> One worked as sender and receiver with pkt-gen, the other >> worked as bridge >> with bridge.c. >> >> as you said,I feeled comfous too when i saw the big packet >> performance >> dropped, i tried to change the memory parameters of >> netmap(netmap_mem1.c >> netmap_mem2.c),but it seemed that can not resove the >> problem. >> 60-byte packet send 14882289 pps recv >> 13994753 pps >> 124-byte >> send 8445770 pps >> recv 7628942 pps >> 252-byte >> send 4529819 pps >> recv 3757843 pps >> 508-byte >> send 2350815 pps >> recv 1645647 pps >> 1514-byte send >> 814288 pps recv 489133 >> pps > These numbers indicate you're tx'ing 7.2Gb/s with 60 byte packets and > 9.8Gb/s with 1514, so maybe you just need a new calculator? > > BC > _______________________________________________ > AsBarney pointed outalready, your numbers are reasonable. You have almost saturated the link with 1514 byte packets.In the case of 64 byte packets, you do not achieve line rate probably because of the congestion on the bus.Can you show us "top -SI" output on the sender machine? -- Best regards. Hooman Fazaeli