From nobody Thu Oct 17 15:08:27 2024 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 4XTrpC4VDGz5Z6BG for ; Thu, 17 Oct 2024 15:09:07 +0000 (UTC) (envelope-from ccfreebsd@gmail.com) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XTrpC2FKVz57LN for ; Thu, 17 Oct 2024 15:09:07 +0000 (UTC) (envelope-from ccfreebsd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-539d664b49aso157972e87.3 for ; Thu, 17 Oct 2024 08:09:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729177745; x=1729782545; h=cc: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=UMcmKbaMKz+0JBYCXZ1VDqunWgDoV/gAL7uxT/2GGnI=; b=Uq/7b9h7hRsuWVwolFP6+M2/SRp8nF+K/gFfNmak5QwRw6iH5bZ/hlWQot0LcX8+Jl I5lW5Vtd2YowhOuJtKemRzu6OF9720QwWPtUggVL5Vfq7ddLfxTqk0px8cBoNxdR0q3A 99SyRaBOA6NyHa0FnFK+BXEm7DjYfLu5zBZhf/EN8go7oo5akpexNK4lv2z9BTjWTNIJ nb4v+vv+QSEtIUr+ame4eR6pMQQ9KXDYcTH//5C7WqlEa7fjt6uo3zi2TN6h9qO9VUGv lm1f3AD4Eib84yKg9a4ldfmlB8cZtrY+QJLT8mFYmGcqOebhu3DKyoj5D9s3FTH9sXCo Uylg== X-Gm-Message-State: AOJu0Yz54shgMsPVSkCPD1xtx3DJrtmAgqc5YZibVRjtqlm0VsbFU0Wy xyiyQjFH911Uv+VY8P1HKIx13vMguYoQ6afXPcLyE3M7pC3elcGxFRds/zy+ X-Google-Smtp-Source: AGHT+IEYFcy3GQOm/ZfiUONzzih2laFBuM6C0k98Gfgp4XBOgnveOcDoEVeVm3d6tKk0jnrPx9oExA== X-Received: by 2002:a2e:be9c:0:b0:2fb:357a:be3f with SMTP id 38308e7fff4ca-2fb6dee44a1mr4823491fa.3.1729177744883; Thu, 17 Oct 2024 08:09:04 -0700 (PDT) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com. [209.85.167.43]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2fb5d0fdd3fsm7648401fa.1.2024.10.17.08.09.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Oct 2024 08:09:04 -0700 (PDT) Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-539d9ba5c81so151830e87.0 for ; Thu, 17 Oct 2024 08:09:04 -0700 (PDT) X-Received: by 2002:a05:6512:3c84:b0:52e:fd7c:8b9b with SMTP id 2adb3069b0e04-53a0c75d39amr674439e87.7.1729177744481; Thu, 17 Oct 2024 08:09:04 -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: <20240912181618.7895d10ad5ff2ebae9883192@gmail.com> In-Reply-To: From: Cheng Cui Date: Thu, 17 Oct 2024 11:08:27 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Performance issues with vnet jails + epair + bridge To: void Cc: freebsd-net@freebsd.org Content-Type: multipart/alternative; boundary="00000000000036b48a0624ad91ff" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4XTrpC2FKVz57LN X-Spamd-Bar: ---- --00000000000036b48a0624ad91ff Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The patch has no effect at the host if the host is a data receiver. Also the patch is for the FreeBSD main (15-CURRENT in development). There is no plan to merge the commit into prior releases, given the code base has been branched for quite some time. cc On Thu, Oct 17, 2024 at 5:49=E2=80=AFAM void wrote: > On Thu, Oct 17, 2024 at 05:05:41AM -0400, Cheng Cui wrote: > >My commit is inside the FreeBSD kernel, so you just rebuild the `kernel`= , > >and you don't need to rebuild the `world`. > > OK thanks. Would building it the same on the bhyve *host* have an effect? > I'm asking because you earlier mentioned it's a vm-friendly change. > > I can test this if you like. I'm wondering if some changes on the host al= so > change the vm throughput. The host is currently using rack but the kernel > is > older than your changes. The host has expected throughput for 1GiB ethern= et > right now. Everything in the tests apart from the test target had the > default > params for the ethernet interface, so things like TSO are enabled. > > How can I apply your commit into a local 14.1-p5 src tree? I think this i= s > called 'cherry picking' but I don't really know much about git at all. > It'd be interesting to test, i think. > -- > > --=20 Best Regards, Cheng Cui --00000000000036b48a0624ad91ff Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The patch has no effect at the host if the host is a = data receiver.

Also the patch is for the FreeBSD m= ain (15-CURRENT in development).
There is no plan to merge the co= mmit into prior releases, given the code
base has been branched f= or quite some time.

cc

On Thu, Oct 17, 2024 at 5:49= =E2=80=AFAM void <void@f-m.fm> wro= te:
On Thu, Oct 17, 2024 at 05:05:41AM -0400, Che= ng Cui wrote:
>My commit is inside the FreeBSD kernel, so you just rebuild the `kernel= `,
>and you don't need to rebuild the `world`.

OK thanks. Would building it the same on the bhyve *host* have an effect? I'm asking because you earlier mentioned it's a vm-friendly change.=

I can test this if you like. I'm wondering if some changes on the host = also
change the vm throughput. The host is currently using rack but the kernel i= s
older than your changes. The host has expected throughput for 1GiB ethernet=
right now. Everything in the tests apart from the test target had the defau= lt
params for the ethernet interface, so things like TSO are enabled.

How can I apply your commit into a local 14.1-p5 src tree? I think this is<= br> called 'cherry picking' but I don't really know much about git = at all.
It'd be interesting to test, i think.
--



--
Best Regards,
Cheng Cui
--00000000000036b48a0624ad91ff--