From owner-freebsd-net@freebsd.org Tue Oct 20 10:26:58 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 2AEF242C942 for ; Tue, 20 Oct 2020 10:26:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4CFqYZ0NQ2z47Jh for ; Tue, 20 Oct 2020 10:26:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0CA3142C9E4; Tue, 20 Oct 2020 10:26:58 +0000 (UTC) Delivered-To: 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 0C6B342C9E3 for ; Tue, 20 Oct 2020 10:26:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CFqYY6g3Qz47P9 for ; Tue, 20 Oct 2020 10:26:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AF0F713635 for ; Tue, 20 Oct 2020 10:26:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 09KAQvZp013804 for ; Tue, 20 Oct 2020 10:26:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 09KAQvKW013802 for net@FreeBSD.org; Tue, 20 Oct 2020 10:26:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 248652] iflib: netmap pkt-gen large TX performance difference between 11-STABLE and 12-STABLE/CURRENT on ix & ixl NIC Date: Tue, 20 Oct 2020 10:26:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: iflib, needs-qa, performance, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: sg@efficientip.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vmaffione@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? mfc-stable12? mfc-stable11- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 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, 20 Oct 2020 10:26:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248652 --- Comment #26 from Sylvain Galliano --- (In reply to Vincenzo Maffione from comment #25) you are correct, using 1 queue on both ix/ixl NIC + tuning new sysctl, we h= ave same result as FreeBSD 11 Regarding avg_batch values on ixl, they are very low, not in the range you expected: 6 queues, iflib.nm_tx_tmr_us=3D5 070.664142 main_thread [2639] 13.588 Mpps (13.602 Mpkts 6.522 Gbps in 10010= 00 usec) 20.87 avg_batch 99999 min_space cpu usage: 100% even with 1 queue I got a low value for avg_batch: 283.855379 main_thread [2639] 12.147 Mpps (12.757 Mpkts 5.831 Gbps in 10502= 45 usec) 13.97 avg_batch 99999 min_space cpu usage: 100% ix (X520) NIC have a good avg_batch (whatever the number of queue): 404.130120 main_thread [2639] 14.880 Mpps (14.895 Mpkts 7.143 Gbps in 10009= 99 usec) 436.04 avg_batch 99999 min_space I don't known if this can help you but I did another test specific to ixl N= IC: setting hw.ixl.enable_head_writeback=3D0 avg_batch is higher, pps a little better and we are not CPU bound this time: 6 queues: 603.651106 main_thread [2639] 17.384 Mpps (17.402 Mpkts 8.345 Gbps in 10010= 03 usec) 308.10 avg_batch 99999 min_space cpu usage: 71% 1 queue: 730.590104 main_thread [2639] 15.084 Mpps (15.416 Mpkts 7.241 Gbps in 10220= 04 usec) 442.64 avg_batch 99999 min_space cpu usage: 57% Same test but using more threads on pkt-gen (-p 6), 6 queues: 995.887010 main_thread [2639] 17.327 Mpps (17.339 Mpkts 8.317 Gbps in 10006= 93 usec) 286.35 avg_batch 599994 min_space cpu usage: 197% top -H: PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND 70876 root -92 0 348M 16M select 3 0:23 35.46% pkt-gen{pkt-gen} 70876 root -92 0 348M 16M CPU4 4 0:23 33.58% pkt-gen{pkt-gen} 70876 root -92 0 348M 16M RUN 6 0:23 33.44% pkt-gen{pkt-gen} 70876 root -92 0 348M 16M select 2 0:23 31.69% pkt-gen{pkt-gen} 70876 root 45 0 348M 16M CPU9 9 0:23 31.64% pkt-gen{pkt-gen} 70876 root -92 0 348M 16M select 6 0:23 31.24% pkt-gen{pkt-gen} --=20 You are receiving this mail because: You are on the CC list for the bug.=