Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.raspberry-pi > #10460
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Newsgroups | comp.sys.raspberry-pi |
| Subject | Re: When does a program write to the SD card |
| Date | 2016-01-28 21:01 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <n8dvj0$sp7$1@dont-email.me> (permalink) |
| References | <n8d407$be2$2@dont-email.me> <1453988352@f31.n310.z2.fidonet.org> |
On Thu, 28 Jan 2016 14:32:06 +1200, Richard Menedetter wrote: > That is the trivial fault. > The much bigger one is the number of writes. > Given the sort of data volumes I write to a PNA running LK8000 and used routinely for glider navigation: - upgrade software twice a year ( 5 MB) - update airspace: 200k x 4/year ( 1 MB) - update landouts once a year (50 KB) - record flight logs ( 2 MB) IOW, about 8MB of writes in total. If we assume a block size of 512B, thats 16K writes a year to a 2MB card which has 4K blocks of that size, thats an average of 4 writes a year per block if we assume that the wear levelling mechanism works as advertised. Most flash cards are claimed to be good for 100K writes before failure, so clearly the card is more likely to be lost, trodden on or have its contacts worn out long before the recording material starts to fail from excessive use. > Believe me there IS a good reason to fear for the health of your SD card > when used as the root FS for a linux system. > OK, so how many cards have you worn out so far? Over what time period? Numbers or it hasn't happened. Raspbian, as normally configured, seems to do much less writing than vanilla Debian or Fedora running on a PC. Given that the underlying SD block size is around 4KB (so you'll commonly find 8 ext2 blocks on an SD card block) very often you'll only get one SD card write when a file is updated, simply because user-generated files are relatively small under Linux. > Random writes can be a big problem. > SD cards are not designed to for such workloads. > Depends on the card. If you use one designed for video cameras (class 10?) which is designed for sequential access, that might be a problem, but performance will be rubbish, but hopefully you'd use a class 4 or 6 card, which seem to have better random access performance, in an RPi. I'll agree that cards are seldom removed from an RPi, but people are very careless about doing orderly power-downs and this applies to RPi users too. I remember discussing the need for care when shutting down a PDA and immediately we finished, one of the pilots pulled the card out of his Binatone satnav without turning it off. He'd been tweaking his LK8000 configuration and there was evidently still some unwritten data, because, when the card was put into a PC it was unreadable and had to be reformatted and, no, it was readable before this or the PDA wouldn't have run LK8000 off it. He swore blind that he'd done a proper shut-down before pulling the card, but as it happened, I was looking at him at the time. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
Back to comp.sys.raspberry-pi | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
When does a program write to the SD card Jon - 2016-01-27 15:01 -0500
Re: When does a program write to the SD card druck <news@druck.org.uk> - 2016-01-27 20:24 +0000
Re: When does a program write to the SD card Jon - 2016-01-28 10:37 -0500
Re: When does a program write to the SD card Anssi Saari <as@sci.fi> - 2016-01-28 10:23 +0200
Re: When does a program write to the SD card Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-28 13:10 +0000
When does a program write to the SD card removemefirst.Richard.Menedetter@f31.n310.z2.fidonet.org (Richard Menedetter) - 2016-01-28 14:32 +1200
Re: When does a program write to the SD card Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-28 21:01 +0000
When does a program write to the SD card removemefirst.Richard.Menedetter@f31.n310.z2.fidonet.org (Richard Menedetter) - 2016-01-29 01:40 +1200
Re: When does a program write to the SD card The Natural Philosopher <tnp@invalid.invalid> - 2016-01-29 09:45 +0000
When does a program write to the SD card removemefirst.Richard.Menedetter@f31.n310.z2.fidonet.org (Richard Menedetter) - 2016-01-29 12:17 +1200
Re: When does a program write to the SD card The Natural Philosopher <tnp@invalid.invalid> - 2016-01-29 12:22 +0000
Re: When does a program write to the SD card Dave Higton <dave@davehigton.me.uk> - 2016-01-29 14:52 +0000
Re: When does a program write to the SD card The Natural Philosopher <tnp@invalid.invalid> - 2016-01-29 15:34 +0000
Re: When does a program write to the SD card druck <news@druck.org.uk> - 2016-02-04 23:52 +0000
Re: When does a program write to the SD card The Natural Philosopher <tnp@invalid.invalid> - 2016-02-05 00:37 +0000
When does a program write to the SD card NOSPAM.Richard.Menedetter@f31.n310.z2.binkp.net (Richard Menedetter) - 2016-02-02 18:34 +1200
Re: When does a program write to the SD card The Natural Philosopher <tnp@invalid.invalid> - 2016-02-02 18:00 +0000
Re: When does a program write to the SD card Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-29 11:41 +0000
When does a program write to the SD card NOSPAM.Richard.Menedetter@f31.n310.z2.binkp.net (Richard Menedetter) - 2016-02-02 18:29 +1200
Re: When does a program write to the SD card "Dave Liquorice" <allsortsnotthisbit@howhill.com> - 2016-01-31 10:42 +0000
Re: When does a program write to the SD card The Natural Philosopher <tnp@invalid.invalid> - 2016-01-31 11:04 +0000
Re: When does a program write to the SD card Ronald Pfeiffer <ronald.pfeiffer@gmx.de> - 2016-02-05 02:22 +0100
Re: When does a program write to the SD card druck <news@druck.org.uk> - 2016-02-07 12:29 +0000
Re: When does a program write to the SD card Rob Morley <nospam@ntlworld.com> - 2016-02-07 13:59 +0000
Re: When does a program write to the SD card The Natural Philosopher <tnp@invalid.invalid> - 2016-02-07 14:10 +0000
Re: When does a program write to the SD card druck <news@druck.org.uk> - 2016-02-07 16:00 +0000
csiph-web