Jump to content

Activate TRIM support on any SSD


scrax
 Share

52 posts in this topic

Recommended Posts

Installation went well. Xbench scores before and after;

 

BEFORE PATCH

 

System Info

Xbench Version 1.3

System Version 10.6.7 (10J869)

Physical RAM 4096 MB

Model iMac8,1

Drive Type OCZ-VERTEX2 3.5

Disk Test 351.36

Sequential 212.97

Uncached Write 274.16 168.33 MB/sec [4K blocks]

Uncached Write 291.89 165.15 MB/sec [256K blocks]

Uncached Read 108.13 31.64 MB/sec [4K blocks]

Uncached Read 406.43 204.27 MB/sec [256K blocks]

Random 1003.40

Uncached Write 1290.74 136.64 MB/sec [4K blocks]

Uncached Write 505.85 161.94 MB/sec [256K blocks]

Uncached Read 3328.23 23.58 MB/sec [4K blocks]

Uncached Read 1070.26 198.59 MB/sec [256K blocks]

 

AFTER PATCH

 

System Info

Xbench Version 1.3

System Version 10.6.7 (10J869)

Physical RAM 4096 MB

Model iMac8,1

Drive Type OCZ-VERTEX2 3.5

Disk Test 345.48

Sequential 207.31

Uncached Write 271.01 166.40 MB/sec [4K blocks]

Uncached Write 275.40 155.82 MB/sec [256K blocks]

Uncached Read 109.20 31.96 MB/sec [4K blocks]

Uncached Read 355.02 178.43 MB/sec [256K blocks]

Random 1035.90

Uncached Write 1376.90 145.76 MB/sec [4K blocks]

Uncached Write 525.05 168.09 MB/sec [256K blocks]

Uncached Read 3360.08 23.81 MB/sec [4K blocks]

Uncached Read 1071.93 198.91 MB/sec [256K blocks]

 

Strange....all strange

Please use diglloydTools for this bench... ;)

Link to comment
Share on other sites

Apparently works perfect here on both my hack in rig and my girlfriend's macbook pro mid 2010. Both have OCZ vertex2E 60gb (the last ones with 25nm architecture) and 10.6.7 snow leopard.

p.s. now that we have a patched kext it is necessary to install it in S/L/E or maybe in the future we can use it also in e/e??

As always.... thx for this hack!

regards, stefano

Link to comment
Share on other sites

There's no way to check on osx for now. I've read somewhere that it actually works and proved it by removing a file and then checked with linux if there was some trace left of the space where the file was and there wasn't (something like that :D)

 

BTW, the fix worked with my Corsair F60.

Link to comment
Share on other sites

Apparently works perfect here on both my hack in rig and my girlfriend's macbook pro mid 2010. Both have OCZ vertex2E 60gb (the last ones with 25nm architecture) and 10.6.7 snow leopard.

p.s. now that we have a patched kext it is necessary to install it in S/L/E or maybe in the future we can use it also in e/e??

As always.... thx for this hack!

regards, stefano

this is a patch that need to be done to an Apple kext, and is not a plist mod that can be achieved with a dummy kext, so yes it needs always to be in S/L/E/ because it need to overwrite the original one and because it has some dependencies that /extra can't solve.

 

BUT in future you can just use the terminal code to patch the "already in SLE" original one.

Link to comment
Share on other sites

this is a patch that need to be done to an Apple kext, and is not a plist mod that can be achieved with a dummy kext, so yes it needs always to be in S/L/E/ because it need to overwrite the original one and because it has some dependencies that /extra can't solve.

 

BUT in future you can just use the terminal code to patch the "already in SLE" original one.

 

Ok, tnx for the explanations!

ciao e buon proseguimento!

Link to comment
Share on other sites

  • 2 months later...

Intel SSD 320: (80Gb)

 

Works fine with H55M-UD2H, xBench gives 260 before and 300 after trim activation.

 

On G31M-ES2L however, the status does not show up at all, and after some research it looks like ich7 doesn't really support trim, or you need some special windows drivers. Too bad.

Link to comment
Share on other sites

..On G31M-ES2L however, the status does not show up at all, and after some research it looks like ich7 doesn't really support trim, or you need some special windows drivers. Too bad.

