From nobody Wed Jul 26 03:12:47 2023 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 4R9f9B4xs5z4nlR4 for ; Wed, 26 Jul 2023 03:13:02 +0000 (UTC) (envelope-from kevin.bowling@kev009.com) Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R9f996kwlz49WQ for ; Wed, 26 Jul 2023 03:13:01 +0000 (UTC) (envelope-from kevin.bowling@kev009.com) Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=kev009.com header.s=google header.b=O07ycgJo; spf=pass (mx1.freebsd.org: domain of kevin.bowling@kev009.com designates 2607:f8b0:4864:20::52d as permitted sender) smtp.mailfrom=kevin.bowling@kev009.com; dmarc=none Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-563d3e4f73cso634845a12.3 for ; Tue, 25 Jul 2023 20:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kev009.com; s=google; t=1690341179; x=1690945979; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=aZxpeqzhhV3z9988FCJoAUwVK7CzINgQ/QXKEZfpMfw=; b=O07ycgJocoB+zyBWoVOuGyIAsMLs43RpdIVUHcYbnSnW38cRcvlrG8AAJMUgmPHPXF x4fZkqRjZqVK3G8MBARMZASeqniD3xgdRNBJU/LHOFWFwRDEQc/8Jb2Tt1w8cgNsAfHz 78E+iBhOGPcvyLnX9i2lZaIrhKXhhF50B2S9w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690341179; x=1690945979; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aZxpeqzhhV3z9988FCJoAUwVK7CzINgQ/QXKEZfpMfw=; b=dI2bQl7yUvzS6zBmQVdibNk+oEK8/pw6S8BZDUqHbxtalo6mLg3badO1vTWxnYurGP QYBarRWntLVreFMH9n3MwfpSfB5PiTiNmTZu8WfzE/vt5hZFp5P5H+hlTNFvY3LO6pT8 STtQ3egFiRvh+OLg15iPgwbYx0+SX48A3NQ8HBaGCK1bxh063TGPQKUymbQk7QhvG2/1 +cy4cvp+7gd4KoDVoEmR8Ok5ZdVTV7H5IxAIdT4swGW1kWAqpI4idNw2xKtAKlnhvG+L +AOOlsPR8L/pJ1WHDmjUV9gafYo4/Hcb7B9WgNwhoPxMlZfd88HA7PVs0duwSoI2uYE/ t8Dg== X-Gm-Message-State: ABy/qLZZ2ozWimjI28oiK9tYJ9dv349tb2enL8UKsKhDVT4IpSg0F7aP XIQfnwqpeTwO0Sun4+ckC7MUMCVxk1rqkypZBTLe+4e3dhSkexKr X-Google-Smtp-Source: APBJJlFSmVbAKrtq8pEi6c//Iudpf69SQEb/WK1TxFPNtdoiMyccBJiyOYrEy+SZSPOWGJS3UrGAi9cEkLSh2GQfd5g= X-Received: by 2002:a17:90a:688c:b0:262:ce8f:a3e with SMTP id a12-20020a17090a688c00b00262ce8f0a3emr631635pjd.42.1690341178640; Tue, 25 Jul 2023 20:12:58 -0700 (PDT) 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 References: In-Reply-To: From: Kevin Bowling Date: Tue, 25 Jul 2023 20:12:47 -0700 Message-ID: Subject: Re: CFT: lem(4), em(4) e1000 Ethernet TSO testing To: FreeBSD Net Content-Type: multipart/alternative; boundary="000000000000809ca406015b39b5" X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::52d:from]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_DKIM_PERMFAIL(0.00)[kev009.com:s=google]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[kev009.com:~]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[kev009.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4R9f996kwlz49WQ X-Spamd-Bar: --- --000000000000809ca406015b39b5 Content-Type: text/plain; charset="UTF-8" On Tue, Jul 25, 2023 at 7:38 PM Kevin Bowling wrote: > Hi, > > I have been working through various bugs and have come to a point > where TSO is working on systems I have available for testing. > > This results in higher throughput on resource constrained systems, and > less CPU/power usage on unconstrained systems. > > As of this mail, you will need to manually apply > https://reviews.freebsd.org/D41170 on top of main to use TSO6 on > em(4). I forgot to include instructions: For testing you can enable with: ifconfig em0 tso tso6 And disable with: ifconfig em0 -tso -tso6 tso6 (IPv6) will only applicable to em(4) not lem(4) > > I plan to enable TSO by default for lem(4) and em(4) during the > FreeBSD 14 release cycle, so I would appreciate testing to address any > remaining issues. Below, a list of chipsets that will be exempt due > to known issues. > > lem(4) exclusions: > * <82544 (although it does seem ok to manually enable for emulations > in qemu, virtualbox, etc) > * 82547 > > em(4) exclusions.. These chips have a stability workaround for high > throughput with rapid link-flap applied that results in the TSO engine > not being able to run at line speed. Thus, TSO would not be enabled > by default here: > * Intel(R) I219-LM and I219-V > * Intel(R) I219-LM and I219-V (2) > * Intel(R) I219-LM and I219-V (3) > * Intel(R) I219-LM and I219-V (4) > * Intel(R) I219-LM and I219-V (5) > > Regards, > Kevin Bowling > --000000000000809ca406015b39b5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Jul 25, 2023 at 7:38 PM Kevin Bowling <kevin.bowling@kev009.com> wrote= :
Hi,

I have been working through various bugs and have come to a point
where TSO is working on systems I have available for testing.

This results in higher throughput on resource constrained systems, and
less CPU/power usage on unconstrained systems.

As of this mail, you will need to manually apply
https://reviews.freebsd.org/D41170 on top of main to use TSO6 = on
em(4).

I forgot t= o include instructions:

= For testing you can enable with:
ifconfig em0 tso ts= o6

And disable with:
ifconfig em0 -tso -tso6

tso6 (IPv6) will only applicable to em(4) not lem(4)



I plan to enable TSO by default for lem(4) and em(4) during the
FreeBSD 14 release cycle, so I would appreciate testing to address any
remaining issues.=C2=A0 Below, a list of chipsets that will be exempt due to known issues.

lem(4) exclusions:
* <82544 (although it does seem ok to manually enable for emulations
in qemu, virtualbox, etc)
* 82547

em(4) exclusions.. These chips have a stability workaround for high
throughput with rapid link-flap applied that results in the TSO engine
not being able to run at line speed.=C2=A0 Thus, TSO would not be enabled by default here:
* Intel(R) I219-LM and I219-V
* Intel(R) I219-LM and I219-V (2)
* Intel(R) I219-LM and I219-V (3)
* Intel(R) I219-LM and I219-V (4)
* Intel(R) I219-LM and I219-V (5)

Regards,
Kevin Bowling
--000000000000809ca406015b39b5--