NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-amd64/57266: Poor disk performance on VirtualBox vioscsi0 and NetBSD 10.0_BETA
The following reply was made to PR port-amd64/57266; it has been noted by GNATS.
From: Bartek Krawczyk <bbartlomiej.mail%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost, port-amd64-maintainer%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc:
Subject: Re: port-amd64/57266: Poor disk performance on VirtualBox vioscsi0
and NetBSD 10.0_BETA
Date: Sun, 12 Mar 2023 11:18:44 +0100
On 12/03/2023 00:10, Michael van Elst wrote:
> 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?
>
It shows:
messages:Mar 12 11:06:11 netbsd /netbsd: [ 1.0546101] vioscsi0:
cmd_per_lun 128 qsize 1024 seg_max 126 max_target 2 max_lun 1
I haven't changed anything in default VirtualBox configuration except
for picking the virtio drivers for network and storage since I noticed
they're available. Today I tested with PIIX4 instead of virtio-scsi and
logs didn't show any errors but unpacking pkgsrc also took ~30min. The
VM has 12 vCPUs (Ryzen 9 3900x) and ~16GB of RAM assigned.
--
Regards
Bartek Krawczyk
Home |
Main Index |
Thread Index |
Old Index