内蔵メモリのチェック方法

HT-03A関連Blogを漁っていた時に見つけたのでメモメモ。

あなたの内蔵メモリー、お元気ですか?

$ cat /proc/yaffs

Multi-version YAFFS built:Nov  6 2010 14:21:15


Device 0 "system"
startBlock......... 0
endBlock........... 719
totalBytesPerChunk. 2048
useNANDECC......... 1
noTagsECC.......... 1
isYaffs2........... 1
inbandTags......... 0
emptyLostAndFound.. 0
disableLazyLoad.... 0
refreshPeriod...... 500
nShortOpCaches..... 10
nReservedBlocks.... 5
alwaysCheckErased.. 0

nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 26
blocksInCheckpoint. 2

nTnodes............ 3671
nObjects........... 679
nFreeChunks........ 1691

nPageWrites........ 0
nPageReads......... 52744
nBlockErasures..... 0
nGCCopies.......... 0
allGCs............. 0
passiveGCs......... 0
oldestDirtyGCs..... 0
nGCBlocks.......... 0
backgroundGCs...... 0
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
refreshCount....... 0
nBackgroudDeletions 0

Device 2 "userdata"
startBlock......... 0
endBlock........... 2365
totalBytesPerChunk. 2048
useNANDECC......... 1
noTagsECC.......... 1
isYaffs2........... 1
inbandTags......... 0
emptyLostAndFound.. 0
disableLazyLoad.... 0
refreshPeriod...... 500
nShortOpCaches..... 10
nReservedBlocks.... 5
alwaysCheckErased.. 0

nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 900
blocksInCheckpoint. 0

nTnodes............ 4284
nObjects........... 1765
nFreeChunks........ 107239

nPageWrites........ 10729
nPageReads......... 30423
nBlockErasures..... 159
nGCCopies.......... 591
allGCs............. 131
passiveGCs......... 131
oldestDirtyGCs..... 15
nGCBlocks.......... 24
backgroundGCs...... 24
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 2346
nDeletedFiles...... 0
nUnlinkedFiles..... 23804
refreshCount....... 1
nBackgroudDeletions 0

Device 4 "cache"
startBlock......... 0
endBlock........... 639
totalBytesPerChunk. 2048
useNANDECC......... 1
noTagsECC.......... 1
isYaffs2........... 1
inbandTags......... 0
emptyLostAndFound.. 0
disableLazyLoad.... 0
refreshPeriod...... 500
nShortOpCaches..... 10
nReservedBlocks.... 5
alwaysCheckErased.. 0

nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 597
blocksInCheckpoint. 1

nTnodes............ 185
nObjects........... 8
nFreeChunks........ 38314

nPageWrites........ 206
nPageReads......... 206
nBlockErasures..... 4
nGCCopies.......... 177
allGCs............. 36
passiveGCs......... 36
oldestDirtyGCs..... 2
nGCBlocks.......... 2
backgroundGCs...... 2
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 22
refreshCount....... 1
nBackgroudDeletions 0

このうち、「eccUnfixed」の項目が0でなければ壊れたブロックが放置されているということらしい。