From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=maxchernoff.ca Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=maxchernoff.ca header.i=@maxchernoff.ca header.a=rsa-sha256 header.s=key1 header.b=i4PTRQwo; dkim-atps=neutral Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [IPv6:2001:41d0:203:375::bd]) by passt.top (Postfix) with ESMTPS id E6C535A08B5 for ; Wed, 12 Nov 2025 12:22:40 +0100 (CET) Message-ID: <043088ef8bdc2d2c7a910617eb58d494cd9761e0.camel@maxchernoff.ca> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxchernoff.ca; s=key1; t=1762946560; 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=UONFgBewEXDnayT8eqoBtrHkSkpUtJY9+bzN8gHP+D8=; b=i4PTRQwok4X9EBO4wjIyTqGJyKTViSrWqDylr9mlBqQRagLdNNCQyatE6TzwsDsCC29k6Q BA6Kz2S7hP2VKbN8T7ZiUnePbzNA06LU0oGrThIbVr4wIYY2TqSBDWVSN4S3+O3Fmlp+LG VHCoMLREYQR23hJE0W76I6GxW8qgi8w9n2n2jXr+rUCsTuX0aJliHPPqFpT26JijEnzNDz aUY4MsHTX/5Ez5SwLtfuE27TLjn2qE5RsfXu7R0hfuEVZisiys79nHH0N2ify5q99XQZH4 WL+R/TkMHh1Swc8rd9nsUToOmWoE7dAF4vu3HxjsZRv5kYcTgPbUFT+C+1ntTw== Subject: Re: pasta slow at HTTP upload X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Max Chernoff To: Stefano Brivio Date: Wed, 12 Nov 2025 04:22:32 -0700 In-Reply-To: <20251112113201.3bcabc6c@elisabeth> References: <176293029592.2033508.497353982367240204@maja> <20251112075548.0c05a25e@elisabeth> <20251112113201.3bcabc6c@elisabeth> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-MailFrom: git@maxchernoff.ca X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: RKIMWSN6NHYGX7DFGNHINS3TGAPEFULQ X-Message-ID-Hash: RKIMWSN6NHYGX7DFGNHINS3TGAPEFULQ X-Mailman-Approved-At: Wed, 12 Nov 2025 13:43:09 +0100 CC: passt-user@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: "For passt users: support, questions and answers" Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi Stefano, On Wed, 2025-11-12 at 11:32 +0100, Stefano Brivio wrote: > Hmm, actually, I have a hack that's not quite correct (we should make > ACK_INTERVAL adaptive instead, which is one of the other bits I'm > working on), but if it fixes the issue for you, it should at least mean > that we're talking about the same issue. > > Patch attached. Can you give that a try? That seemed to help quite a bit---it's now 200x faster than before, but still 10x slower than --network=3Dhost: $ curl --output /dev/null --progress-meter --form file=3D@./test.tar.gz= "https://www.ctan.org/submit/validate" % Total % Received % Xferd Average Speed Time Time Time = Current Dload Upload Total Spent Left = Speed 100 100M 0 345 100 100M 63 18.4M 0:00:05 0:00:05 --:--:-= - 20.3M (With the original pasta, stopped early) $ podman run --rm --pull=3Dnewer --volume=3D"$(realpath .):/srv/:Z" --w= orkdir=3D/srv/ --network=3Dpasta quay.io/fedora/fedora-minimal curl --outpu= t /dev/null --progress-meter --form file=3D@./test.tar.gz "https://www.ctan= .org/submit/validate" % Total % Received % Xferd Average Speed Time Time Time = Current Dload Upload Total Spent Left = Speed 4 100M 0 0 4 5056k 0 78152 0:22:21 0:01:06 0:21:1= 5 39298=E2=8F=8E (With the patch applied) $ podman run --rm --pull=3Dnewer --volume=3D"$(realpath .):/srv/:Z" --w= orkdir=3D/srv/ --network=3Dpasta quay.io/fedora/fedora-minimal curl --outpu= t /dev/null --progress-meter --form file=3D@./test.tar.gz "https://www.ctan= .org/submit/validate" % Total % Received % Xferd Average Speed Time Time Time = Current Dload Upload Total Spent Left = Speed 100 100M 0 345 100 100M 8 2393k 0:00:42 0:00:42 --:--:-= - 4729k $ podman run --rm --pull=3Dnewer --volume=3D"$(realpath .):/srv/:Z" --w= orkdir=3D/srv/ --network=3Dhost quay.io/fedora/fedora-minimal curl --output= /dev/null --progress-meter --form file=3D@./test.tar.gz "https://www.ctan.= org/submit/validate" % Total % Received % Xferd Average Speed Time Time Time = Current Dload Upload Total Spent Left = Speed 100 100M 0 345 100 100M 69 20.0M 0:00:04 0:00:04 --:--:-= - 20.4M Also, I should mention that I'm using the following networking-related sysctls: net.core.wmem_max=3D7500000 net.core.rmem_max=3D7500000 net.ipv4.tcp_notsent_lowat=3D131072 net.core.default_qdisc=3Dcake net.ipv4.tcp_congestion_control=3Dbbr I read some articles that suggested that those were a good idea, and I've been using them for about a year now, but I can disable those for testing if you want. I'm also using systemd's IPAddressAllow/IPAddressDeny/RestrictAddressFamilies and some SELinux port restrictions; I can easily disable those too. Thanks, -- Max