Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Oct 2017 08:13:20 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Gerhard Schmidt <estartu@ze.tum.de>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: nvd0 lockup while compiling ports
Message-ID:  <CANCZdfrvUScKMPX8HrL3W_mRa_Ut3XT38NDxy1zvX19Dt_2n8A@mail.gmail.com>
In-Reply-To: <8d1471c9-7341-8892-88f7-a539fc77c45e@ze.tum.de>
References:  <8d1471c9-7341-8892-88f7-a539fc77c45e@ze.tum.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 4, 2017 at 6:03 AM, Gerhard Schmidt <estartu@ze.tum.de> wrote:

> Hi,
>
> I've got a new Workstation last week with the Main HD as M2 Card.
>
> FreeBSD recognizes the card as nvd0
> nvd0: <Samsung SSD 960 PRO 512GB> NVMe namespace
> nvd0: 488386MB (1000215216 512 byte sectors)
>
> When compiling some ports (in this example VirtualBox-ose) I
> experiencing lockups on the Harddisk when many files are deleted.
>
> here is the entries gstat reports
>
> dT: 1.064s  w: 1.000s
>  L(q)  ops/s    r/s   kBps   ms/r    w/s   kBps   ms/w   %busy Name
>  25281    769      0      0    0.0      0      0    0.0  100.0| nvd0
>  25279    769      0      0    0.0      0      0    0.0  100.0| nvd0p4
>  25279    769      0      0    0.0      0      0    0.0  100.0| ufs/USR
>
> here the right part of gstat -d -o
>
> dT: 1.003s  w: 1.000s
>     d/s   kBps   ms/d    o/s   ms/o   %busy Name
>     770  24641  31965      0    0.0  100.1| nvd0
>     770  24641  31965      0    0.0  100.1| nvd0p4
>     770  24641  31965      0    0.0  100.1| ufs/USR
>
> the numbers under L(q) go up to about 160000 and as long as theses
> operations are not finisched, no outer file operation is possible on
> this filesystem.
>
> The number of ops/s and d/s is constant aproximatly 770.
>
> Is there a way to speed up delete operations or limit the queue length?
>

Try disabling TRIM.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrvUScKMPX8HrL3W_mRa_Ut3XT38NDxy1zvX19Dt_2n8A>