From: David Gibson <david@gibson.dropbear.id.au>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: Yumei Huang <yuhuang@redhat.com>, passt-dev@passt.top
Subject: Re: [PATCH v3 4/4] tcp: Update data retransmission timeout
Date: Wed, 29 Oct 2025 11:35:29 +1100 [thread overview]
Message-ID: <aQFhUUwJP6wqmetE@zatzit> (raw)
In-Reply-To: <20251029001330.579cc85a@elisabeth>
[-- Attachment #1: Type: text/plain, Size: 2425 bytes --]
On Wed, Oct 29, 2025 at 12:13:30AM +0100, Stefano Brivio wrote:
> On Mon, 20 Oct 2025 20:17:10 +1100
> David Gibson <david@gibson.dropbear.id.au> wrote:
>
> > On Mon, Oct 20, 2025 at 07:11:07AM +0200, Stefano Brivio wrote:
> > > On Mon, 20 Oct 2025 11:20:19 +1100
> > > David Gibson <david@gibson.dropbear.id.au> wrote:
[snip]
> > > > > Rather than the local link I was thinking of whatever monitor or
> > > > > liveness probe in KubeVirt which might have a 60-second period, or some
> > > > > firewall agent, or how long it typically takes for guests to stop and
> > > > > resume again in KubeVirt.
> > > >
> > > > Right, I hadn't considered those. Although.. do those actually re-use
> > > > a single connection? I would have guessed they use a new connection
> > > > each time, making the timeouts here irrelevant.
> > >
> > > It depends on the definition of "each time", because we don't time out
> > > host-side connections immediately.
> >
> > Hm, ok. Is your concern that getting a negative answer from the probe
> > will take too long?
>
> More like getting a positive answer taking too long, because we retry
> so infrequently.
Right, but it will only be slow if we lose the first probe, which
should be very rare.
> > > Pretending passt isn't there, the timeout would come from the default
> > > values for TCP connections. It looks like there's no specific
> > > SO_SNDTIMEO value set for those probes, and you can't configure the
> > > timeout, at least according to:
> > >
> > > https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-tcp-liveness-probe
> >
> > My guess would be that the probe would probably time out at the
> > application level long before the TCP layer times out, but I don't
> > know for sure.
>
> I don't think so. What I was pointing out is that I couldn't find any
> place in the implementation of those probes where a particular
> *handshake timeout* (not probe interval) is set on top of Linux's
> defaults, so timeouts at TCP layer and application level should be the
> same (no additional timeout in application logic).
Huh, that's mildly surprising to me.
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2025-10-29 0:35 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-14 7:38 [PATCH v3 0/4] Retry SYNs for inbound connections Yumei Huang
2025-10-14 7:38 ` [PATCH v3 1/4] tcp: Rename "retrans" to "retries" Yumei Huang
2025-10-14 22:50 ` David Gibson
2025-10-15 2:17 ` Yumei Huang
2025-10-14 7:38 ` [PATCH v3 2/4] util: Introduce read_file() and read_file_long() function Yumei Huang
2025-10-14 23:27 ` David Gibson
2025-10-15 3:50 ` Yumei Huang
2025-10-15 4:46 ` David Gibson
2025-10-15 5:46 ` Yumei Huang
2025-10-28 23:12 ` Stefano Brivio
2025-10-29 0:43 ` David Gibson
2025-10-29 4:43 ` Stefano Brivio
2025-10-29 9:35 ` David Gibson
2025-10-29 16:23 ` Stefano Brivio
2025-10-14 7:38 ` [PATCH v3 3/4] tcp: Resend SYN for inbound connections Yumei Huang
2025-10-14 23:40 ` David Gibson
2025-10-14 7:38 ` [PATCH v3 4/4] tcp: Update data retransmission timeout Yumei Huang
2025-10-15 0:05 ` David Gibson
2025-10-15 6:31 ` Yumei Huang
2025-10-15 22:54 ` David Gibson
2025-10-17 18:28 ` Stefano Brivio
2025-10-20 0:20 ` David Gibson
2025-10-20 5:11 ` Stefano Brivio
2025-10-20 9:17 ` David Gibson
2025-10-28 23:13 ` Stefano Brivio
2025-10-29 0:35 ` David Gibson [this message]
2025-10-29 4:52 ` Stefano Brivio
2025-10-29 9:37 ` David Gibson
2025-10-20 10:57 ` Yumei Huang
2025-10-20 23:20 ` Stefano Brivio
2025-10-22 2:23 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aQFhUUwJP6wqmetE@zatzit \
--to=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
--cc=yuhuang@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).