netmap: understanding pkg-gen.c

Luigi Rizzo rizzo at iet.unipi.it
Wed Sep 25 03:37:51 UTC 2013


On Wed, Sep 25, 2013 at 5:32 AM, hiren panchasara
<hiren.panchasara at gmail.com> 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


More information about the freebsd-net mailing list