Skip to contentSkip to conversation

fio: warn about "ioengine=psync" and "iodepth >= 1"

PATCH Applied Alexey Dobriyan 2 participants 2 messages Oct 15, 2022 – Oct 16, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fio: warn about "ioengine=psync" and "iodepth >= 1"

Some users are using both ioengine=psync and iodepth=2+ without blinking in front of the millions:

	https://youtu.be/coShLkCriXc?t=840
	https://youtu.be/coShLkCriXc?t=890

Help them with helpful message.

---

 backend.c |    5 +++++
 1 file changed, 5 insertions(+)
backend.c +5 -0
@@ -1791,6 +1791,11 @@ static void *thread_main(void *data)
 	if (td_io_init(td))
 		goto err;
 
+	if (td_ioengine_flagged(td, FIO_SYNCIO) && td->o.iodepth > 1) {
+		log_info("note: both iodepth>=1 and synchronous I/O engine are selected, "
+			 "queue depth will be capped at 1\n");
+	}
+
 	if (init_io_u(td))
 		goto err;
 
Applied
#1 lore raw
Quoted 9 lines · Alexey Dobriyan

Some users are using both ioengine=psync and iodepth=2+ without blinking in front of the millions:

	https://youtu.be/coShLkCriXc?t=840
	https://youtu.be/coShLkCriXc?t=890

Help them with helpful message.

[...]

Applied, thanks!

[1/1] fio: warn about "ioengine=psync" and "iodepth >= 1"

      commit: 349d5f6c30cc7be60da8878d0b0078697f356897

Best regards,

Signature · 1 line
Jens Axboe