Hey guys,
Does anybody knows how to trim SSD on Ubuntu 14.04 LTS?
-
:thumbsup:
-
Also see this post for Linux on SSD:
http://forum.notebookreview.com/lin...ware/699790-linux-ssd-swap-2.html#post9229971 -
ALLurGroceries Vegan Vermin Super Moderator
Should yield something like this:Code:hdparm -I /dev/sdX | grep -i trim
More here:Code:* Data Set Management TRIM supported (limit 1 block) * Deterministic read data after TRIM
https://wiki.archlinux.org/index.php/Solid_State_Drives#Verify_TRIM_Support -
well,I found this command
sudo fstrim -v /
on the net and it works!check it out!UNCNDL1 likes this. -
If you want it to be permanently activated you have to set the discard flag in /etc/fstab. It should look something like this.
Code:/dev/sdaX / ext4 defaults,noatime,discard 0 1
-
Please don't add "discard" to fstab, it will cause a trim every time you delete. I just set up a new Ubuntu laptop, here is a link to the complete list of things that need to be done to optimize and SSD
https://sites.google.com/site/easyl...omatic-TRIM-by-rc.local-by-cron-or-by-discard -
Yes, and that's exactly what you want to do with the discard option.
Please don't?
Just because you prefer to trim manually, does not mean everybody does -
My observation is, respectfuly, if you research you will find the 'discard' approach makes every delete operation you throw at disk, 50+ times slower than it needs to be. Not exactly why i invest in SSD's, to slow them down by less than optimal choices about alignment or trimming. Your mileage may vary
-
Right, apparently adding discard to the appropriate disk in fstab will slow the SSD down on only the manipulation of a massive amount of small files. Otherwise, you won't notice a difference.
Adding noatime seems to lessen the wear/tear as well.
Anyway, Ubuntu 14.04 comes with TRIM support out of the box if your SSD is intel/samsung. All it does is issue the fstrim command on your SSD(s) once a week.UNCNDL1 likes this. -
But not Crucial?
-
How about for Linux Mint 17 Qiana? I am dual booting between that and Windows 7. Thanks.
-
Glad you asked, I have read this thread a few times M500/M5x0 QUEUED-TRIM data corruption alert (mostl... - Crucial Community and honestly am not sure of the answer. I just installed U 14.04.1 LTS and updated to the current stable kernel 3.16 ... on my M500 and no issues so far.
After reading this http://www.spinics.net/lists/linux-ide/msg48361.html it seem if you are on MU05 firmware and Kernel 3.15 or above there should be no fear of data loss, can anyone confirm this or am I misreading ?
Thanks for any inputs! -
Linux Mint 17 codename Qiana. is based on Ubuntu 14.04
Linux Mint 17 Cinnamon Release Notes - Linux Mint
Cheers
3Fees
I have Linux Mint 17.1 -Cinnamon -code named -Rebecca on my HP DV5000 Laptop with the 17.1 updated kernel,,can install 17.1-Rebecca from updates on Qiana, then install the updated Kernel as well. I did last night, very easy all bumps,ect pre-figured out by the Linux Mint team, Clem,ect,,check it out...
-
There was a time when the Linux kernel implemented TRIM in a less than idea way and enabling discard would result in sending a large number of small TRIMed address ranges in a row, which is why people say discard is very bad for performance.
Basically instead of saying this:
the kernel says this:
This has been fixed.
If your file system is heavily fragmented or you're handling many small files, in-line TRIM would still slow things download a bit upfront, but you get cleaner FTL and more efficient GC in the long run. Obviously, there's even less reason not to enable TRIM if you have queued TRIM support (which you do on a modern Linux kernel when not running the buggy M5X0).Last edited: Dec 22, 2014Dufus likes this. -
Here is an article with data backing up the claim "discard" option greatly slows down delete operations: https://patrick-nagel.net/blog/archives/337
-
If that's how it was done then "less than ideal" would be a massive understatement.
-
M550 MU02 firmware update
M500/M5x0 QUEUED-TRIM data corruption alert (mostl... - Page 5 - Crucial Community
Trim SSD on Ubuntu?
Discussion in 'Linux Compatibility and Software' started by NickKas, May 30, 2014.