From owner-freebsd-net@FreeBSD.ORG Wed Oct 1 08:51:05 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B9BA670D for ; Wed, 1 Oct 2014 08:51:05 +0000 (UTC) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 7BFFBFAA for ; Wed, 1 Oct 2014 08:51:05 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 96A037300A; Wed, 1 Oct 2014 10:56:01 +0200 (CEST) Date: Wed, 1 Oct 2014 10:56:01 +0200 From: Luigi Rizzo To: Long Tran Subject: Re: Netmap - Packet generating performance changes Message-ID: <20141001085601.GA5641@onelab2.iet.unipi.it> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "Gurkan, Deniz" , FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2014 08:51:05 -0000 On Wed, Oct 01, 2014 at 03:42:06AM -0500, Long Tran wrote: > Hello, > > I am experimenting netmap and see one strange behavior. > When I am generating packets using pkt-gen example from PC1 to PC2, the > rate is about 3Mpps. But when I run pkg-gen -f rx -i p1p1 from PC2, the > generating rate in PC1 goes up to 14.66Mpps. > > I thought the performance of netmap in one PC didn't depend on the other > end. > Could anyone help explain it to me please? flow control on the link is responsible for the slowdown. On FreeBSD, sysctl dev.ix.0.fc=0 disables that On Linux i think it is some ethtool command cheers luigi > > Thanks, > *Long Tran* > Research Assistant > MS in Network Communications and Technology Project Management > University of Houston > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"