Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: automatic trim for ssd's default in trusty

  1. #1
    Join Date
    Jan 2007
    Location
    Connecticut
    Beans
    1,631
    Distro
    Ubuntu Development Release

    automatic trim for ssd's default in trusty

    saw this over at the discourse site....great news! i have been adding different options to set trim since using ssd's over the last year or so (cron job, adding discard to fstab, etc...). nice to know it will be enabled by default without having to edit anything after install!

    http://discourse.ubuntu.com/t/ssds-a...y-default/1346

    https://plus.google.com/107564545827...ts/D2SB1zxb9Z9

    https://launchpad.net/ubuntu/+source....1-5.1ubuntu11
    MOTHERBOARD: GIGABYTE GA-990FXA-UD5, CPU: AMD FX-8150 Zambezi
    MEMORY: G.SKILL Ripjaws Z Series 32GB (4 x 8GB),
    VIDEO CARD: ASUS GTX480
    SSDs: Kingston HyperX 3K 120Gb, PNY XLR 120Gb
    OS: Ubuntu Release Candidate, openSuse, Win8.



  2. #2
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,835
    Distro
    Ubuntu Development Release

    Re: automatic trim for ssd's default in trusty

    Yeah, I saw that -- very encouraging!

    I bought my first SSD, last week.

    First thing I did was invoke TRIM.

    This seems to work out pretty well...

    http://www.techrepublic.com/blog/lin...ge-with-linux/

    I was wondering why they couldn't add something like this to +1 for testing.

    Since you've been into this for awhile, what do you think of this guy's twist?!?!?
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  3. #3
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    5,572
    Distro
    Ubuntu Development Release

    Re: automatic trim for ssd's default in trusty

    I have been running my ssd on SandyBridge since 13.04 (without TRIM). Ahhh .. but Trusty will be set for TRIM by Default.

    I don't see any performance issues at current. It runs instantaneously! Closest to a super-computer that Iv'e seen. My ssd is SATA 3 Gen. I am going to replace a 13.04 partition with Trusty. I read the link you posted. Are there any cautions about using TRIM with partitions?
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running Trusty /devel/@ 5.120GHz32bit/ Please put [ prefix] on New Threads!

  4. #4
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,835
    Distro
    Ubuntu Development Release

    Re: automatic trim for ssd's default in trusty

    Quote Originally Posted by ventrical View Post
    I read the link you posted. Are there any cautions about using TRIM with partitions?
    Only thing that concerns me is the 'discard' option in the fstab drive entry.

    On several sites, I've read that whole blocks of data can magically disappear without warning, when you run this option.

    Heh! I'll be using this SSD in my 'road warrior'. I don't need to puke a drive 3000 miles from home, you know?
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  5. #5
    Join Date
    Jun 2007
    Beans
    13,101

    Re: automatic trim for ssd's default in trusty

    I wouldn't bother with discard in fstab, just let the new script do what it does (currently set to run weekly in cron
    ( I only use noatime in fstab here for my current ssd

  6. #6
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,835
    Distro
    Ubuntu Development Release

    Re: automatic trim for ssd's default in trusty

    Quote Originally Posted by mc4man View Post
    I wouldn't bother with discard in fstab, just let the new script do what it does [...]
    pitti (I assume Pitt) script?!?!?

    http://people.canonical.com/~pitti/scripts/fstrim
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  7. #7
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    5,572
    Distro
    Ubuntu Development Release

    Re: automatic trim for ssd's default in trusty

    It says I have to enter the first LBA adress.

    hdparm --read-sector [ADDRESS] /dev/sdX

    and I get ..

    Code:
    root@ventrical-MS-7798:~# hdparm --fibmap tempfile
    
    tempfile:
     filesystem blocksize 4096, begins at LBA 2048; assuming 512 byte sectors.
     byte_offset  begin_LBA    end_LBA    sectors
               0    9516032    9520127       4096
         2097152    9582592    9586687       4096
         4194304    9439232    9447423       8192
         8388608    9472000    9504767      32768
        25165824    9635840    9689087      53248
    root@ventrical-MS-7798:~# hdparm --read-sector [2048] /dev/sdX
      read-sector: bad/missing sector value
    root@ventrical-MS-7798:~# hdparm --read-sector [9516032] /dev/sdX
      read-sector: bad/missing sector value
    root@ventrical-MS-7798:~#

    So what did I do wrong?

    Note. This is a fresh install of Trusty daily (seamless) so I am just testing to see if TRIM is running by default..

    How to here :
    https://sites.google.com/site/lightrush/random-1/checkiftrimonext4isenabledandworking

    Last edited by ventrical; December 19th, 2013 at 02:10 PM.
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running Trusty /devel/@ 5.120GHz32bit/ Please put [ prefix] on New Threads!

  8. #8
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    5,572
    Distro
    Ubuntu Development Release

    Re: automatic trim for ssd's default in trusty

    I assume now that TRIM was not set by default in trusty daily-current install because there is no fstab directory.
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running Trusty /devel/@ 5.120GHz32bit/ Please put [ prefix] on New Threads!

  9. #9
    Join Date
    Jan 2007
    Location
    Connecticut
    Beans
    1,631
    Distro
    Ubuntu Development Release

    Re: automatic trim for ssd's default in trusty

    Quote Originally Posted by ventrical View Post
    It says I have to enter the first LBA adress.

    hdparm --read-sector [ADDRESS] /dev/sdX

    and I get ..

    Code:
    root@ventrical-MS-7798:~# hdparm --fibmap tempfile
    
    tempfile:
     filesystem blocksize 4096, begins at LBA 2048; assuming 512 byte sectors.
     byte_offset  begin_LBA    end_LBA    sectors
               0    9516032    9520127       4096
         2097152    9582592    9586687       4096
         4194304    9439232    9447423       8192
         8388608    9472000    9504767      32768
        25165824    9635840    9689087      53248
    root@ventrical-MS-7798:~# hdparm --read-sector [2048] /dev/sdX
      read-sector: bad/missing sector value
    root@ventrical-MS-7798:~# hdparm --read-sector [9516032] /dev/sdX
      read-sector: bad/missing sector value
    root@ventrical-MS-7798:~#

    So what did I do wrong?


    ventrical, in your example above (/dev/sdX) the "X" in sdX needs to be changed to reflect you ssd drive (sda, sdb, sdc...ect). also the read-sector should be the number directly under "begin LBA" but WITHOUT the brackets. so your hdparm --read-sector line should be as follows (assuming your drive is sda):

    Code:
    sudo hdparm --read-sector 9516032 /dev/sda
    hope that helps
    MOTHERBOARD: GIGABYTE GA-990FXA-UD5, CPU: AMD FX-8150 Zambezi
    MEMORY: G.SKILL Ripjaws Z Series 32GB (4 x 8GB),
    VIDEO CARD: ASUS GTX480
    SSDs: Kingston HyperX 3K 120Gb, PNY XLR 120Gb
    OS: Ubuntu Release Candidate, openSuse, Win8.



  10. #10
    Join Date
    Mar 2010
    Beans
    151
    Distro
    Ubuntu Development Release

    Re: automatic trim for ssd's default in trusty

    Quote Originally Posted by ventrical View Post
    I assume now that TRIM was not set by default in trusty daily-current install because there is no fstab directory.
    This automatic TRIM in Trusty isn't achieved by adding discard to /etc/fstab but by running a weekly cron job and it was already pointed out by mc4man.

    Read the changelog for util-linux that was linked in first post it has all that information.

    https://launchpad.net/ubuntu/+source....1-5.1ubuntu11
    Last edited by Mateusz Stachowski; December 19th, 2013 at 02:42 PM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •