Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2023 14:39:37 +0100
From:      Ruben <mail@osfux.nl>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: periodic trim for ufs2 ssds
Message-ID:  <220d2600-8ed5-4fb7-a64c-1d75850212a1@osfux.nl>
In-Reply-To: <1001525509.209637.1701962737772@localhost>
References:  <ZXHTAIPnrEOq4iaV@int21h> <CANCZdfoWixZy9uPeOimd%2BeTSOmaUT%2B5mbfFC0rynriXzHJ3Bmg@mail.gmail.com> <ZXHZbxCAuVJtKVgo@int21h> <66097626.208187.1701962504337@localhost> <1001525509.209637.1701962737772@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
TnX, this is informative :thumbsup

Ruben

On 12/7/23 16:25, Ronald Klop wrote:
> 
> *Van:* Ronald Klop <ronald-lists@klop.ws>
> *Datum:* donderdag, 7 december 2023 16:21
> *Aan:* void <void@f-m.fm>
> *CC:* freebsd-fs@freebsd.org
> *Onderwerp:* Re: periodic trim for ufs2 ssds
> 
>     *Van:* void <void@f-m.fm>
>     *Datum:* donderdag, 7 december 2023 15:40
>     *Aan:* freebsd-fs@freebsd.org
>     *Onderwerp:* Re: periodic trim for ufs2 ssds
> 
>         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.
>         -- 
>         ------------------------------------------------------------------------
> 
> 
> 
>     A tool like "gstat -d" will show columns for deletion which means trim.
> 
>     Regards,
>     Ronald.
> 
> This can give you some info too.
> 
> $ sysctl -a | grep trim
> <118>Creating and/or trimming log files.
> kern.cam.da.1.trim_ticks: 0
> kern.cam.da.1.trim_goal: 0
> kern.cam.da.1.trim_lbas: 0
> kern.cam.da.1.trim_ranges: 0
> kern.cam.da.1.trim_count: 0
> kern.cam.da.0.trim_ticks: 0
> kern.cam.da.0.trim_goal: 0
> kern.cam.da.0.trim_lbas: 75835864
> kern.cam.da.0.trim_ranges: 62293
> kern.cam.da.0.trim_count: 57020
> ...
> 
> Regards,
> Ronald.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?220d2600-8ed5-4fb7-a64c-1d75850212a1>