From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NHed1U5w; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id 033F75A0265 for ; Thu, 17 Sep 2026 21:36:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1789673813; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f9JShmzwcNG0IlHaUstiOZVGoovCxtG/ZsxFt5g6CSE=; b=NHed1U5wqdnwJNbDjhpSfuy6HCZVWO+yu/Nv+KAujcDnz8z6rgBni54XkuRvJDyB5UqzQS iMgc3jTXznpeMX6//sxsE7dg9N0ptByuPqtDy8EEQeZkR/1vUCl00w9FGPWFYDBtRjLDI2 vYfCagLCgQ+WF+5c0oKBi/2Ssqi8+M0= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-149-Ntk9FhRUM32uYSbkWfkk2A-1; Thu, 17 Sep 2026 15:36:52 -0400 X-MC-Unique: Ntk9FhRUM32uYSbkWfkk2A-1 X-Mimecast-MFC-AGG-ID: Ntk9FhRUM32uYSbkWfkk2A_1789673811 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-49cf5bd2f12so187025e9.1 for ; Thu, 17 Sep 2026 12:36:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789673811; x=1790278611; h=date:content-transfer-encoding:content-type:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=f9JShmzwcNG0IlHaUstiOZVGoovCxtG/ZsxFt5g6CSE=; b=BkVyMyl29kr/as5QIi2ezEk/xxC7K3vwWSRVXPbYj+GJdR58vNTuDwMg+OauyT2Vz8 mOGI4dpYPk2Yn+O8ABkOFwcQ+RisbJ+TgHM6fT1WXHtSak2lwlUipgYYcM7sh+TUEyik p8lfvReijIHq4cMDUJqn/mhep9Ou+8UaEIHAen9I9eKesAqewtZ1DwCkfHTKByzQWdRh 0T44+djOzsl3b0ugehi5Kslcf2RO1WkEcg7OUdbeCJyuDkooYPJtaYxRI/E7QWYQiitt yxMMPkKfNgahfB5xstLUZ3shwrTMhiihqIeBSHwI2EAY0gq8XtkVAD5hUZi+13PwqGKX PGwA== X-Gm-Message-State: AFuF++mQ2IP8gi8wRfzFZpuWvGnnxq8Ijn2ahHRmA2y72K0JE1Cnvy/0 0Fj75JTUUGZv/zSOa4EqeoT4JbdCrfor1nuHam1MtNxn2gQbIcR6Q3PouFMEuXHSynqdUxGcBM1 NkY8kQCqct3kJXizsadc4y/KXYIfokouaZzPKWOOxbuvETR7TUpDsng== X-Gm-Gg: AYBFou1Qxap4t5uvVdOEr+Vu8rKRCCuiwr8QRPZwAIuEJzA4jTzVkDWg6E7dmhZNpTS ZGCJavQFzEWDmk8dmBHQ4LDGRLWwd1XPVn9gaJhXLBUCcD1EoAa4aTOrvGcnh8Oruc/IJ2/xjsu ZCYUxb4jlhhpNSfazyDV1h9UW6PqdZv6VaB+Wei8Sw+MVOscURqTmcY0VHwsx4w4jwOviHXBoxP AKu/vLtqQxwMR70mTdBHDZlaXl5tCFHdFwdshFdvzkx5TGtPeeOwEbbf90vCgjWpzyW1U/F6kki a1Ddnr5WDQ1q6PN94VdQ6M59SesPkGAa9qU3xRJzebU42IMAD/vBlZERPWvmp13wAa+bPFQ3jGp 0ziG/ZFf1SEA= X-Received: by 2002:a05:600c:3150:b0:49d:25b0:cc60 with SMTP id 5b1f17b1804b1-49eb73321d4mr96369605e9.29.1789673811048; Thu, 17 Sep 2026 12:36:51 -0700 (PDT) X-Received: by 2002:a05:600c:3150:b0:49d:25b0:cc60 with SMTP id 5b1f17b1804b1-49eb73321d4mr96369395e9.29.1789673810595; Thu, 17 Sep 2026 12:36:50 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fc5215121sm2229625e9.2.2026.09.17.12.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 12:36:50 -0700 (PDT) From: Stefano Brivio To: aerosouund Subject: Re: [PATCH 0/7] Add vhost-net kernel support to pasta Message-ID: <20260917213648.6093b5fe@elisabeth> In-Reply-To: <20260904212826.41027-1-aerosound161@gmail.com> References: <20260904212826.41027-1-aerosound161@gmail.com> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Date: Thu, 17 Sep 2026 21:36:49 +0200 (CEST) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ECSzmxMIdSWVlwzZBkoKzOGPq2o1WbWiGRkZtMNYDjs_1789673811 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: L4KKIIWQGALGA2G2VHUM2UAXDJAQAGLQ X-Message-ID-Hash: L4KKIIWQGALGA2G2VHUM2UAXDJAQAGLQ X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top, eperezma@redhat.com X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Sat, 5 Sep 2026 00:28:19 +0300 aerosouund wrote: > [...] > > The changes reliably yield a roughly 2x speedup on the TX path (container > to host). >=20 > Numbers were obtained through iperf3 with the following methodology and > results: >=20 > Pasta command: > ./pasta -f --runas 0:0 --map-guest-addr 192.168.0.5=20 > --vhost-kernel on --config-net 2729785 >=20 > Host: > iperf3 -s1J >=20 > Container: > iperf3 -c 192.168.0.5 -t 10 -P4 -l 1M -w 32M -i1 >=20 > With --vhost-kernel on: >=20 > [SUM] 0.00-10.00 sec 1.36 GBytes 1.17 Gbits/sec 3643 sender > [SUM] 0.00-10.00 sec 1.16 GBytes 999 Mbits/sec receiver >=20 > With --vhost-kernel off: >=20 > [SUM] 0.00-10.00 sec 700 MBytes 587 Mbits/sec 3556 sender > [SUM] 0.00-10.10 sec 495 MBytes 411 Mbits/sec receiver Not a review and not a real test but I just quickly ran (once) the usual perf/pasta_tcp tests with and without this series. Baseline: > pasta: throughput and latency (connections via tap) Throughput in Gbps, latency in =C2=B5s, 2 threads at 3.6 GHz MTU: | 1500B | = 4000B | 16384B | 65520B | |--------|--= ------|--------|--------| TCP throughput over IPv6: ns to host | 2.7 | = 4.2 | 4.5 | 18.7 | TCP RR latency over IPv6: ns to host | - | = - | - | 24 | TCP CRR latency over IPv6: ns to host | - | = - | - | 84 | |--------|--= ------|--------|--------| TCP throughput over IPv4: ns to host | 2.5 | = 4.2 | 2.8 | 16.8 | TCP RR latency over IPv4: ns to host | - | = - | - | 25 | TCP CRR latency over IPv4: ns to host | - | = - | - | 72 | |--------|--= ------|--------|--------| TCP throughput over IPv6: host to ns | - | = - | - | 14.2 | TCP RR latency over IPv6: host to ns | - | = - | - | 26 | TCP CRR latency over IPv6: host to ns | - | = - | - | 74 | |--------|--= ------|--------|--------| TCP throughput over IPv4: host to ns | - | = - | - | 14.3 | TCP RR latency over IPv4: host to ns | - | = - | - | 28 | TCP CRR latency over IPv4: host to ns | - | = - | - | 82 | '--------'--= ------'--------'--------' with this series: > pasta: throughput and latency (connections via tap) Throughput in Gbps, latency in =C2=B5s, 2 threads at 3.6 GHz MTU: | 1500B | 4000B | 1638= 4B | 65520B | |--------|--------|-----= ---|--------| TCP throughput over IPv6: ns to host | 9.3 | 5.5 | 22= .6 | 25.1 | TCP RR latency over IPv6: ns to host | - | - | = - | 35 | TCP CRR latency over IPv6: ns to host | - | - | = - | 93 | |--------|--------|-----= ---|--------| TCP throughput over IPv4: ns to host | 9.3 | 5.2 | 10= .9 | 24.8 | TCP RR latency over IPv4: ns to host | - | - | = - | 30 | TCP CRR latency over IPv4: ns to host | - | - | = - | 94 | |--------|--------|-----= ---|--------| TCP throughput over IPv6: host to ns | - | - | = - | 19.2 | TCP RR latency over IPv6: host to ns | - | - | = - | 33 | TCP CRR latency over IPv6: host to ns | - | - | = - | 90 | |--------|--------|-----= ---|--------| TCP throughput over IPv4: host to ns | - | - | = - | 17.4 | TCP RR latency over IPv4: host to ns | - | - | = - | 35 | TCP CRR latency over IPv4: host to ns | - | - | = - | 86 | '--------'--------'-----= ---'--------' ...latency increases a little but it still looks pretty good to me. Throughput wise, for higher MTUs it's definitely an improvement in both directions, and for lower MTUs we even hit 4x increases, that's quite impressive. I haven't checked if we need to tweak iperf3 parameters (or our buffers?) to make this scale for large MTUs, but I guess that might be the case. --=20 Stefano