LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Time to do some TRIMming... (https://www.linuxquestions.org/questions/slackware-14/time-to-do-some-trimming-4175484623/)

Jeebizz 11-14-2013 06:43 PM

Time to do some TRIMming...
 
So now that I am on Slackware14.1 , and 3.10 kernel series, TRIM for JFS is now supported, though I can't seem to figure it out. Tried to peruse the man pages for all JFS , nothing really about TRIM, I guess I am looking in the wrong place?

How do I get started with TRIM for JFS for my SSD? :scratch:

rogan 11-14-2013 07:10 PM

TRIM isn't jfs specific. Just add discard after defaults in your fstab on your ssd partitions,
reboot, and never think about it again.
For example, change

/dev/sda2 / jfs defaults 1 1

to

/dev/sda2 / jfs defaults,discard 1 1

Jeebizz 11-14-2013 07:18 PM

Ah ok, where can I get some more info though about that option discard?

Also thanks for the help! :)

Daedra 11-14-2013 10:21 PM

If you are using an SSD, which I assume you are since you are asking about trim, you should add "notime" to your fstab also.

/dev/sda2 / jfs defaults,discard,noatime 1 1

jtsn 11-15-2013 04:02 AM

To trim the free space of a file system, use fstrim(1).

Jeebizz 11-15-2013 01:10 PM

I will look into more info on how to do that, since I don't understand at all how to use it - and don't really want to make any other changes just yet. Overall if I keeping discard option in my fstab is all that I need, then I'm happy right now :)


All times are GMT -5. The time now is 04:59 PM.