From owner-freebsd-net@FreeBSD.ORG Tue Oct 7 15:41:32 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 8AF70158 for ; Tue, 7 Oct 2014 15:41:32 +0000 (UTC) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (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 129C925E for ; Tue, 7 Oct 2014 15:41:31 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id gi9so6681776lab.35 for ; Tue, 07 Oct 2014 08:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=rEcqjp3YBUVSwnEZl9fAyBaazw+wU95cQCI92QwaiLw=; b=oAlkVqXdHxOkHCb6OvNr+ZBSYgjNy+kRGvjcZHqSkE500U3wu44xHUjUrylJeK+Gbn nLC7HKnvV2eF5yXi1vYuVnvOnIRvFC3kbP5CmrNQ2A0gZjb1f+sWULR694BjXoDq3QUl TMaZO9zQVIvwq8uYpBzsh8il3qvUc2gWNtSqhXYmLBdkQ7V/t+b9chooYnI1kH0lUe30 oruilDKB6W3cFCX2DXlI8UBz70dGEe7CcJ4RhD/+MAyXcZeRKo/MOkkQtndUTm36ZG7p wzw4kzM+LfkOVtUy3m3r+s9K4+TdRCaVUixM2Ncn+NDHx3QBA+NF1rhkv1GmcbbyG0k6 WQVQ== MIME-Version: 1.0 X-Received: by 10.152.23.199 with SMTP id o7mr5101676laf.26.1412696490050; Tue, 07 Oct 2014 08:41:30 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.1.50 with HTTP; Tue, 7 Oct 2014 08:41:30 -0700 (PDT) In-Reply-To: References: Date: Tue, 7 Oct 2014 17:41:30 +0200 X-Google-Sender-Auth: MjIvV_TbJ-i1V_t3SIRIxbrZfe0 Message-ID: Subject: Re: Netmap: Failed to run multi-thread using pkt-gen From: Luigi Rizzo To: Yue Zhuo 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:41:32 -0000 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) -----------------------------------------+-------------------------------