You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



[SOLVED] Trim on SSD

Author (Read 9154 times)

0 Members and 2 Guests are viewing this topic.

Re: [SOLVED] Trim on SSD
« Reply #9 on: April 16, 2015, 02:17:05 AM »
 

MorrisConner

  • New to Forums
  • *
  • 1
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: 4

  • MEMORY: 256mb

  • VIDEO CARD: 67
I must said I have a SSD and installed on my laptop. I did an absolutely fresh introduce of windows 8.1. Furthermore, I'm new with this trimming point, thank you for the links..
 

Re: Trim
« Reply #8 on: November 03, 2014, 11:28:14 AM »
 

McDivot

  • Guest
Dave. Thanks again for your help i'll set up a daily cron job.
Bill
 

Re: Trim
« Reply #7 on: November 03, 2014, 09:47:56 AM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Thanks Dave,
I followed your tips and this is what i see.
Any idea what the (16 block) limit would mean.
My drive is a OCZ-Vertex4 120GB
I run different version of Linux on my main pc and was with the understanding that trim was handled my the kernel without any necessary input from the user.
Maybe i am wrong on this.
Thanks again for your help.
Bill

divot@asus-VM40B:~$ sudo hdparm -I /dev/sda | grep "TRIM supported"
[sudo] password for divot:
      *   Data Set Management TRIM supported (limit 16 blocks)
divot@asus-VM40B:~$ sudo fstrim -v /
/: 198092423168 bytes were trimmed
divot@asus-VM40B:~$

Hi Bill,

Not sure what the blocks mean, I have seen outputs with 4, 8 and now yours 16.
Maybe it's related to how many blocks it can Trim at a time.?

The outputs all look O.K, So Trim appears to be supported and working with your SSD
Really not sure why the test didn't work.??

If you look at the links I sent, they give details on how to set-up Trim with a daily Cron Job
That seems to be the preferred/most recommended way to Trim.
From what I have read, it appears that if you add it in fstab it can add an overhead,
because it Trims every time you delete something.

Dave

Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: Trim
« Reply #6 on: November 03, 2014, 09:06:11 AM »
 

McDivot

  • Guest
Thanks Dave,
I followed your tips and this is what i see.
Any idea what the (16 block) limit would mean.
My drive is a OCZ-Vertex4 120GB
I run different version of Linux on my main pc and was with the understanding that trim was handled my the kernel without any necessary input from the user.
Maybe i am wrong on this.
Thanks again for your help.
Bill

divot@asus-VM40B:~$ sudo hdparm -I /dev/sda | grep "TRIM supported"
[sudo] password for divot:
      *   Data Set Management TRIM supported (limit 16 blocks)
divot@asus-VM40B:~$ sudo fstrim -v /
/: 198092423168 bytes were trimmed
divot@asus-VM40B:~$
 

Re: Trim
« Reply #5 on: November 02, 2014, 07:35:22 AM »
 

sysdrum

  • Saying the wrong things at the right time.
  • Occasional Poster
  • **
  • 83
    Posts
  • Reputation: 12
  • That's personal.
    • View Profile

  • CPU: Intel Core i5-6400

  • MEMORY: 16Gb

  • VIDEO CARD: Nvidia 1050 Ti
This is what I used to setup a cron job trim on my workstation and laptop.
http://www.webupd8.org/2013/01/enable-trim-on-ssd-solid-state-drives.html
 

Re: Trim
« Reply #4 on: November 02, 2014, 06:29:02 AM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Nice one Dave :)

I'm fortunate enough to have SSD's on my PC's so I needed to do some research to make the most of them.
There are some things to optimise usage, but that can be another "Tips" post possibly.
Dave
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: Trim
« Reply #3 on: November 02, 2014, 01:18:34 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Nice one Dave :)
 

Re: Trim
« Reply #2 on: November 01, 2014, 07:09:27 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Reputation: 405
  • Linux Lite "Advocate"
    • View Profile

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
I have followed the instructions in  the manual to see if trim was working on my ssd.
Instead of o,s i got a screen full of f,s.
Attached is my new fstab file.

Hi,

First thing to do is check if your SSD actually support Trim?
Code: [Select]
sudo hdparm -I /dev/sda | grep "TRIM supported"
It should return something like this if it does
Code: [Select]
dave@asus-mini-1:~$ sudo hdparm -I /dev/sda | grep "TRIM supported"    * Data Set Management TRIM supported (limit 8 blocks)
dave@asus-mini-1:~$

If it does not return anything, it does not support Trim,
If it does, try
Code: [Select]
sudo fstrim -v /It should return something like:
Code: [Select]
/: 856668590 bytes were trimmedIt may take some time.

Here are some items on Trim, it appears there are differing opinions
on if should be done in "fstab" or doing it in "Daily" Chron job.

http://ivanblagojevic.com/2014/05/ubuntu-14-04-ssd-trim-see-my-settings-first-time-on-ssd/
http://www.webupd8.org/2013/01/enable-trim-on-ssd-solid-state-drives.html

At present I just do it manually with the
Code: [Select]
sudo fstrim -v /
Dave
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

[SOLVED] Trim on SSD
« Reply #1 on: November 01, 2014, 06:17:19 PM »
 

McDivot

  • Guest
I have followed the instructions in  the manual to see if trim was working on my ssd.
Instead of o,s i got a screen full of f,s.
Attached is my new fstab file.

[attachment deleted by admin, more than 25 days old]
« Last Edit: January 20, 2015, 07:59:01 PM by Scott(0) »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section