![]() |
|
[SOLVED] Trim on SSD - Printable Version +- Linux Lite Forums (https://www.135978621.xyz/forums) +-- Forum: Hardware - Support (https://www.135978621.xyz/forums/forumdisplay.php?fid=6) +--- Forum: Hard Drives and SSDs (https://www.135978621.xyz/forums/forumdisplay.php?fid=26) +--- Thread: [SOLVED] Trim on SSD (/showthread.php?tid=1053) |
[SOLVED] Trim on SSD - McDivot - 11-01-2014 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] Re: Trim - Wirezfree - 11-01-2014 (11-01-2014, 10:17 PM)McDivot link Wrote: I have followed the instructions in the manual to see if trim was working on my ssd. Hi, First thing to do is check if your SSD actually support Trim? Code: sudo hdparm -I /dev/sda | grep "TRIM supported"It should return something like this if it does Code: dave@asus-mini-1:~$ sudo hdparm -I /dev/sda | grep "TRIM supported" * Data Set Management TRIM supported (limit 8 blocks)If it does not return anything, it does not support Trim, If it does, try Code: sudo fstrim -v /Code: /: 856668590 bytes were trimmedHere 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: sudo fstrim -v /Dave Re: Trim - valtam - 11-02-2014 Nice one Dave
Re: Trim - Wirezfree - 11-02-2014 (11-02-2014, 05:18 AM)Valtam link Wrote: 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 Re: Trim - sysdrum - 11-02-2014 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 - McDivot - 11-03-2014 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 - Wirezfree - 11-03-2014 (11-03-2014, 02:06 PM)McDivot link Wrote: Thanks Dave, 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 Re: Trim - McDivot - 11-03-2014 Dave. Thanks again for your help i'll set up a daily cron job. Bill Re: [SOLVED] Trim on SSD - MorrisConner - 04-16-2015 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.. |