From owner-freebsd-net@freebsd.org Thu Nov 2 21:31:07 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 A42D6E63687 for ; Thu, 2 Nov 2017 21:31:07 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 726116A79E for ; Thu, 2 Nov 2017 21:31:07 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-io0-x22b.google.com with SMTP id b186so2086122iof.8 for ; Thu, 02 Nov 2017 14:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3kzOiETfv9eVjLm/fpQcYQbr57XGxwlC5sGoefpdyF0=; b=ReRrWEaqj93IO4+CjWhljgO0nR83Mv4jtEn2DetGlWkP7EpRFlb1GCcaP5bHslWB1T FH7yzTJpnhlm9lNIcI2d9epcYnEA1E0/VCaWNKK0tUyyP840sj/6pPxKeLbXDFmUbGiM bJyEudRpevJrAuMVm4Pzd1bNoMWTT3JdSMSUX+2Bxo4qffErE5mlHCUHzb9xx4zoLdgj MqY0R9taYR33TDOCDebFIUDYMKs2gcFT1OwodmtvOHrLUu56HdZ0/TOuIrZylsGoS3YY x+/3X1mbg8jxSY2KKNvqOKZJVwMUsJtBk5AODiI8f5MnReLE4yivNgq6ybij4VsKub4d XVQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3kzOiETfv9eVjLm/fpQcYQbr57XGxwlC5sGoefpdyF0=; b=N/fEbXyjL8LmgV6hxlZaHgHWT7uJlAPvk0nmGVB5LdNCXx1ohnvpJVNjYPRzTufGOZ knsPDWcGiRWESg8K01E8iDw0sMu62YwTu9iZisHH6NuzF6uxoRAPZf3axN10RsDdHSJz a8RqzMoM5zAOc0b30undQflJSFd2XVwobIy4fceMPdqVI93EXZ8/cfHx0Q+59riYWqcA cBuS9aYH1VVcy0sux7+C5NSb+73wX2pXz++/yslKhAzX8DR+PwZBwUBjA+B0FWjL+2bN A0UBBGZuKQMRc+/4bks4V1c4gOXQb3h/rOe3yC2aNcwK9POUIEM9gisZwXMtnd0K3OC6 Hqpw== X-Gm-Message-State: AJaThX7sXVbWZednJ/bgTA59/dMkn2RTQdZnHWyFkNywstsPyvIOd+ON lnCMfQkF29wKO+U+ci9J9pPs5/HDVfJG5l9W450= X-Google-Smtp-Source: ABhQp+RFD9CCu7setNaW8k372x4FFxlAor9ohaL8o+rs5ol1SmucsS3LiiPXdL3/ESfJKOV1Pmh58UvAlZijkfpMw4A= X-Received: by 10.107.81.21 with SMTP id f21mr6237271iob.63.1509658266693; Thu, 02 Nov 2017 14:31:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.176.143 with HTTP; Thu, 2 Nov 2017 14:31:05 -0700 (PDT) Received: by 10.2.176.143 with HTTP; Thu, 2 Nov 2017 14:31:05 -0700 (PDT) In-Reply-To: <2bd87cdb-9ef7-387a-ba8a-cc7c90702eea@codenetworks.net> References: <2bd87cdb-9ef7-387a-ba8a-cc7c90702eea@codenetworks.net> From: Vincenzo Maffione Date: Thu, 2 Nov 2017 22:31:05 +0100 Message-ID: Subject: Re: FreeBSD 11.1 vmx + netmap queues To: Santiago Martinez Cc: FreeBSD Net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 21:31:07 -0000 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"