From owner-freebsd-net@FreeBSD.ORG Wed Sep 25 03:37:51 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4B6A1C5A for ; Wed, 25 Sep 2013 03:37:51 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [IPv6:2a00:1450:4010:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CDA9722D0 for ; Wed, 25 Sep 2013 03:37:50 +0000 (UTC) Received: by mail-la0-f50.google.com with SMTP id gx14so4445769lab.37 for ; Tue, 24 Sep 2013 20:37:48 -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=1zA+yw6vF5hz6jx3chwyy9bv/SWAN93p/8dU8Z9ORbs=; b=HQbud9u9qo+bLzWsex9mj8n9M7Oi44eSEQbICwSB6OIr/h6NEaoJea6GhqnZ01Y0K6 dqyd2RgBHnb5gDOGa5J+jQM2JVNYPl+d9k9s4O50f0wRr4eVn1O2zrPkfGTvUaLmDxbj EcWozlJH+aQc9x0fniTXjV6QmkfOe7Ltucv7GX2wjvr4w9UIWREDzgOWeX7HsuOikfiL tqUVG8ZmRZGdYHi832klEJyODcznh2X3MC4/jANlUT5uNVCM01lJJlwljIgqIMztmOYP UnMqTDVBq52lrh58HcR204dUxzm59mkeNzgudlbUI8hbub+QgNoJ5Gi4gOWK2LrPy9ql VIdg== MIME-Version: 1.0 X-Received: by 10.112.57.49 with SMTP id f17mr9930073lbq.26.1380080268703; Tue, 24 Sep 2013 20:37:48 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.172.105 with HTTP; Tue, 24 Sep 2013 20:37:48 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Sep 2013 05:37:48 +0200 X-Google-Sender-Auth: bhGKh6NHp7zh1pY0ulPiqR7wQ_I Message-ID: Subject: Re: netmap: understanding pkg-gen.c From: Luigi Rizzo To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-net@freebsd.org" 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: Wed, 25 Sep 2013 03:37:51 -0000 On Wed, Sep 25, 2013 at 5:32 AM, hiren panchasara wrote: > I am new to netmap so thought of confirming my understanding. > ... > > On this box, I have 2 interfaces igb0 (10.73.149.28) and ix1 (10.73.149.17) > and this is how I am using this binary: > > -bash-4.2$ sudo ./pkt-gen -i ix1 -f tx -n 100000000 -c 8 -p 8 -d > 10.73.149.17 -s 10.73.149.28 ... > I can only specify -p (threads) upto 8 because it cannot be more than the > hw.ix.num_queues=8, is that correct? correct. it's either 1 or the total number of queues. And you can almost surely get line rate with a single thread. cheers luigi