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

Thread: Installing hdparm from source / Having issues with DiskTRIM

  1. #1
    Join Date
    Mar 2007
    Location
    Newcastle, UK
    Beans
    103

    Installing hdparm from source / Having issues with DiskTRIM

    Hey guys,

    I know this isn't exactly a DiskTRIM forum but the project appears to be defunct. Hopefully someone here is using it, or have you found another way to trim your OCZ SSD?

    I have a Vertex Turbo which has gone from 240MB/s when I just got it to under 70 now. It's an ext 4 system and I'm running a compatible kernel (2.6.32.22).

    I simply cannot get the newer version of hdparm to install. I got the .tar for 9.28 and I believe it is installed, it appears in /home/Jack/hdparm-9.28. Is that the correct place? There is no 'hdparm' folder. Synaptic reckons I have 9.15 or something installed still.

    Either way, when I engage DiskTRIM it doesn't do anything. Has anyone got an easy way of making sure I have the right hdparm and then getting trim to work on my SSD? This system is getting quite slow now and it's starting to bug me,

    Thanks for anything,
    Jack

  2. #2
    Join Date
    Jun 2009
    Location
    Raleigh, NC
    Beans
    598
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Installing hdparm from source / Having issues with DiskTRIM

    Just posted instruction on another site...

    http://forums.clubrsx.com/showthread...9#post33429489


    I was struggling with the same thing about 2 minutes ago

    http://ubuntuforums.org/showthread.php?t=1488123

    MY SSD is a Mushkin MKNSSDCL60GB
    before:



    after:
    Last edited by 98cwitr; May 23rd, 2010 at 04:51 AM.
    Ubuntu 16.04 LTS / E6750 @ 3.52GHz / Zalman 9500 / GIGABYTE GA-P35-DS3L / Mushkin Silver/Blackline 4GB DDR2800 / MSI 8600GT GPU / OCZ 120GB SSD / Antec P180B
    Ubuntu User 31267

  3. #3
    Join Date
    Mar 2007
    Location
    Newcastle, UK
    Beans
    103

    Re: Installing hdparm from source / Having issues with DiskTRIM

    You sir, are a helpful genius!

    Now that it's done (and it's working) I am only getting read speeds of ~100MB/sec according to hdparm.

    I know fine well my disk is capable of 240-270MB/sec as I benched it when I first got it, any ideas why this is? I have tried running TRIM several times now.


    Edit: You forgot to add the '--commit' option in the last command.

  4. #4
    Join Date
    Jun 2009
    Location
    Raleigh, NC
    Beans
    598
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Installing hdparm from source / Having issues with DiskTRIM

    Quote Originally Posted by ShakeyJake View Post
    You sir, are a helpful genius!

    Now that it's done (and it's working) I am only getting read speeds of ~100MB/sec according to hdparm.

    I know fine well my disk is capable of 240-270MB/sec as I benched it when I first got it, any ideas why this is? I have tried running TRIM several times now.


    Edit: You forgot to add the '--commit' option in the last command.
    what does the --commit command do? I didn't run that

    Well the only thing I could think of is that the MLC is degrading...but that would be a really really fast degrade time even for an MLC drive

    read this: http://www.anandtech.com/print/2738
    Ubuntu 16.04 LTS / E6750 @ 3.52GHz / Zalman 9500 / GIGABYTE GA-P35-DS3L / Mushkin Silver/Blackline 4GB DDR2800 / MSI 8600GT GPU / OCZ 120GB SSD / Antec P180B
    Ubuntu User 31267

  5. #5
    Join Date
    Jul 2005
    Beans
    366

    Re: Installing hdparm from source / Having issues with DiskTRIM

    Quote Originally Posted by 98cwitr View Post
    what does the --commit command do? I didn't run that

    Well the only thing I could think of is that the MLC is degrading...but that would be a really really fast degrade time even for an MLC drive

    read this: http://www.anandtech.com/print/2738

    It doesn't work in Intel X25-M. Hdparm 9.28 / wiper.sh as well as wiper-intel.sh still give the FAILED INPUT/OUTPUT errors.

  6. #6
    Join Date
    Jun 2009
    Location
    Raleigh, NC
    Beans
    598
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Installing hdparm from source / Having issues with DiskTRIM

    what's the error(s) specifically?

    there's a patch for Intel SSDs, read this http://sourceforge.net/projects/hdpa.../topic/3486385
    Last edited by 98cwitr; May 25th, 2010 at 01:21 PM.
    Ubuntu 16.04 LTS / E6750 @ 3.52GHz / Zalman 9500 / GIGABYTE GA-P35-DS3L / Mushkin Silver/Blackline 4GB DDR2800 / MSI 8600GT GPU / OCZ 120GB SSD / Antec P180B
    Ubuntu User 31267

  7. #7
    Join Date
    Jul 2005
    Beans
    366

    Re: Installing hdparm from source / Having issues with DiskTRIM

    Quote Originally Posted by 98cwitr View Post
    what's the error(s) specifically?

    there's a patch for Intel SSDs, read this http://sourceforge.net/projects/hdpa.../topic/3486385
    Thanks for the link. it appears the patch no longer works. Here's what I get:

    wiper-intel2.sh: Linux SATA SSD TRIM utility, version 2.5, by Mark Lord.
    Preparing for online TRIM of free space on /dev/sdb2 (ext4 mounted read-write at /).

    This operation could silently destroy your data. Are you sure (y/N)? y
    Creating temporary file (56393755 KB)..
    Syncing disks..
    Beginning TRIM operations..

    /dev/sdb:
    trimming 30818304 sectors from 512 ranges
    FAILED: Input/output error

    /dev/sdb:
    trimming 30965759 sectors from 512 ranges
    FAILED: Input/output error

    /dev/sdb:
    trimming 30720000 sectors from 512 ranges
    FAILED: Input/output error

    /dev/sdb:
    trimming 20283449 sectors from 338 ranges
    FAILED: Input/output error
    Removing temporary file..
    Syncing disks..
    Done.

  8. #8
    Join Date
    Jun 2009
    Location
    Raleigh, NC
    Beans
    598
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Installing hdparm from source / Having issues with DiskTRIM

    i get the same thing if I use the --commit option...


    brett@brett-desktop:~/hdparm-9.28/wiper$ sudo bash wiper.sh --commit /dev/sda1

    wiper.sh: Linux SATA SSD TRIM utility, version 2.6, by Mark Lord.
    Preparing for online TRIM of free space on /dev/sda1 (ext4 mounted read-write at /).

    This operation could silently destroy your data. Are you sure (y/N)? y
    Creating temporary file (40160150 KB)..
    Syncing disks..
    Beginning TRIM operations..

    /dev/sda:
    trimming 80320304 sectors from 1351 ranges
    FAILED: Input/output error
    Removing temporary file..
    Syncing disks..
    Aborted.


    I think the drive cant be mounted...I'm going to try it with the live cd...brb (hopefully).


    EDIT: Nope, in Live CD right now and still errors off with the drive unmounted...damnit. Emailed Mark Lord, will reply back when he does or I find something else out.

    EDIT2: Upgrading kernel to 2.6.34...brb


    EDIT3:....and had to reload my machine after plymouth took a crap. Now I'm getting more errors on the SSD and 10MB/s less than the initial bench.
    Last edited by 98cwitr; May 26th, 2010 at 01:04 PM.
    Ubuntu 16.04 LTS / E6750 @ 3.52GHz / Zalman 9500 / GIGABYTE GA-P35-DS3L / Mushkin Silver/Blackline 4GB DDR2800 / MSI 8600GT GPU / OCZ 120GB SSD / Antec P180B
    Ubuntu User 31267

  9. #9
    Join Date
    Jun 2009
    Location
    Raleigh, NC
    Beans
    598
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Installing hdparm from source / Having issues with DiskTRIM

    bump...trying to keep this going. Seems a lot of people are having this issue.
    Ubuntu 16.04 LTS / E6750 @ 3.52GHz / Zalman 9500 / GIGABYTE GA-P35-DS3L / Mushkin Silver/Blackline 4GB DDR2800 / MSI 8600GT GPU / OCZ 120GB SSD / Antec P180B
    Ubuntu User 31267

  10. #10
    Join Date
    Mar 2006
    Beans
    81

    Re: Installing hdparm from source / Having issues with DiskTRIM

    @98cwitr
    it seems you have a sandforce ssd, then use this patched wiper
    http://www.ocztechnologyforum.com/fo...l=1#post516945

    eg.
    ./wiper-hw.sh --commit --sandforce /dev/sda1

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
  •