It would appear that generally ICH7s are OK, from this Intel link: Intel ICH Features

 

Anyway MBP2,2 with ICH7-M and Intel 320 is showing Yes for TRIM support here.

Link to comment
Share on other sites

I tried TRIM on Nvidia chipset (With the TRIM 1.1 patcher), but it does not work

 

Corsair CSSD-V32GB2:

 Capacity:	32.02 GB (32,017,047,552 bytes)
 Model:	Corsair CSSD-V32GB2					 
 Revision:	1.100000
 Serial Number:	xx
 Removable Media:	No
 Detachable Drive:	No
 BSD Name:	disk0
 Protocol:	ata
 Unit Number:	0
 Socket Type:	Serial-ATA
 Partition Map Type:	GPT (GUID Partition Table)
 S.M.A.R.T. status:	Verified
 Volumes:
disk0s1:
 Capacity:	209.7 MB (209,715,200 b

 

it does not detect solid state

 

I am using:

AppleNForceATA.imk64bit

 

in Lion

Link to comment
Share on other sites

  • 2 weeks later...

Ran the terminal command on 10.7 (11a511), and it appears to have activated Trim for my G.Skills Falcon2 and OCZ Agility3 disks. A bit early yet to report beyond that. Thanks for providing it.

Link to comment
Share on other sites

  • 2 weeks later...
Intel SSD 320: (80Gb)

 

Works fine with H55M-UD2H, xBench gives 260 before and 300 after trim activation.

 

On G31M-ES2L however, the status does not show up at all, and after some research it looks like ich7 doesn't really support trim, or you need some special windows drivers. Too bad.

Damn, I had no idea GA-G31M-ES2L didn't support SSD? I just bought a Intel X25-M G2 disk and when checking disk info the Protocol says ATA and not SSD as others, and running Trim Enabler doesn't do any difference, Trim doesn't even show up as "No".

 

Any more experience to share?

Thanks!

Link to comment
Share on other sites

  • 4 weeks later...

just tried it on my hack running 10.6.7

i get this

SSD G2 series 64GB:

 Capacity:	60.02 GB (60,022,480,896 bytes)
 Model:	SSD G2 series 64GB					  
 Revision:	3.4.3   
 Serial Number:	10000000000000000680
 Native Command Queuing:	Yes
 Queue Depth:	32
 Removable Media:	Yes
 Detachable Drive:	No
 BSD Name:	disk1
 Medium Type:	Solid State
 TRIM Support:	Yes
 Partition Map Type:	GPT (GUID Partition Table)
 S.M.A.R.T. status:	Verified
 Volumes:
 Capacity:	209.7 MB (209,715,200 bytes)
 Writable:	Yes
 BSD Name:	disk1s1
Macintosh SSD:
 Capacity:	59.68 GB (59,678,507,008 bytes)
 Available:	51.61 GB (51,611,791,360 bytes)
 Writable:	Yes
 File System:	Journaled HFS+
 BSD Name:	disk1s2
 Mount Point:	/

 

I see Trim Support: Yes. Does it means i'm good to go?

 

Thanks

Link to comment
Share on other sites

Yep it's good to go. You'll most likely see TRIM support unless your drive somehow doesn't support it, your mobo doesn't support SSD's or if you RAID em.

 

sweet

thank you Sir :)

 

10.6.8 keeps hanging on my SSD, with or without the TRIM enabler

guess i'll stay on 10.6.7 in the meantime.

 

Question; does this tool work for Lion, or is it not needed over there?

 

thanks

Link to comment
Share on other sites

  • 2 months later...
  • 2 months later...

konsole says TRIM ON,

trim says NOT WORKING,

sys profiler says TRIM NO

 

version 2 beta 4.0 on samsung 830 64GB, rebooted,

 

so i did it the manual method, edited the kext in hexeditor

(APPLE SSD replaced with the name of my drive (first 9 digits))

and it works.

Link to comment
Share on other sites

  • 7 months later...

Ok in ML 10.8.0

 

sudo perl -pi -e 's|\x41\x50\x50\x4C\x45\x20\x53\x53\x44|\x00\x00\x00\x00\x00\x00\x00\x00\x00|g' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage
Link to comment
Share on other sites

 Share

×
×
  • Create New...