From owner-freebsd-net@freebsd.org Mon Feb 3 20:44:50 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7170922E4FF for ; Mon, 3 Feb 2020 20:44:50 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (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 48BKZT5Zjrz46lD for ; Mon, 3 Feb 2020 20:44:49 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1iyiaN-000Oy0-VH for freebsd-net@freebsd.org; Mon, 03 Feb 2020 23:44:47 +0300 Date: Mon, 3 Feb 2020 23:44:47 +0300 From: Slawa Olhovchenkov To: freebsd-net@freebsd.org Subject: Intel NETMAP performance and packet type Message-ID: <20200203204447.GD8028@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-Rspamd-Queue-Id: 48BKZT5Zjrz46lD X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of slw@zxy.spb.ru has no SPF policy when checking 195.70.199.98) smtp.mailfrom=slw@zxy.spb.ru X-Spamd-Result: default: False [-0.39 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.59)[-0.586,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.79)[-0.789,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[zxy.spb.ru]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:5495, ipnet:195.70.192.0/19, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.08)[asn: 5495(0.39), country: RU(0.01)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Feb 2020 20:44:50 -0000 I am try use Intel 82599ES in NETMAP mode for filtering traffic. For SYN-flood case my application can recive (by poll(2)) about 12-13Mpps by 2 thread at X5675@3.07GHz (all other traffic don't recived by kernel). For ACK-flood case my application can recive (by poll(2)) only about 5.8Mpss by 2 thread at same hardware. I am talk only about receive packets, don't processing. What is wrong? How to packet payload influence to NETMAP performance? ix0: flags=28943 metric 0 mtu 1500 options=913838 ether 90:e2:ba:01:03:f6 media: Ethernet autoselect (10Gbase-Twinax ) status: active nd6 options=29 ix1: flags=28943 metric 0 mtu 1500 options=913838 ether 90:e2:ba:01:03:f7 media: Ethernet autoselect (10Gbase-Twinax ) status: active nd6 options=29