Re: periodic trim for ufs2 ssds
- In reply to: Ronald Klop : "Re: periodic trim for ufs2 ssds"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Dec 2023 13:39:37 UTC
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.