Skip to main content
Topic: non continuous trim setup for f2fs on SSD on desktop hp z280 (Read 617 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

non continuous trim setup for f2fs on SSD on desktop hp z280

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?


Re: non continuous trim setup for f2fs on SSD on desktop hp z280

Reply #2
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).

 

Re: non continuous trim setup for f2fs on SSD on desktop hp z280

Reply #3
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?