Defragment Nexus 5 Internal Storage?

mrsmumbles

Well-known member
Oct 5, 2013
4,281
6
38
I'm superstitious about the health of the internal storage after writing files to it, deleting files, etc.

On Windows, the hard disk gets fragmented and has to be regularly defragged. Is it similar with Android? Is there anyway to refresh the internal memory without wiping it entirely? Thanks.

Sent from my Nexus 5 using Tapatalk 2
 
I remember hearing that defragging flash memory is bad for it. The reason to defrag an hdd is due to the read write head to compartmentalize and localize data in order to access it quicker. Flash has no moving parts and the quick Google search I did seemed to intimate that writing to flash memory degrades it ever so slightly and as defragging performs a great amount of write operations this would lead to quicker degradation of the storage.

Sent from my Nexus 7 (2013) using AC Forums mobile app.
 
Oh thanks, I didn't know this (obviously). So, degrades slightly, what would that mean in terms of repeated adding and deleting files? How long can I expect the phone to stay snappy and spry? Thanks. And should I just avoid writing, deleting, and rewriting files, over and over?

Sent from my Nexus 5 using Tapatalk 2
 
1. The storage in the phone is solid state: there's no point to defragging it (the access time is independent of location)
2. Pointlessly defragging will just degrade the memory for no gain.
3. The storage will last far longer than you'll own the phone. Just use it and forget about the innards.
 
1. The storage in the phone is solid state: there's no point to defragging it (the access time is independent of location)
2. Pointlessly defragging will just degrade the memory for no gain.
3. The storage will last far longer than you'll own the phone. Just use it and forget about the innards.

Thank you! That's what I hope to hear.

Sent from my Nexus 5 using Tapatalk 2
 
I'm superstitious about the health of the internal storage after writing files to it, deleting files, etc.

On Windows, the hard disk gets fragmented and has to be regularly defragged. Is it similar with Android? Is there anyway to refresh the internal memory without wiping it entirely? Thanks.

Sent from my Nexus 5 using Tapatalk 2

I believe this was addressed in android 4.3 with addition of TRIM.

Google Quietly Added Built-In TRIM Support In Android 4.3 – Should Fix Most Storage-Related Device Slowdowns
 
What made Android phones slow over time was the accumulation of junk that wasn't deleted properly. TRIM takes care of this and was recently added to Android. Defragging a computer means you are reordering files for a hard drive to access faster. As flash memory doesn't have a spinning platter and has basically zero seek times this is unnecessary. As you access flash based memory you are wearing it down over time - there is limited read/write cycles which is determined by several complex factors. Defragging spikes the write and read cycles which increases overall wear of the module. As its pointless it's probably not a good idea to defrag :-).

Good articles on TRIM:
http://www.tomshardware.com/reviews/ssd-trim-firmware,2800.html
http://www.tomshardware.com/reviews/octane-sata-indilinx-benchmark-performance,3081-8.html

Good article on defragmentation on flash based storage:
http://www.pcworld.com/article/2047513/fragging-wonderful-the-truth-about-defragging-your-ssd.html

Edit - apparently I was beat to the punch. Guess I reiterated quite well :).

Sent from my Nexus 5 using Tapatalk
 
What made Android phones slow over time was the accumulation of junk that wasn't deleted properly. TRIM takes care of this and was recently added to Android. Defragging a computer means you are reordering files for a hard drive to access faster. As flash memory doesn't have a spinning platter and has basically zero seek times this is unnecessary. As you access flash based memory you are wearing it down over time - there is limited read/write cycles which is determined by several complex factors. Defragging spikes the write and read cycles which increases overall wear of the module. As its pointless it's probably not a good idea to defrag :-).

Good articles on TRIM:
http://www.tomshardware.com/reviews/ssd-trim-firmware,2800.html
http://www.tomshardware.com/reviews/octane-sata-indilinx-benchmark-performance,3081-8.html

Good article on defragmentation on flash based storage:
http://www.pcworld.com/article/2047513/fragging-wonderful-the-truth-about-defragging-your-ssd.html

Edit - apparently I was beat to the punch. Guess I reiterated quite well :).

Sent from my Nexus 5 using Tapatalk

Thank you, and yes, you did! :D:thumbup::beer:

Sent from my Nexus 5 via Tapatalk 2
Try The Thank You Button, Thank You!
 
Seems like you have already found your answer. Thanks to everyone who replied with such helpful information.

The only time I have ever had an issue with device memory was with my HTC Hero...and it was my fault. lol Repartitioned the memory to create more internal storage and I suspect that led to it's eventual brick state.
 
Seems like you have already found your answer. Thanks to everyone who replied with such helpful information.

The only time I have ever had an issue with device memory was with my HTC Hero...and it was my fault. lol Repartitioned the memory to create more internal storage and I suspect that led to it's eventual brick state.

Did you write and rewrite to system memory constantly? Files, I mean.

Sent from my Nexus 5 using Tapatalk 2
 
No, it was the actual repartitioning of the internal memory. It was a mod/hack.

OK. I won't be rooting and ROMing on this (at least not until it and I are older) but I'm already moving a lot of files around and that's why I worry. No sign of worse performance yet though, knock wood.

Sent from my Nexus 5 using Tapatalk 2
 
OK. I won't be rooting and ROMing on this (at least not until it and I are older) but I'm already moving a lot of files around and that's why I worry. No sign of worse performance yet though, knock wood.

Sent from my Nexus 5 using Tapatalk 2

Yeah, you'll need not to worry. Though, still practice regular backups or syncing to make sure your files are saved elsewhere just in case something happens.

Sent from my Nexus 5 using AC Forums mobile app
 
OK. I won't be rooting and ROMing on this (at least not until it and I are older) but I'm already moving a lot of files around and that's why I worry. No sign of worse performance yet though, knock wood.

Sent from my Nexus 5 using Tapatalk 2

The phone's memory (as long as there isn't a manufacturing defect) will last far longer than anything else on the device no matter how heavily you move things around. Quality flash memory should last at least 4 - 5 of seriously heavy usage. It's much more reliable and durable than its alternatives (though some would be to differ, they would be wrong as they have had bad luck - manufacturing defects would be the only cause of premature failure) I bet you will have moved on to at least one other device by that time.

I would be much more concerned over the battery's lifespan than your internal memory. And even that shouldn't be a concern for a while.

Sent from my Nexus 5 using Tapatalk
 
Last edited:
Yeah, you'll need not to worry. Though, still practice regular backups or syncing to make sure your files are saved elsewhere just in case something happens.

Sent from my Nexus 5 using AC Forums mobile app

Words to live by, thanks.

Sent from my Nexus 5 using Tapatalk 2
 

Latest posts

Trending Posts

Forum statistics

Threads
956,367
Messages
6,967,835
Members
3,163,520
Latest member
kiki2025