You are Here:
Linux Lite 5.0 Final is now available for download and installation



Enabling TRIM on My SSD Is this Correct ?

Author (Read 461 times)

robinc and 2 Guests are viewing this topic.

Enabling TRIM on My SSD Is this Correct ?
« on: June 08, 2020, 03:29:53 AM »
 

GAULOISES

  • New to Forums
  • *
  • 19
    Posts
  • Country: de
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: i7-7700

  • MEMORY: 16Gb

  • VIDEO CARD: GTX1070

  • Kernel: 4.x
Code: [Select]
~ $ systemctl list-timers -a
NEXT                          LEFT        LAST                          PASSED       U
Mon 2020-06-08 10:00:36 CEST  37min left  Mon 2020-06-08 09:02:48 CEST  20min ago    a
Mon 2020-06-08 18:14:53 CEST  8h left     Mon 2020-06-08 06:31:12 CEST  2h 52min ago a
Tue 2020-06-09 06:03:44 CEST  20h left    Mon 2020-06-08 06:23:59 CEST  2h 59min ago a
Tue 2020-06-09 07:05:54 CEST  21h left    Mon 2020-06-08 07:05:54 CEST  2h 17min ago s
Mon 2020-06-15 00:00:00 CEST  6 days left Mon 2020-06-08 00:00:47 CEST  9h ago       f
n/a                           n/a         n/a                           n/a          m
n/a                           n/a         n/a                           n/a          s
n/a                           n/a         Mon 2020-06-08 06:51:42 CEST  2h 31min ago u

8 timers listed.
lines 1-11/11 (END)...skipping...
NEXT                          LEFT        LAST                          PASSED       UNIT                         ACTIVATES
Mon 2020-06-08 10:00:36 CEST  37min left  Mon 2020-06-08 09:02:48 CEST  20min ago    anacron.timer                anacron.service
Mon 2020-06-08 18:14:53 CEST  8h left     Mon 2020-06-08 06:31:12 CEST  2h 52min ago apt-daily.timer              apt-daily.service
Tue 2020-06-09 06:03:44 CEST  20h left    Mon 2020-06-08 06:23:59 CEST  2h 59min ago apt-daily-upgrade.timer      apt-daily-upgrade.service
Tue 2020-06-09 07:05:54 CEST  21h left    Mon 2020-06-08 07:05:54 CEST  2h 17min ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Mon 2020-06-15 00:00:00 CEST  6 days left Mon 2020-06-08 00:00:47 CEST  9h ago       fstrim.timer                 fstrim.service
n/a                           n/a         n/a                           n/a          motd-news.timer             
n/a                           n/a         n/a                           n/a          snapd.snap-repair.timer      snapd.snap-repair.service
n/a                           n/a         Mon 2020-06-08 06:51:42 CEST  2h 31min ago ureadahead-stop.timer        ureadahead-stop.service

8 timers listed.
Last Edit: June 08, 2020, 03:33:34 AM by GAULOISES

product: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
vendor: Intel Corp. // physical id: 1//bus info: cpu@0//// size: 2331MHz /////capacity: 4200MHz
width: 64 bits
 


Re: Enabling TRIM on My SSD Is this Correct ?
« Reply #1 on: June 08, 2020, 03:34:01 AM »
 

GAULOISES

  • New to Forums
  • *
  • 19
    Posts
  • Country: de
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: i7-7700

  • MEMORY: 16Gb

  • VIDEO CARD: GTX1070

  • Kernel: 4.x
i used this command                  ////                   systemctl list-timers -a

I would like to know if this ssd  looks correct ?

thank u

product: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
vendor: Intel Corp. // physical id: 1//bus info: cpu@0//// size: 2331MHz /////capacity: 4200MHz
width: 64 bits
 

Re: Enabling TRIM on My SSD Is this Correct ?
« Reply #2 on: June 08, 2020, 05:43:51 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7652
    Posts
  • Country: nz
  • Reputation: 722
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.0 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
There's no need to set Trim in Series 4 or 5, it is already enabled. Please use normal fonts and formatting in your posts. Thanks.
 

Re: Enabling TRIM on My SSD Is this Correct ?
« Reply #3 on: June 28, 2020, 02:58:32 AM »
 

johnausten13

  • New to Forums
  • *
  • 27
    Posts
  • Country: ph
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: E7500 @ 2.93Ghz

  • MEMORY: 6Gb

  • VIDEO CARD: Integrated

  • Kernel: 5.x
I optimized my TRIM Method from WEEKLY to DAILY job. The default TRIM in LL5 is WEEKLY but I think it is too long to recover some disk space to be useful again. I made some tweaks to change my TRIM to DAILY. But before that, check your TRIM timer first by copy-pasting this code to the Terminal:

Code: [Select]
systemctl cat fstrim.timer
Output is somewhat like this for the weekly job:

Code: [Select]
# /lib/systemd/system/fstrim.timer
[Unit]
Description=Discard unused blocks once a week
Documentation=man:fstrim
ConditionVirtualization=!container

[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true

[Install]
WantedBy=timers.target
 


Tags:
 


Linux Lite 5.0 Final is now available for download and installation