Artix Linux Forum

Artix Linux => Tutorials and HOWTOs => Topic started by: hastur on 21 May 2024, 01:27:35

Title: non continuous trim setup for f2fs on SSD on desktop hp z280
Post by: hastur on 21 May 2024, 01:27:35
https://support.hp.com/ca-en/document/c04887696

z240 I have artix with f2fs

I think it has defautl continuous trim

how do periodic trim?

How important is this?

I am trying kyber i/o sched too I heard bfq best what think?
Title: Re: non continuous trim setup for f2fs on SSD on desktop hp z280
Post by: nous on 21 May 2024, 18:38:59
/etc/cron.weekly/fstrim (https://wiki.archlinux.org/title/Solid_state_drive#Usage)
Title: Re: non continuous trim setup for f2fs on SSD on desktop hp z280
Post by: Caramon2 on 22 May 2024, 07:49:02
how do periodic trim?
/etc/cron.weekly/fstrim (https://wiki.archlinux.org/title/Solid_state_drive#Usage)
I thing daily is much more usefull: Trim doesn't hurt the SSD, but the opposite: It harms it, to hold and shift long deleted data.

Even my 1st SSD from 2015 *) has still 95% remaining livetime: I trim it every time I deleted data, with Win+Shit+W (for "Wartung"). fstrim is in /etc/sudoers

*) I still use it as an external (and everywhere bootable) Copy of my System (with all data and LUKS encryped Home).
Title: Re: non continuous trim setup for f2fs on SSD on desktop hp z280
Post by: hastur on 15 July 2024, 06:16:27
how do periodic trim?
/etc/cron.weekly/fstrim (https://wiki.archlinux.org/title/Solid_state_drive#Usage)

dinit here

Code: [Select]
drizzle-drizzle:[root]:~# lsblk --discard
NAME   DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
sda           0        4K       2G         0
├─sda1        0        4K       2G         0
├─sda2        0        4K       2G         0


Looks like I do have trim compatible.

Code: [Select]
/dev/sda2 on / type f2fs (rw,noatime,lazytime,background_gc=on,nogc_merge,discard,discard_unit=block,user_xattr,inline_xattr,acl,inline_data,inline_dentry,noflush_merge,barrier,extent_cache,mode=adaptive,active_logs=6,alloc_mode=default,checkpoint_merge,fsync_mode=posix,memory=normal,errors=continue)

I see discard there so it seems I have continuous trim..
Do I have to kinda reverse engineer the systemd trim things into dinit to make this work?  or has someone solved this b4?