Date: Tue, 7 Oct 2014 17:41:30 +0200 From: Luigi Rizzo <rizzo@iet.unipi.it> To: Yue Zhuo <zyue1105@tamu.edu> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Re: Netmap: Failed to run multi-thread using pkt-gen Message-ID: <CA%2BhQ2%2Bi7_mXXPfL%2BxCs5KMHKy-6T4G7Y_won8o82voGL81L8kQ@mail.gmail.com> In-Reply-To: <CAEez2MnagDBCtA-aFoQOQo-SG=V9vvjOX5rtiotzWA0zqemx-w@mail.gmail.com> References: <CAEez2MnagDBCtA-aFoQOQo-SG=V9vvjOX5rtiotzWA0zqemx-w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@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) -----------------------------------------+-------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2Bi7_mXXPfL%2BxCs5KMHKy-6T4G7Y_won8o82voGL81L8kQ>