Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
8ee2468483 |
@@ -0,0 +1,38 @@
|
||||
From 8781bfdea3db59236b9954bfda82c2ebb4a54c56 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Chlad <sebastian.chlad@suse.com>
|
||||
Date: Wed, 3 Sep 2025 13:35:24 +0200
|
||||
Subject: [PATCH liburing] test/recvsend_bundle: enlarge recv buf-ring to 2 MiB
|
||||
to avoid ENOBUFS on ppc64
|
||||
|
||||
Sub-test (d) "bundling with full socket" pre-fills the peer until EAGAIN.
|
||||
On some architectures (like ppc64), once the tcp_w/rmem min is set to higher
|
||||
value, like 64k and with autotuning on, the sender can queue more than the
|
||||
1MiB before the receiver arms multishot recv. With a 1MiB provided-buffer
|
||||
pool (MSG_SIZE * RECV_BIDS, so 8192 * 128), the first recv runs out of
|
||||
provided buffers and fails with -105 (ENOBUFS).
|
||||
|
||||
Bump RECV_BIDS from 8192 to 16384, so the pool no longer underflows
|
||||
during the prefill on ppc64. This is a minimal, test-only tweak to
|
||||
stabilize results across different arches without changing test logic.
|
||||
|
||||
Signed-off-by: Sebastian Chlad <sebastian.chlad@suse.com>
|
||||
---
|
||||
test/recvsend_bundle.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/test/recvsend_bundle.c b/test/recvsend_bundle.c
|
||||
index d6c5ec3b..da076a52 100644
|
||||
--- a/test/recvsend_bundle.c
|
||||
+++ b/test/recvsend_bundle.c
|
||||
@@ -21,7 +21,7 @@ static int nr_msgs;
|
||||
static int use_tcp;
|
||||
static int classic_buffers;
|
||||
|
||||
-#define RECV_BIDS 8192
|
||||
+#define RECV_BIDS 16384
|
||||
#define RECV_BID_MASK (RECV_BIDS - 1)
|
||||
|
||||
#include "liburing.h"
|
||||
--
|
||||
2.51.0
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 9 17:40:39 UTC 2025 - Gabriel Krisman Bertazi <gabriel.bertazi@suse.com>
|
||||
|
||||
- Add upstream patch to fix test on ppc64le
|
||||
* 0001-test-recvsend_bundle-enlarge-recv-buf-ring-to-2-MiB-.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 11 08:39:50 UTC 2025 - Jiri Slaby <jslaby@suse.cz>
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ Source1: https://brick.kernel.dk/snaps/%{name}-%{version}.tar.gz.asc
|
||||
Source2: https://git.kernel.org/pub/scm/docs/kernel/pgpkeys.git/plain/keys/F7D358FB2971E0A6.asc#/%{name}.keyring
|
||||
Patch0: 0001-test-init-mem-zero-the-ringbuf-memory.patch
|
||||
Patch1: 0001-test-rsrc_tags-use-correct-buffer-index-for-test.patch
|
||||
Patch2: 0001-test-recvsend_bundle-enlarge-recv-buf-ring-to-2-MiB-.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
Reference in New Issue
Block a user