The following reply was made to PR port-amd64/57266; it has been noted by GNATS.
From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: port-amd64/57266: Poor disk performance on VirtualBox vioscsi0 and NetBSD 10.0_BETA
Date: Sat, 11 Mar 2023 23:08:44 -0000 (UTC)
bbartlomiej%gmail.com@localhost writes:
>[ 4197.011371] sd0(vioscsi0:0:0:0): adapter resource shortage
>[ 5134.201736] vioscsi0: autoconfiguration error: error reserving 35 (nsegs 18)
vioscsi seems to allocate a too small queue, so it's "natural" to
overflow it, and then that case isn't handled correctly by the
driver.
You should see a message like
"cmd_per_lun %u qsize %d seg_max %u max_target %hu max_lun %u\n"
The values come from VirtualBox. Can you please dump the values here?