Jump to content

SSD's, TRIM and other stuff that's related.


TN.Frank

Recommended Posts

Just installed a couple 32GB Kingston 2.5" SSD's in my #1 and Jr. and want to make sure I have things working as well as possible.

I read through this web page:

http://www.webupd8.org/2013/01/enable-trim-on-ssd-solid-state-drives.html

and did the following:

Partitioned a 3GB section and left it "Unallocated".

Checked to see if I had TRIM with:

sudo hdparm -I /dev/sda | grep "TRIM supported"

and I looks like I do have it(but the 32GB KingSpec 1.8" ZIF SSD that I put into my Acer Aspire ZG5 Netbook doesn't seem to have TRIM, go figure.)

so I've done this:

gksu gedit /etc/cron.daily/trim

and put this into the file that opened up.

#!/bin/sh

LOG=/var/log/trim.log

echo "*** $(date -R) ***" >> $LOG

fstrim -v / >> $LOG

fstrim -v /home >> $LOG

I also added this in Terminal

sudo chmod +x /etc/cron.daily/trim

but I really have no way of knowing if it's working or not so I also manual do a TRIM with

sudo fstrim -v /

and

sudo fstrim -v /home

to make sure blocks are being cleaned up and are ready for new info.

I've also set the cache in Firefox to 0MB so Firefox won't be writting to the SSD all the time.

Anyway, any other tips or tricks ya'll have that are running SSD's in your systems?

Edited by TN.Frank
Link to comment
Share on other sites

Well for one, any output from a script run by cron gets emailed to the account it's running under/for so you could, instead of redirecting to some logfile, just leave that out and configure the local mailer to dump root mails in your local inbox. Next you make that script output something that will sufficiently prove to you that it did its thing and you can safely stop doing the manual trims - just make sure to check your mailbox every so often if you feel you might not be getting your moneys worth.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...