Flash memory and fragmentation

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Uraniun235
Emperor's Hand
Posts: 13772
Joined: 2002-09-12 12:47am
Location: OREGON
Contact:

Flash memory and fragmentation

Post by Uraniun235 »

link
The received wisdom is that defragmenting solid state media such as CompactFlash and SD flash memory cards is unnecessary, at least that's what I'd always heard. With magnetic hard drives, fragmentation hurts performance because of the time it takes to physically move the drive heads around when a file is non-contiguous, but since flash memory does not have to move drive physical heads around, it makes sense that any performance loss due to fragmentation would be extremely minimal. However, it was claimed in a usenet post that in fact major benefit could be derived by defragmenting Pocket PC flash storage, but since the author of that controversial claim had not (yet) published any data to support it, I decided to investigate myself.
I'm not a big flash memory user myself, but I thought this was interesting.
User avatar
Stark
Emperor's Hand
Posts: 36169
Joined: 2002-07-03 09:56pm
Location: Brisbane, Australia

Post by Stark »

D13 touched on this, but flash has quite a limited lifespan when measured in total operations. Moving stuff around to improve access speeds seems odd when it's seriously cutting down the total writes you've got for actual use.
User avatar
Ace Pace
Hardware Lover
Posts: 8456
Joined: 2002-07-07 03:04am
Location: Wasting time instead of money
Contact:

Post by Ace Pace »

So what about the Windows Vista idea of using Flash chips as extra RAM? Would that be killing a flash drives lifespan?
Brotherhood of the Bear | HAB | Mess | SDnet archivist |
Ypoknons
Jedi Knight
Posts: 999
Joined: 2003-05-13 06:02am
Location: Manhattan (school year), Hong Kong (vacations)
Contact:

Post by Ypoknons »

And say, how are the problems associated with flash and repeated writing to one location solved in the new 32GB (and soon 64GB) flash hard drives? Or in the hybird drives that Vista systems support, for that matter.
User avatar
Netko
Jedi Council Member
Posts: 1925
Joined: 2005-03-30 06:14am

Post by Netko »

Newer drives aren't that much limited by the writes. Yes, the limit is still there, but its basicly a several years of intense usage non-stop. And all the applications (including Vista) are a bit smarter about it so its extended even more.
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Better flash drives (or filesystems) will also intentionally fragment in an attempt to keep the number of writes per sector down.
Post Reply