From owner-freebsd-net@FreeBSD.ORG Tue Oct 7 15:52:39 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7C4BFE27 for ; Tue, 7 Oct 2014 15:52:39 +0000 (UTC) Received: from mail-qc0-f180.google.com (mail-qc0-f180.google.com [209.85.216.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 39F193CA for ; Tue, 7 Oct 2014 15:52:38 +0000 (UTC) Received: by mail-qc0-f180.google.com with SMTP id x3so5873711qcv.25 for ; Tue, 07 Oct 2014 08:52:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=GOKPbDlyzsFH6rHYSq+rBpGtqC03XdVWoFYRhowOswA=; b=L16YbnmFGXlsJaSF7yUZrq0E5i0rjtzoz5zG9rYc6Oo2XfKu2pFqLBs0ql8YLPLKLe ZbpnfPhfElcEObER8h8AG+VR9vDi/3Oi4dZd/hQwfOKWg9Q/RE3vWnHWdIZh2jAfPXw3 KPriHZ6Yq7C4c7SQYNMRLelpqpBNl7ZekARSAfX166WSMO7rp8CjYVLZP+3p7d5eLvsp HsMa9Q8/WF+6niqvpGwFAVnYySDGxG5vwuCE1AAsiqPHcw+/sQmCA1nHav/nAWqdHDgW 4ZGjkWnn1NfTvV7Kry/PQoMJ+KItan9Y/Jb/Y2P1wht5pPUsermOU3asxKg6YF/c3SpH 3H1Q== X-Gm-Message-State: ALoCoQnvrEeKbSXGQw+aGZI9CyG0eV/0Oe/uNvqEYI/5W22Tyb8SUZmrdo42zxMdLFR2aQjRxA15 MIME-Version: 1.0 X-Received: by 10.140.88.47 with SMTP id s44mr7813403qgd.67.1412697152479; Tue, 07 Oct 2014 08:52:32 -0700 (PDT) Received: by 10.96.26.227 with HTTP; Tue, 7 Oct 2014 08:52:32 -0700 (PDT) In-Reply-To: References: Date: Tue, 7 Oct 2014 10:52:32 -0500 Message-ID: Subject: Re: Netmap: Failed to run multi-thread using pkt-gen From: Yue Zhuo To: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2014 15:52:39 -0000 pkt-gen tells I have 6 queues. Yue On Tue, Oct 7, 2014 at 10:41 AM, Luigi Rizzo 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 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) > -----------------------------------------+------------------------------- >