Page 8 of 9 FirstFirst ... 6789 LastLast
Results 71 to 80 of 87

Thread: Will Karmic Koala automatically have trim in effect ...

  1. #71
    Join Date
    Feb 2008
    Beans
    36
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Will Karmic Koala automatically have trim in effect ...

    To answer the original question, no karmic doesn't have trim in effect.

    However I grew a pair and tried wiper.sh (from hdparm 9.27) - it definitely works for intel drives too.

    this

    Code:
    ########################################################################
    X25-M UNTRIMMED iozone
    ########################################################################
    
                                                      random  random
        KB  reclen   write rewrite    read    reread    read   write
    262144       4   55854   61601    77975    77408   18740   37199
    262144       8   79397   74942   107490   107615   34600   39998
    262144      16   92717   81941   147162   147530   60921   45298
    262144      32   98133   86319   175378   175948   98278   49321
    262144      64  102575   87223   200613   201029  141870   70205
    262144     128   96168  100709   224931   223912  181481   79198
    262144     256   95011  103151   233538   234261  212879   73557
    262144     512  110951   93840   244588   242498  233184   95013
    262144    1024  112000   94834   253001   248172  245917   76849
    262144    2048  112031   95471   252609   250570  209723   69661
    262144    4096   98865  107274   255614   255558  213758   75851
    262144    8192   97032   93397   258498   258156  238280  111814
    turned into this

    Code:
    ########################################################################
    X25-M TRIMMED iozone
    ########################################################################
    
                                                      random  random
        KB  reclen   write rewrite    read    reread    read   write
    262144       4   55436   65711    79852    80149   19067   53292
    262144       8   77232   84058   109771   110180   34861   78440
    262144      16   88799   94750   149140   147288   61525   94093
    262144      32   97577  101654   174621   171067   98781  100264
    262144      64  101396  106724   197531   202331  143772  106063
    262144     128  107555  106179   220295   218789  180567  109024
    262144     256  109005  108426   231249   226626  211819  110158
    262144     512  107378  110893   233207   235219  233527  109245
    262144    1024  110281  111575   241247   240927  244339  111624
    262144    2048  111814  112242   242394   243583  208330  110694
    262144    4096  110209  112247   248230   248664  213787  112301
    262144    8192  111614  112405   250563   250567  238135  112355
    You gotta love intel's capped write speed...
    The process is as fast as the intel tool under windows (a couple of seconds) and I guess it could be automated with cron if one edits out the verification questions.
    It doesn't work on ntfs however, it only trimmed my ext4 partitions.

    It really isn't that bad considering that only win7 users get auto trim.
    Under vista and xp you need to use tools exactly like this.
    HP Elitebook 8530p | C2D T9400 - 4GB DDR2 800 - ATI mobility radeon 3650 - Intel x25m 160GB G2
    A monkey hitting random keys on a computer keyboard for an infinite amount of time will almost surely create fglrx drivers...

  2. #72
    Join Date
    Apr 2007
    Location
    Copenhagen
    Beans
    146
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Will Karmic Koala automatically have trim in effect ...

    I just ran the wiper script on my 80GB X-25M Postville as well. Results:

    Code:
    BEFORE:
    
    	Output is in Kbytes/sec
                                                                random  random
                  KB  reclen   write rewrite    read    reread    read   write
              262144       4   32925   40142    44519    43749   17835    8443
              262144      64   81012   82615   199672   199854  140188   20138
              262144     512   34904   83236   249276   248545  227652   39838
    
    AFTER:
    
    	Output is in Kbytes/sec
                                                                random  random
                  KB  reclen   write rewrite    read    reread    read   write
              262144       4   36490   40840    44292    44289   17956   37066
              262144      64   80661   81554   200097   198793  141341   80823
              262144     512   83239   59139   247916   248620  232914   80520
    It seems that only the write performance is affected. But as you can see this is affected a lot (at least the random writes)! For both 4KB and 64KB random writes, performance increased 4 times after a trim!

    Thanks for the instructions all!

    BTW, I had to patch the wiper-script because Intel's drives are apparently not able to handle more than 512 ranges in one TRIM command (http://www.ocztechnologyforum.com/fo...&postcount=112). I'm including the patch to wiper-2.5.
    Attached Files Attached Files

  3. #73
    Join Date
    Apr 2007
    Location
    Copenhagen
    Beans
    146
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Will Karmic Koala automatically have trim in effect ...

    Hey apocalypse80. Do you have the second generation X25-M as well, or is yours the first generation?

    I have the G2 but it seems my write speed (random or not) is capped at around 80 MB/s, also after trimming. Yours, on the other hand, goes all the way up to ~110 MB/s on 512 KB random writes, and is generally faster than mine it seems.
    You also seem to have almost twice the read speed of my SSD when it comes to reading in 4 KB blocks non-randomly (not sure if that is sequentially or what).

    I haven't done any of that "partition alignment on erase boundaries"-stuff, I just created 2 ext4 partitions (root and home) plus swap and hoped the Intel firmware would handle the rest.
    Have you done anything out of the ordinary with your SSD? Do you have any idea why mine seems to be slower than yours?

  4. #74
    Join Date
    Nov 2008
    Beans
    43

    Re: Will Karmic Koala automatically have trim in effect ...

    btw, just in case anybody missed:

    http://www.dailytech.com/Intel+Issue...ticle17001.htm


  5. #75
    Join Date
    Feb 2008
    Beans
    36
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Will Karmic Koala automatically have trim in effect ...

    Quote Originally Posted by runesvend View Post
    Hey apocalypse80. Do you have the second generation X25-M as well, or is yours the first generation?
    It's a 160GB G2 with the latest firmware and I've done *everything*.

    The trim-enabled firmwares also increase the write speed of 160GB G2s from 80MB/s to ~100MB/s, I also had a cap at ~85MB/s initially.
    However the 80GB G2s do not get that speed bump, if you have one of those then yes your maximum will still be ~80MB/s.

    The best indicator of whether everything's a-ok is 4k random writes.
    If you have aligned and trimmed partitions then any intel G2 should get over 50MB/s, if you are much lower then something's missing.

    In my case perfect alignment but untrimmed resulted in ~35MB/s @ 4k random writes.
    HP Elitebook 8530p | C2D T9400 - 4GB DDR2 800 - ATI mobility radeon 3650 - Intel x25m 160GB G2
    A monkey hitting random keys on a computer keyboard for an infinite amount of time will almost surely create fglrx drivers...

  6. #76
    Join Date
    Jan 2010
    Beans
    1
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Will Karmic Koala automatically have trim in effect ...

    Has there been any 'official' news about when there's gonna be "automated" TRIM support? From what I've read also in the Lucid Lynx release it's not gonna be implemented, since it's still in early alpha anything could really happen.

    Not a big problem of course, since you can just schedule or manual run wiper.sh.

  7. #77
    Join Date
    Mar 2006
    Beans
    81

    Re: Will Karmic Koala automatically have trim in effect ...

    yes, kernel-trim works with 2.6.33-rc4 and indilinx firmware 1916 and mount option -o discard.
    deleting ~300MB small files results in:
    Code:
    heiko@locutus:~$ uname -r; mount|grep sda6
    2.6.33-020633rc4-generic
    /dev/sda6 on /home type ext4 (rw,noatime,discard)
    heiko@locutus:~$ sync
    heiko@locutus:~$ time `rm -rf linux-2.6.29.4;sync`
    
    real	0m1.378s
    user	0m0.030s
    sys	0m0.640s
    if it really work you can test it:
    get the used sectors for a file
    hdparm --fibmap filename
    read a sector from the file eg. with
    sudo hdparm --read-sector 66385920 /dev/sda
    delete the file and sync
    rm filename;sync
    and read the sector a second time
    Last edited by antiram; January 17th, 2010 at 06:50 PM.

  8. #78
    Join Date
    Aug 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Will Karmic Koala automatically have trim in effect ...

    I just tried running wiper.sh version 2.5 for the first time on my x25m gen2 and got the following terminal output:
    Code:
    This operation could silently destroy your data.  Are you sure (y/N)? y
    Creating temporary file (60944218 KB).. 
    Syncing disks.. 
    Beginning TRIM operations..
    
    /dev/sda:
    trimming 121888440 sectors from 1994 ranges
    FAILED: Input/output error
    Removing temporary file..
    Syncing disks.. 
    Aborted.
    Anybody have any idea why that might be? Thank you

  9. #79
    Join Date
    Aug 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Will Karmic Koala automatically have trim in effect ...

    Quote Originally Posted by runesvend View Post
    I just ran the wiper script on my 80GB X-25M Postville as well. Results:

    Code:
    BEFORE:
    
    	Output is in Kbytes/sec
                                                                random  random
                  KB  reclen   write rewrite    read    reread    read   write
              262144       4   32925   40142    44519    43749   17835    8443
              262144      64   81012   82615   199672   199854  140188   20138
              262144     512   34904   83236   249276   248545  227652   39838
    
    AFTER:
    
    	Output is in Kbytes/sec
                                                                random  random
                  KB  reclen   write rewrite    read    reread    read   write
              262144       4   36490   40840    44292    44289   17956   37066
              262144      64   80661   81554   200097   198793  141341   80823
              262144     512   83239   59139   247916   248620  232914   80520
    It seems that only the write performance is affected. But as you can see this is affected a lot (at least the random writes)! For both 4KB and 64KB random writes, performance increased 4 times after a trim!

    Thanks for the instructions all!

    BTW, I had to patch the wiper-script because Intel's drives are apparently not able to handle more than 512 ranges in one TRIM command (http://www.ocztechnologyforum.com/fo...&postcount=112). I'm including the patch to wiper-2.5.
    How do I apply this patch to the script? I'm not exactly sure what to do and I think that your problem with the 512 ranges might be why my attempt to use wiper didn't work.

  10. #80
    Join Date
    Jun 2005
    Beans
    94

    Re: Will Karmic Koala automatically have trim in effect ...


Page 8 of 9 FirstFirst ... 6789 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
  •