TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

SDcard wear leveling and translation layers (2014)

96 点作者 goodburb10 个月前

5 条评论

st_goliath10 个月前
At a conference, I once met somebody who said his team had the joy of dismantling broken SD cards and figuring out <i>why</i> they broke.<p>One of the anecdotes I distinctly recall was about a batch of cards that (for obvious cost saving reasons) used the actual data flash to store its own firmware as well.<p>IIRC due to a bug in the wear leveling accounting, once the card got sufficiently full, the wear leveling code ended up partially overwriting the firmware itself.
评论 #41098621 未加载
评论 #41101864 未加载
评论 #41098494 未加载
a-l-e-c10 个月前
Does anyone have access to the full specs of some SD cards? To get access to the full specifications it seems like you&#x27;re forced to join the SD Association: 2500$ p&#x2F;year
评论 #41101280 未加载
评论 #41101784 未加载
faragon10 个月前
Why there&#x27;s not generalized discard&#x2F;trim capabilities on USB&#x2F;SD devices? It should be &quot;easy&quot; to agree some standard on that.
评论 #41100759 未加载
评论 #41100970 未加载
michaelt10 个月前
<i>&gt; For example, lets consider that we wrote to the sector 1024 on the SDCARD, and this address got initially mapped to physical sector 1024 itself on flash. Later we overwrite the contents, but this time write cannot go to the same physical address because it needs to be erased before programmed again.</i><p>Maybe someone here will know the answer to something I&#x27;ve been wondering for a while: When appending to a file with writes smaller than a sector, does this remapping process trigger every time? Or is the controller smart enough that it can append without remapping, even though to overwrite would need remapping?<p>Obviously for an SD card used for saving photos or videos you could write a sector at a time - but for an SD card in a temperature logger or similar, your appends might be a lot smaller.
评论 #41098967 未加载
评论 #41104610 未加载
londons_explore10 个月前
I am really disappointed by SD card reliability. It seems even a little wear and the whole thing slows down massively and eventually throws read&#x2F;write errors.<p>I would like to see a card design which, instead of failing when there is flash wear, instead just gets smaller.<p>For compatibility with existing OS&#x27;s, that would take the form of a self-partition-resizing sd card. It would understand fat32, ext3, NTFS, afs etc, and when the card is next powered up the partition would be slightly smaller and files physically at the &#x27;end&#x27; would be moved inwards.<p>For newer OS&#x27;s, a new API could be introduced which tells the OS &#x27;this card is smaller now, please give me some blocks to mark as unavailable&#x27;.<p>The now-smaller card can use the removed-and-worn-out blocks to store error correction data for the remaining blocks. Ie. Additional error correction data on top of the data already stored within each page.<p>That effectively dramatically increases the lifespan of each page, at the cost of reduced IO performance.
评论 #41101814 未加载
评论 #41100317 未加载
评论 #41098861 未加载
评论 #41100835 未加载