From owner-freebsd-net@freebsd.org Fri Nov 3 12:03:18 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 E981DE50D41 for ; Fri, 3 Nov 2017 12:03:18 +0000 (UTC) (envelope-from SRS0=dVqOsD=CB=ssbglimited.co.uk=unix@eigbox.net) Received: from bosmailout07.eigbox.net (bosmailout07.eigbox.net [66.96.184.7]) (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 AEBAB2CB8 for ; Fri, 3 Nov 2017 12:03:18 +0000 (UTC) (envelope-from SRS0=dVqOsD=CB=ssbglimited.co.uk=unix@eigbox.net) Received: from bosmailscan04.eigbox.net ([10.20.15.4]) by bosmailout07.eigbox.net with esmtp (Exim) id 1eAaDc-0000p6-LC for freebsd-net@freebsd.org; Fri, 03 Nov 2017 07:33:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ssbglimited.co.uk; s=dkim; h=Sender:Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hVcZ6y5+a+czy9CipDvMYVDltrr8888iZDmgLJEks8c=; b=Bmk9o2d+TfNQWuN+8VBMth3UaT CaDM6T9Viy+1pytW9peJ9ewswdOz2sOC1sV22E7qzomcS/PxI7YyoGrWyWgqqbWaHqkAcdtzUmiJE VKdULj8HMP6waxG+Z5g07ViH/7mbUQXmEMkMAmCjh/koqfpiAR5sWMHAi+qL6Uu9eZvMMcj6QXIvv JdXPO0nNcNSfVEQInKqwDXMJ9p4/Sbt34vkxFbVXFmynu+WsmgOiDvocSjHko+asTxqB9TEeqSaTd wJkCfh4uPx61CKiszygsWUaUWrD+73/5EarKxIZkpQwLXjA3exXA1gPXlAiXjIXceSmh2h/7NPr4P JhGyxjDQ==; Received: from [10.115.3.33] (helo=bosimpout13) by bosmailscan04.eigbox.net with esmtp (Exim) id 1eAaDc-0007OU-Hc for freebsd-net@freebsd.org; Fri, 03 Nov 2017 07:33:00 -0400 Received: from bosauthsmtp08.yourhostingaccount.com ([10.20.18.8]) by bosimpout13 with id VPYx1w0050ASroS01PZ0EK; Fri, 03 Nov 2017 07:33:00 -0400 X-Authority-Analysis: v=2.2 cv=bKFmGL2Z c=1 sm=1 tr=0 a=BF10AaGwQl41phDg7WSPyA==:117 a=ecHzJlqNrjqemkbW8Bp8sw==:17 a=IkcTkHD0fZMA:10 a=sC3jslCIGhcA:10 a=5sCBbic07u0A:10 a=jlvWEfeLAAAA:8 a=6I5d2MoRAAAA:8 a=lz46LIayZNdbRTofgEEA:9 a=QEXdDO2ut3YA:10 a=BUduvz6nQKmfCEOu4uBS:22 a=IjZwj45LgO3ly-622nXo:22 Received: from host31-49-228-163.range31-49.btcentralplus.com ([31.49.228.163]:19935 helo=[192.168.100.100]) by bosauthsmtp08.eigbox.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) id 1eAaDZ-0004uB-5h; Fri, 03 Nov 2017 07:32:57 -0400 Subject: Re: FreeBSD 11.1 vmx + netmap queues To: Vincenzo Maffione , Santiago Martinez Cc: FreeBSD Net References: <2bd87cdb-9ef7-387a-ba8a-cc7c90702eea@codenetworks.net> From: Santiago Martinez Message-ID: Date: Fri, 3 Nov 2017 11:32:51 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-EN-UserInfo: d94ecc27d8c618b705af6c7847bf2b9d:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: unix@ssbglimited.co.uk 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: Fri, 03 Nov 2017 12:03:19 -0000 Hi Vincenzo, thanks a lot for your help. I tried it this morning and worked like a charm! Cheers Santi On 02/11/17 21:31, Vincenzo Maffione wrote: > Hi, > With vmx driver netmap will use the emulated netmap adapter. On freebsd > netmap still does not have a way to see how many rings an interface has. So > by default will assume 1 tx/rx rings couple for emulated adapter. You can > however change this by sysctl dev.netmap.generic_rings. > > Cheers, > Vincenzo > > Il 2 nov 2017 6:22 PM, "Santiago Martinez" ha scritto: > >> 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 >> >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"