Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2020 11:29:39 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Wojciech Puchar <wojtek@puchar.net>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: nvme/nvd - trim seems to be one block a time
Message-ID:  <CANCZdfpnZvcD%2B3K4Tvfb3to1xkNWUB4eiJsDnad95u31cqNJzg@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.20.2001051824200.52104@puchar.net>
References:  <alpine.BSF.2.20.2001051824200.52104@puchar.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 5, 2020, 10:26 AM Wojciech Puchar <wojtek@puchar.net> wrote:

> on NVD devices trim seems to be send one block a time when used with UFS
> this stall whole system when deleting many gigabytes.
>
> what am i doing wrong?
>

That's what it does. Upgrade to 12 and you can use the trim collapsing code
in UFS to reduce the number of trims, and/or use the nda device which does
trim collapsing as well (ufs can only do contiguous ranges, nda does non
continuous as supported in the underlying protocol). Current has even more
fixes to nda.

Warner

FreeBSD puchar.net 11.3-STABLE
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>



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