From owner-freebsd-net@freebsd.org Thu Nov 2 17:22:16 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D70E8E5EF95 for ; Thu, 2 Nov 2017 17:22:16 +0000 (UTC) (envelope-from SRS0=dMqAzd=CA=codenetworks.net=sm@eigbox.net) Received: from bosmailout04.eigbox.net (bosmailout04.eigbox.net [66.96.184.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A648C1D3E for ; Thu, 2 Nov 2017 17:22:16 +0000 (UTC) (envelope-from SRS0=dMqAzd=CA=codenetworks.net=sm@eigbox.net) Received: from bosmailscan14.eigbox.net ([10.20.15.14]) by bosmailout04.eigbox.net with esmtp (Exim) id 1eAIca-0007Jk-Jy for freebsd-net@freebsd.org; Thu, 02 Nov 2017 12:45:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codenetworks.net; s=dkim; h=Sender:Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:To:Subject:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=a8tPc0G2B3eezvohp4hBs5hDpOwaq+1YatdVlafc/fs=; b=hUj49IiSIi72DPO+3YZmi9XVEF ZepIFeLJ27e2Budpe4FbDjA5IsdSoslN9lY7LgRXeQtIGafNzDg+lj/ReHgP0456e+AH0ftEZXFhZ IicrSI9vUyrQxf4YOpMp6KGtiZroJhAHI+cFStMlKTlxUSTVZUiRp+c6oaG24nT8T0nOK2aMNZraQ cc5jJ3PCdfM0YOUD1W6ixESTB0o/ibbF9nvc6034XzuWumLXgsTD4MlDLrjVWWuiNKM08hvsZZzqS /LWLeOBpL024i8VjvTRW3FRQstvHFXTyySbueTpoR4yvwaqwbmdF+8aeV1z8QZGYDsD6BpZd/7lDR 5s6IhZsA==; Received: from [10.115.3.31] (helo=bosimpout11) by bosmailscan14.eigbox.net with esmtp (Exim) id 1eAIca-0002cO-EI for freebsd-net@freebsd.org; Thu, 02 Nov 2017 12:45:36 -0400 Received: from bosauthsmtp08.yourhostingaccount.com ([10.20.18.8]) by bosimpout11 with id V4lZ1w0050ASroS014lcdW; Thu, 02 Nov 2017 12:45:36 -0400 X-Authority-Analysis: v=2.2 cv=RdbgMxlv c=1 sm=1 tr=0 a=BF10AaGwQl41phDg7WSPyA==:117 a=ecHzJlqNrjqemkbW8Bp8sw==:17 a=IkcTkHD0fZMA:10 a=sC3jslCIGhcA:10 a=5sCBbic07u0A:10 a=B3gGe52qEeb0hB1gp2oA:9 a=QEXdDO2ut3YA:10 Received: from host31-49-228-163.range31-49.btcentralplus.com ([31.49.228.163]:31149 helo=[192.168.100.100]) by bosauthsmtp08.eigbox.net with esmtpa (Exim) id 1eAIcX-0008MJ-12 for freebsd-net@freebsd.org; Thu, 02 Nov 2017 12:45:33 -0400 From: Santiago Martinez Subject: FreeBSD 11.1 vmx + netmap queues To: "freebsd-net@freebsd.org" Message-ID: <2bd87cdb-9ef7-387a-ba8a-cc7c90702eea@codenetworks.net> Date: Thu, 2 Nov 2017 16:45:31 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-EN-UserInfo: d3bdfab0736480cedf04ed92aaea2ef5:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: sm@codenetworks.net Sender: Santiago Martinez X-EN-OrigIP: 31.49.228.163 X-EN-OrigHost: host31-49-228-163.range31-49.btcentralplus.com X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2017 17:22:17 -0000 Hi list, hope you guys are doing well. I have a basic question. Do you know if multiple TX queues are supportedĀ  for vmx + netmap ? Basically I'm using pkt-gen to generate bulk traffic @10Gbps and its OK with packet size >~1000b. For small packets I should use multiple cores/processes to be able to generate the required pps, but pkg-gen complain that I have only one queue. I tried adding multiple queues for vmx on loader.conf (can verify with sysctl) but netmap still complaining there is only one queue. sysctl -a | grep vmx.1: dev.vmx.1.mbuf_load_failed: 0 dev.vmx.1.mgetcl_failed: 0 dev.vmx.1.defrag_failed: 0 dev.vmx.1.defragged: 0 dev.vmx.1.nrxqueues: 8 dev.vmx.1.ntxqueues: 4 dev.vmx.1.max_nrxqueues: 8 dev.vmx.1.max_ntxqueues: 4 dev.vmx.1.%parent: pci4 dev.vmx.1.%pnpinfo: vendor=0x15ad device=0x07b0 subvendor=0x15ad subdevice=0x07b0 class=0x020000 dev.vmx.1.%location: slot=0 function=0 dbsf=pci0:11:0:0 handle=\_SB_.PCI0.PE50.S1F0 dev.vmx.1.%driver: vmx dev.vmx.1.%desc: VMware VMXNET3 Ethernet Adapter pkg-gen still saying one queue for vmx: Sending on netmap:vmx1: 1 queues, 2 threads and 4 cpus. Thanks in advance. Santiago