Netmap: Failed to run multi-thread using pkt-gen

Luigi Rizzo rizzo at iet.unipi.it
Tue Oct 7 15:41:32 UTC 2014


how many queues do you have ?
you need to run with as many threads as there are queues.
If hyperthreading is on you are likely to have 12 virtual cores,
and depending on the OS the driver might limit the number to 8
(this is what happens on FreeBSD).

pkt-gen with a single thread should tell you how many queues
are available

cheers
luigi


On Tue, Oct 7, 2014 at 5:29 PM, Yue Zhuo <zyue1105 at tamu.edu> wrote:

> Hi there,
>
> I was testing the newest netmap on a dual-port x520-T2 adapter using a
> 6-core machine.
>
> However, I always get error in* nm_txsync_prologue *for n - 1 threads when
> I try to use n threads (n > 1), which indicates the cur pointer points to a
> wrong place. At last, only one thread works correctly.
>
> Here is how I send packets: ./pkt-gen -i ix0 -f tx -c 6 -p 6
>
> Any ideas about the issue?
>
>
> Thanks,
>
> Yue
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>



-- 
-----------------------------------------+-------------------------------
 Prof. Luigi RIZZO, rizzo at iet.unipi.it  . Dip. di Ing. dell'Informazione
 http://www.iet.unipi.it/~luigi/        . Universita` di Pisa
 TEL      +39-050-2211611               . via Diotisalvi 2
 Mobile   +39-338-6809875               . 56122 PISA (Italy)
-----------------------------------------+-------------------------------


More information about the freebsd-net mailing list