From: gomid4497 <rakeshw728@gmail.com>
To: linux-block@vger.kernel.org, osandov@fb.com
Cc: xiliang@redhat.com, gomid4497 <rakeshw728@gmail.com>
Subject: [PATCH blktests] block/038: cap submit_queues to min(4, nproc) to fix failure on low CPU machines
Date: Tue, 7 Apr 2026 14:06:55 +0530 [thread overview]
Message-ID: <20260407083655.43214-1-rakeshw728@gmail.com> (raw)
Signed-off-by: gomid4497 <rakeshw728@gmail.com>
---
tests/block/038 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/block/038 b/tests/block/038
index 56272be..5cbbd07 100755
--- a/tests/block/038
+++ b/tests/block/038
@@ -28,9 +28,10 @@ null_blk_power_loop() {
null_blk_submit_queues_loop() {
local nullb="$1"
+ local queues=$(( $(nproc) < 4 ? $(nproc) : 4 ))
for ((i = 1; i <= 200; i++)); do
echo 1 > "/sys/kernel/config/nullb/${nullb}/submit_queues"
- echo 4 > "/sys/kernel/config/nullb/${nullb}/submit_queues"
+ echo ${queues} > "/sys/kernel/config/nullb/${nullb}/submit_queues"
done
}
--
2.50.1 (Apple Git-155)
reply other threads:[~2026-04-07 8:37 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=20260407083655.43214-1-rakeshw728@gmail.com \
--to=rakeshw728@gmail.com \
--cc=linux-block@vger.kernel.org \
--cc=osandov@fb.com \
--cc=xiliang@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox