Welcome!
Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

ssd trim <Answered>

Help for Current Versions of MX
User avatar
Richard
Posts: 2568
Joined: Fri Dec 12, 2008 10:31 am

Re: ssd trim

#11

Post by Richard » Mon Sep 17, 2018 4:06 pm

I have understood that MX runs trim auto-magically.
Looking for /var/log/trim.log, shows the following:

Code: Select all

*** Sat, 04 Aug 2018 07:59:11 -0400 ***
/DATA: 31.4 GiB (33667366912 bytes) trimmed
/: 9.6 GiB (10269773824 bytes) trimmed
*** Sat, 11 Aug 2018 11:00:43 -0400 ***
/DATA: 41.1 GiB (44108963840 bytes) trimmed
/: 10.6 GiB (11343609856 bytes) trimmed
*** Sat, 18 Aug 2018 11:17:28 -0400 ***
/DATA: 34.1 GiB (36630269952 bytes) trimmed
/: 9.8 GiB (10513829888 bytes) trimmed
*** Sat, 25 Aug 2018 10:00:03 -0400 ***
/DATA: 27.8 GiB (29793771520 bytes) trimmed
/: 10.6 GiB (11349786624 bytes) trimmed
*** Sat, 01 Sep 2018 09:13:57 -0400 ***
/DATA: 30.2 GiB (32405819392 bytes) trimmed
/: 8.1 GiB (8675037184 bytes) trimmed
*** Sat, 08 Sep 2018 03:12:22 -0400 ***
/DATA: 24.6 GiB (26413080576 bytes) trimmed
*** Sat, 15 Sep 2018 11:52:06 -0400 ***
/DATA: 20.3 GiB (21793103872 bytes) trimmed
/: 10.2 GiB (10957074432 bytes) trimmed
So MX is running trim when it finds an SSD.
Laptop: MX18.1: Thinkpad T430: DualCore, Intel i5-3320M, Ivy Bridge, 8GB RAM, 4.19.0-1-amd64, 119GB SSD 840PRO, Intel Graphics-Audio-Network
Netbook: MX18.1, antiX17.3: AsusTek EeePC 1005HA: Intel DualCore Atom N270, 1GB RAM, 4.19.0-1-686, 150GB HDD

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 24086
Joined: Wed Jul 19, 2006 6:13 am

Re: ssd trim

#12

Post by Jerry3904 » Mon Sep 17, 2018 4:46 pm

Yup, we introduced that back with MX-15 I think.
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, SSD 120 GB, Data 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB
Personal: XPS 13, 4.18.0-19.3-liquorix, 4 GB

User avatar
colin_b
Forum Regular
Forum Regular
Posts: 484
Joined: Sun Mar 19, 2017 7:21 pm

Re: ssd trim

#13

Post by colin_b » Mon Sep 17, 2018 7:21 pm

Richard wrote:
Mon Sep 17, 2018 4:06 pm
So MX is running trim when it finds an SSD.
Jerry3904 wrote:
Mon Sep 17, 2018 4:46 pm
Yup, we introduced that back with MX-15 I think.
It strikes me that this is a useful and important feature which receives no fanfare and is being overlooked.

As a suggestion, if someone has an SSD drive installed would it be possible for an MX tool to appear which, when clicked, opens the trim log.

People would then know that they don't have to worry about trimming.

User avatar
Gordon Cooper
Forum Guide
Forum Guide
Posts: 2295
Joined: Mon Nov 21, 2011 5:50 pm

Re: ssd trim

#14

Post by Gordon Cooper » Mon Sep 17, 2018 7:38 pm

There was quite a lot of discussion about this when ssd's (at a reasonable price) came into use. Trim is also explained in the MX User Manual - section 3.1.5.
Primary: Dell9010, MX-18, Win7, 120 SSD, WD 232GIB HD, 4GB RAM
Backup :Homebrew64 bit Intel duo core 2 GB RAM, 120 GB Kingston SSD, Seagate1TB.
MX-17.1 64bit. Also MX17, Kubuntu14.04 & Puppy 6.3.

sunrat
Forum Regular
Forum Regular
Posts: 336
Joined: Mon Mar 28, 2016 9:54 pm

Re: ssd trim

#15

Post by sunrat » Mon Sep 17, 2018 10:14 pm

Gordon Cooper wrote:
Mon Sep 17, 2018 7:38 pm
There was quite a lot of discussion about this when ssd's (at a reasonable price) came into use. Trim is also explained in the MX User Manual - section 3.1.5.
So many problems would be solved and questions avoided if people would actually read manuals.

User avatar
Gordon Cooper
Forum Guide
Forum Guide
Posts: 2295
Joined: Mon Nov 21, 2011 5:50 pm

Re: ssd trim

#16

Post by Gordon Cooper » Tue Sep 18, 2018 12:40 am

@ sunrat. Yep, agree about the manual reading. One of the problems is that there is so much good advice and help here on the forum that the manual is overlooked. If we didn't have such help from the experts, then a manual is the usual source of assistance. The MX manual says this about ssd's with the two words underlined and in upper case being links from the manual to more information:

SSDs
Increasingly, machines may have an internal SSD: a solid state drive that has no moving
components. These drives tend to accumulate blocks of data that are no longer considered in use,
slowing down this very fast drive. To prevent this from happening, MX Linux runs a TRIM
operation on a weekly schedule that you can view by opening the file /etc/cron.weekly/fstrim-mx.
Primary: Dell9010, MX-18, Win7, 120 SSD, WD 232GIB HD, 4GB RAM
Backup :Homebrew64 bit Intel duo core 2 GB RAM, 120 GB Kingston SSD, Seagate1TB.
MX-17.1 64bit. Also MX17, Kubuntu14.04 & Puppy 6.3.

old_guy
Forum Novice
Forum  Novice
Posts: 48
Joined: Sat Oct 28, 2017 4:30 pm

Re: ssd trim

#17

Post by old_guy » Tue Sep 18, 2018 7:26 am

Thanks everyone for the suggestions (especially to read the manual - I did!). So how about to my original question:

"I don't keep my system on all the time and don't know when/how cron runs, so my question is how should I run trim (fstrim-mx) on my machine?"

If my machine is not on when cron is supposed to run - then what should I do? Run trim manually and how often?

Earl

User avatar
richb
Administrator
Posts: 18340
Joined: Wed Jul 12, 2006 2:17 pm

Re: ssd trim

#18

Post by richb » Tue Sep 18, 2018 7:35 am

To execute manually:

In terminal to trim root partition
sudo fstrim -v /

For home partition
sudo fstrim -v /home

I would do it weekly.

But check your trim.log in /var/log. It may execute weekly when yo turn your machine on. The trim.log will show when it is executed.
Forum Rules
Guide - How to Ask for Help

Rich
SSD Production: MX 18.1
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB, 350 GB HD

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 10893
Joined: Sun Dec 16, 2007 1:17 pm

Re: ssd trim

#19

Post by dolphin_oracle » Tue Sep 18, 2018 7:41 am

we use anacron, which has a mechanism built-in so that jobs run when the machine is on and are not skipped.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18
lenovo s21e - MX-18, antiX-17.3.1 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

Post Reply

Return to “MX Help”