TRIM support in Android 4.3 enhances speed, eliminates flash performance degradation

By on July 30, 2013, 3:00 PM
android, nexus, performance, trim, flash memory, lag, android 4.3, garbage collection

Google has had a lot of success with their Nexus line as many have shown great interest in using a pure version of Android. Even without all of the clunky overlays, however, Nexus devices have fallen victim to performance degradation over time. Sure, this can be remedied with a full system flash but that’s not exactly the best answer to the problem.

As it turns out, Nexus devices (and probably many others) suffer from the same issue that plagued early solid state drives: garbage collection. Flash memory works differently than traditional spinning disc storage in that when you delete a file, the space is freed up as far as the user is concerned. The internal workings of the I/O storage system, however, still treat that section of memory as if it contains data.

Rinse and repeat this cycle over the course of several months and the storage system takes a serious performance hit as it is still tracking “empty” blocks as if they have data associated with it.

That’s where TRIM support comes in. TRIM acts as the middleman between empty blocks of storage and the controller in charge of everything. It tags these empty blocks as ready for garbage collection / recycling at which time the controller knows it will no longer need to track those blocks. As you can imagine, not having to track empty blocks keeps the storage system running at peak performance.

Having said that, Android 4.3 will bring TRIM support to Nexus devices (and others as the software update trickles down). Fortunately, users won’t need to perform any special tasks as TRIM will work automatically in the background, notifying the storage controller about garbage collection / recycling every 24 hours or so depending on device usage.




User Comments: 6

Got something to say? Post a comment
tipstir tipstir, TS Ambassador, said:

Trim sounds interesting if it works as they say would improve things on the tablet and smart phone side. There is full desktop touch screen versions of Android again cost of those are expensive.

Guest said:

4.3 has slowed my nexus 7 way down as it has others.

JC713 JC713 said:

4.3 has slowed my nexus 7 way down as it has others.

It is the opposite for others.

ET3D, TechSpot Paladin, said:

This discussion made me check for the update on my Nexus 7, so thanks for that. I'm installing now.

(Of course I imagine that the update will break a few apps. Happened each time I updated the OS version.)

Arris Arris said:

Running fine on my Nexus 4 so far. No apps have malfunctioned.

Guest said:

Fixed my Nexus 7 lag.

Load all comments...

Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...
Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.