Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2014 10:52:32 -0500
From:      Yue Zhuo <zyue1105@tamu.edu>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: Netmap: Failed to run multi-thread using pkt-gen
Message-ID:  <CAEez2MnyN4GzFHQ-y0Y8gSBa=uGJCq7ZVZ4Lz9Yt%2BZMsZCaz8g@mail.gmail.com>
In-Reply-To: <CA%2BhQ2%2Bi7_mXXPfL%2BxCs5KMHKy-6T4G7Y_won8o82voGL81L8kQ@mail.gmail.com>
References:  <CAEez2MnagDBCtA-aFoQOQo-SG=V9vvjOX5rtiotzWA0zqemx-w@mail.gmail.com> <CA%2BhQ2%2Bi7_mXXPfL%2BxCs5KMHKy-6T4G7Y_won8o82voGL81L8kQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
pkt-gen tells I have 6 queues.

Yue

On Tue, Oct 7, 2014 at 10:41 AM, Luigi Rizzo <rizzo@iet.unipi.it> wrote:

> 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?CAEez2MnyN4GzFHQ-y0Y8gSBa=uGJCq7ZVZ4Lz9Yt%2BZMsZCaz8g>