public inbox for [email protected]
 help / color / mirror / Atom feed
From: Peter Veentjer <[email protected]>
To: [email protected]
Subject: Socket IORING_OP_WRITEV fails spuriously with EAGAIN.
Date: Tue, 23 May 2023 06:28:49 +0300	[thread overview]
Message-ID: <CAGuAWdAZLYdzby8n=9-Au8sLQrkL-26HfqtzMqMcEdKiSXihEQ@mail.gmail.com> (raw)

Hi,

I'm working on an io_uring binding for Java and one of my integration
tests is failing. In this test, I'm writing large payloads
(up to 10x1MB) to the same non-blocking socket using IORING_OP_WRITE
to simulate congestion.

The strange thing is that the cqe, indicates the request failed with an
EAGAIN on Fedora 38 (Linux 5.16.12-200.fc35.x86_64). But on On Arch
Linux (linux 6.3.2.arch1-1) the test runs perfectly fine.

When I reduce the size of the payloads or the number of payloads,
the test passes on Fedora.

My questions are:

1) under which condition can an IORING_OP_WRITEV fail with an EAGAIN?
I have gone with a comb through the documentation and I do not see any
obvious causes.

2) what is the recommended approach to resolve the problem?
Resubmitting the task solves the problem, but I'm worried it leads to
spinning behavior.

3) When an IORING_OP_WRITEV fails with EAGAIN, is it guaranteed that
nothing got written?

Regards,

Peter

                 reply	other threads:[~2023-05-23  3:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAGuAWdAZLYdzby8n=9-Au8sLQrkL-26HfqtzMqMcEdKiSXihEQ@mail.gmail.com' \
    [email protected] \
    [email protected] \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox