From nobody Tue Nov 29 11:05:33 2022 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NLzyw615dz4jWNS for ; Tue, 29 Nov 2022 11:05:44 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) (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 "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NLzyv1Wb1z3wjy for ; Tue, 29 Nov 2022 11:05:42 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=enki-multimedia.eu header.s=protonmail2 header.b=QIoJFUuE; spf=pass (mx1.freebsd.org: domain of benoitc@enki-multimedia.eu designates 185.70.43.17 as permitted sender) smtp.mailfrom=benoitc@enki-multimedia.eu; dmarc=pass (policy=none) header.from=enki-multimedia.eu Date: Tue, 29 Nov 2022 11:05:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enki-multimedia.eu; s=protonmail2; t=1669719939; x=1669979139; bh=daxp/NDzXlp7MeC6V7M6kL+PVk6KPpk86f+MWpH+cJs=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=QIoJFUuEcJGL14sNgKDaG1gXo8M0qR4RzfFH7vb+NZHoEYxMz/sp4CKjzWYKmu3BI 7fyD8jLVdFpSwWx78SnFo4bfaDLq1XqxB5ApaknNz1tzTmznehWycSmT9xzuGgY+ui DBWUm3Eg5WF/592UaNlyJoET2UMWmzZCVF7zUo08znuZl9ioHY4PIvDWm2wZY5X621 8woFWD0kL6kNCR4eMbMkUIFSB4TczESOgYjbNlg9mZkBvKIOXqggvNsWG3iChEVv7p VQN0npJqsrmnuNOouxgkFMfs7k65s+ftkpZ1Bk4Dt5MZGv/M0vDf10bkS3yLz9lk/s AnADiH+jhhHFQ== To: "freebsd-net@FreeBSD.org" From: Benoit Chesneau Subject: ng_eth: can't achieve 10G throughput Message-ID: Feedback-ID: 9066678:user:proton List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-3.91 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.91)[-0.909]; DMARC_POLICY_ALLOW(-0.50)[enki-multimedia.eu,none]; R_DKIM_ALLOW(-0.20)[enki-multimedia.eu:s=protonmail2]; R_SPF_ALLOW(-0.20)[+ip4:185.70.43.0/24]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.43.0/24, country:CH]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; DKIM_TRACE(0.00)[enki-multimedia.eu:+]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RWL_MAILSPIKE_POSSIBLE(0.00)[185.70.43.17:from] X-Rspamd-Queue-Id: 4NLzyv1Wb1z3wjy X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N hi all , I've an issue to achieve goos performance using netgraph thatis not reprodu= ced with a if_bridge interface. I have setup my network using netgraph like= this: https://www.friendpaste.com/4zrXvdx1l5fjDRG1oheHMN I am using ngeth1 as main port and setup it to 10G connected to a bridge li= nked to the main interface ixl2 as the diagram below show: https://imgur.com/a/5nTHqEi But I can't get more than 1.5Gb/s throughput (see iperf log below) ``` =C2=A0iperf3 -c XXXX:10 Connecting to host XXXX::10, port 5201 [ =C2=A05] local XXXX::11 port 24822 connected to XXXX::10 port 5201 [ ID] Interval =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Transfer =C2=A0 =C2=A0 Bi= trate =C2=A0 =C2=A0 =C2=A0 =C2=A0 Retr =C2=A0Cwnd [ =C2=A05] =C2=A0 0.00-1.00 =C2=A0 sec =C2=A0 192 MBytes =C2=A01.61 Gbits/s= ec =C2=A0141 =C2=A0 70.3 KBytes [ =C2=A05] =C2=A0 1.00-2.00 =C2=A0 sec =C2=A0 193 MBytes =C2=A01.62 Gbits/s= ec =C2=A0143 =C2=A0 64.7 KBytes [ =C2=A05] =C2=A0 2.00-3.00 =C2=A0 sec =C2=A0 194 MBytes =C2=A01.63 Gbits/s= ec =C2=A0144 =C2=A0 43.6 KBytes [ =C2=A05] =C2=A0 3.00-4.00 =C2=A0 sec =C2=A0 183 MBytes =C2=A01.54 Gbits/s= ec =C2=A0144 =C2=A0 46.4 KBytes [ =C2=A05] =C2=A0 4.00-5.00 =C2=A0 sec =C2=A0 196 MBytes =C2=A01.64 Gbits/s= ec =C2=A0144 =C2=A0 23.9 KBytes [ =C2=A05] =C2=A0 5.00-6.00 =C2=A0 sec =C2=A0 190 MBytes =C2=A01.60 Gbits/s= ec =C2=A0143 =C2=A0 2.81 KBytes [ =C2=A05] =C2=A0 6.00-7.00 =C2=A0 sec =C2=A0 169 MBytes =C2=A01.42 Gbits/s= ec =C2=A0146 =C2=A0 11.2 KBytes [ =C2=A05] =C2=A0 7.00-8.00 =C2=A0 sec =C2=A0 164 MBytes =C2=A01.38 Gbits/s= ec =C2=A0147 =C2=A0 73.1 KBytes [ =C2=A05] =C2=A0 8.00-9.00 =C2=A0 sec =C2=A0 166 MBytes =C2=A01.39 Gbits/s= ec =C2=A0147 =C2=A0 75.9 KBytes [ =C2=A05] =C2=A0 9.00-10.00 =C2=A0sec =C2=A0 166 MBytes =C2=A01.39 Gbits/s= ec =C2=A0147 =C2=A0 8.44 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Transfer =C2=A0 =C2=A0 Bi= trate =C2=A0 =C2=A0 =C2=A0 =C2=A0 Retr [ =C2=A05] =C2=A0 0.00-10.00 =C2=A0sec =C2=A01.77 GBytes =C2=A01.52 Gbits/s= ec =C2=A01446 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sender [ =C2=A05] =C2=A0 0.00-10.00 =C2=A0sec =C2=A01.77 GBytes =C2=A01.52 Gbits/s= ec =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0receiver ``` Where with the interface alone I get 9.8 Gb/s. With an if_bridge bridge I g= et 7Gb/s . Any idea what's wrong in my configuration? Also why an ng_eth i= nterface is set to 1 1000baseT mode while epar is set correctly to 10GbaseT= ?=20 Beno=C3=AEt