Date: Sat, 21 Jan 2017 12:12:17 -0600 From: Karl Denninger <karl@denninger.net> To: freebsd-arm@freebsd.org Subject: Re: how to measure microsd wear Message-ID: <1d757b3b-67d2-b29b-ba01-89b462b0019f@denninger.net> In-Reply-To: <1485021485.34897.185.camel@freebsd.org> References: <16821b7c-e300-97fc-36e5-a508b22c21b8@zyxst.net> <1485021485.34897.185.camel@freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 1/21/2017 11:58, Ian Lepore wrote:
> On Sat, 2017-01-21 at 15:46 +0000, tech-lists wrote:
>> Hello list,
>>
>> How would one measure microsd wear? Is there a utility like
>> smartmontools (I think this only works for regular hard drives) but
>> for
>> microsd?
>>
>> many thanks,
> There is basically no way to see what's going on in the flash array of
> an sdcard. The microcontrollers in modern sd cards have complex wear-
> leveling algorithms which are completely transparent to the outside
> world.
This is true.
> On the plus side, most of what you see in the way of warnings and scare
> stories about wearing out sd cards is pure BS. I've got systems here
> that have been running for literally years on the same sdcard, and that
> card is being used for swap, and routine data storage like syslog (on
> an embedded system that logs status and progress pretty much
> continuously 24x7 for years). I've seen a few sd cards die over the
> years, but I've never been able to say it was because of how much was
> written to them (indeed, the dead ones I've got weren't in service long
> before they died).
>
This, however, is total nonsense.
I've had multiple SD card failures in build/test/high-volume write
environments on the PI2 series over the last year and change. There are
two general ways in which you will see failures:
1. The card write-locks itself. This is a defensive move by the
controller when it determines that it cannot reallocate a failed block
during a write (e.g. it's out of spares) OR it takes an unrecoverable
read error.
2. The card loses its allocation map (in which case you're completely
screwed; it will show up as zero size if you manage to get it mounted
somewhere.)
If you get a type 1 failure you can copy everything on the card off;
provided you do not attempt to write it, you will not get errors. Prior
to a fairly recent MFC if you had soft-updates on and took a Type 1
failure you'd get an instant panic; this has been (I believe entirely)
fixed.
In the event you get a Type 2 failure there's nothing you can do. In
both cases the card is junk if it happens.
--
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
[-- Attachment #2 --]
0 *H
010
`He 0 *H
\0X0@=0
*H
010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA0
161218194535Z
211217194535Z0W10 UUS10UFlorida10U
Cuda Systems LLC10Ukarl@denninger.net0"0
*H
0
͍fd`1ie6";fSz`5¹/?{=Ӵowjħ_fnӴMG\ҢҖ4ib}>@mJo&mM;
Q9U cj]p퐆W.2E=
^¢tzĄ'5i7_`~#dY
`]R]N%R}EXzqV@[oN T>5AwYˡA"\v&YG]+($p:M,T?=mJkMљg*ym
L!J[./d?W^LysD'1
+V'~{-SSX= q-f=%&V<m4BeSet|
l2m 6iO{wv
+aHXˈ5=~é*C!?uJr3tb'3`Oe)üLxt&3N526llU
.|Cp[l? 007++0)0'+0http://cudasystems.net:88880 U0 0 `HB0U0, `HB
OpenSSL Generated Certificate0U/Zi
0GhG0U#0$q}ݽʒm50U0karl@denninger.net0
*H
b%X%gwq
Ɂэr K[DMJ35W6
sz8d|qB2Cyw2PbV}
â[!W{HD7oD.TZ'w6~g( -,]R8P{*[f<1=7jGj9铚~3f2AʺN k~@vz^j(>ͺyh2y{/9}4.45#S|<fW!.,Bss*Q+h=}l@ "q "M&6J5*,G {hɫjbNgǠ.ЃXȶ4$O.5evHlZba!4eE!x|Za1nZ5TuPvW|#G+ DZpI7S'n0 haGa@vZ e|]Cu+))vRyY100010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA=0
`He M0 *H
1 *H
0 *H
1
170121181217Z0O *H
1B@Ĝ:=;:x7y۟7jJ
Hhw
tK@/?IγDDT"ɆA"20l *H
1_0]0 `He*0 `He0
*H
0*H
0
*H
@0+0
*H
(0 +710010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA=0*H
1010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA=0
*H
mȻ̓7[2Æֱl*cbtk</Q6:ܚ)g0GiHw
e)&#;ʍÏu쥫ֲ]J6`[.ΐKpvv~/ML,zAʷY)91`
vi4aZ/Kr'BRmR^ E9>=lZw?D>AԽ]q<٫R>nwa 7ڨ]ϘSG2,1L),˻NKᐕv<HLWm5$'1 `PW21dr1F2o3;bAJՊ8\aK/ Wn/wSz<Ʃ&Dկ
gϦ.VZRshs3 B&cz9+-*-Ca+@^{lm uܖ^G
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1d757b3b-67d2-b29b-ba01-89b462b0019f>
