Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2023 14:40:47 +0000
From:      void <void@f-m.fm>
To:        freebsd-fs@freebsd.org
Subject:   Re: periodic trim for ufs2 ssds
Message-ID:  <ZXHZbxCAuVJtKVgo@int21h>
In-Reply-To: <CANCZdfoWixZy9uPeOimd%2BeTSOmaUT%2B5mbfFC0rynriXzHJ3Bmg@mail.gmail.com>
References:  <ZXHTAIPnrEOq4iaV@int21h> <CANCZdfoWixZy9uPeOimd%2BeTSOmaUT%2B5mbfFC0rynriXzHJ3Bmg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 07, 2023 at 07:20:10AM -0700, Warner Losh wrote:

>You need to tunefs that on and it will happen as you go. There is no way to
>batch this up to do it in the background. But there's no advantage to
>trimming a block multiple times... :).

ok, thanks.

(I should have mentioned 14-stable amd64 context)

I booted single-user then ran: 
fsck -y /dev/ada0s1a
fsck_ffs -E /dev/ada0s1a
tunefs -t /dev/ada0s1a
fsck_ffs -E /dev/ada0s1a

then booted multiuser

will console/messages or some other log show when it runs?
smartctl(8) makes no mention of trim.
-- 



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