Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.raspberry-pi > #10444 > unrolled thread
| Started by | Jon |
|---|---|
| First post | 2016-01-27 15:01 -0500 |
| Last post | 2016-02-07 16:00 +0000 |
| Articles | 6 on this page of 26 — 11 participants |
Back to article view | Back to comp.sys.raspberry-pi
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
Page 2 of 2 — ← Prev page 1 [2]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2016-01-31 11:04 +0000 |
| Message-ID | <n8kpn7$eog$2@news.albasani.net> |
| In reply to | #10483 |
On 31/01/16 10:42, Dave Liquorice wrote: > On Thu, 28 Jan 2016 21:01:20 -0000 (UTC), Martin Gregorie wrote: > >> IOW, about 8MB of writes in total. > > Chicken feed. > >> OK, so how many cards have you worn out so far? Over what time period? >> Numbers or it hasn't happened. > > Used to have a Pi running as a web cam and generating a HD resolution > time lapse movie from the still images grabbed every 30 seconds. > There would be the orginal image capture, add a caption (date/time), > save to sequentially numbered file, delete those files older than 24 > hours for the still webcam side. The time lapse run at 0000, 0600, > 1200 and 1800 would create a list of the sequential files to use, > create the .mp4, the one at 0000 being kept, the others > "overwritten". > > I can't seem to mount the SD card that has gone into "safe" mode or > the USB memory stick that has also decided it doesn't want to play > anymore. But lets assume each still image was 1 MB (they where bigger > maybe closer to 2 MB), anyway, that's 1 MB of writes every 30 seconds > 24/7 (24*60*60)/30 = 2.8 GB plus plus 2MB every 30 seconds if it's > not dark (ave 12 hours/day not dark) another 2.8 GB of writes. I > acn't remember the size of the .MP4's but an 8GB SD or USB could hold > about 30 days of time lapse and the still image "buffer". 250 MB each > maybe. > > So each day there would be 2.8 + 2.8 + 1GB = 6.6 GB of writes. The > first 8GB SD card (Sandisk class 4, with OS and datastore) lasted > about 6 weeks. I then shifted the datastore to an 8 GB USB stick > (Lexar), that stick lasted about 8 weeks... I've taken the camera > down. B-) > So that's pretty predictable then :-) -- Outside of a dog, a book is a man's best friend. Inside of a dog it's too dark to read. Groucho Marx
[toc] | [prev] | [next] | [standalone]
| From | Ronald Pfeiffer <ronald.pfeiffer@gmx.de> |
|---|---|
| Date | 2016-02-05 02:22 +0100 |
| Message-ID | <n90tg6$f53$1@tota-refugium.de> |
| In reply to | #10483 |
Hi, On 31.01.2016 11:42, Dave Liquorice wrote: ... > Chicken feed. :-) ... > So each day there would be 2.8 + 2.8 + 1GB = 6.6 GB of writes. The > first 8GB SD card (Sandisk class 4, with OS and datastore) lasted > about 6 weeks. I then shifted the datastore to an 8 GB USB stick > (Lexar), that stick lasted about 8 weeks... I've taken the camera > down. B-) Mine is still working. It seems a little bit strange to me that SD cards are dying after such a short usage. Mine (Raspberry B) does exactly the same job: one picture every 30s (each approximately 2.9 MB). Plus: for each picture taken it calls 'convert' to downscale the image and stores the scaled image on the SD as well. I just took a look at the shell script that runs the above mentioned actions triggered by a cron job. I installed it on 18 October 2014 (sic!) Since then this routine is running day and night. The (full size) SD card I use is a 32 GB class 10 (200x) Lexar. I dont think the SD card's brand makes the difference. I own another Raspi running about the same time housing a high frequented JBoss server which accesses a MySQL database running on the same machine. Not at all optimized to do less writing on the SD card. This one uses a micro SD card from SanDisk - no problems. My experience: SD cards are not so bad for this purpose. Regards Ronald
[toc] | [prev] | [next] | [standalone]
| From | druck <news@druck.org.uk> |
|---|---|
| Date | 2016-02-07 12:29 +0000 |
| Message-ID | <n97d5j$284$1@dont-email.me> |
| In reply to | #10545 |
On 05/02/2016 01:22, Ronald Pfeiffer wrote: > It seems a little bit strange to me that SD cards are dying > after such a short usage. > > Mine (Raspberry B) does exactly the same job: > one picture every 30s (each approximately 2.9 MB). > Plus: for each picture taken it calls 'convert' to downscale > the image and stores the scaled image on the SD as well. That may only seem to be two write operations, but depending on how the software works, it may involve a few dozen writes to the disc meta data, which is the same part of the disc each time. ---druck
[toc] | [prev] | [next] | [standalone]
| From | Rob Morley <nospam@ntlworld.com> |
|---|---|
| Date | 2016-02-07 13:59 +0000 |
| Message-ID | <20160207135926.099ab885@ntlworld.com> |
| In reply to | #10554 |
On Sun, 7 Feb 2016 12:29:18 +0000 druck <news@druck.org.uk> wrote: > That may only seem to be two write operations, but depending on how > the software works, it may involve a few dozen writes to the disc > meta data, which is the same part of the disc each time. > Shouldn't the wear levelling algorithms move it around occasionally?
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2016-02-07 14:10 +0000 |
| Message-ID | <n97j9g$9np$1@news.albasani.net> |
| In reply to | #10555 |
On 07/02/16 13:59, Rob Morley wrote: > On Sun, 7 Feb 2016 12:29:18 +0000 > druck <news@druck.org.uk> wrote: > >> That may only seem to be two write operations, but depending on how >> the software works, it may involve a few dozen writes to the disc >> meta data, which is the same part of the disc each time. >> > Shouldn't the wear levelling algorithms move it around occasionally? > I was talking about this last night to an old friend from college who actually design(a/ed) the memory chips for these things. There is of course a huge amount of subsurface error correction and 'bad block' switch-out going on, as well as caching with maybe DRAM on the SSDs at least to minimise the need to access the flash memory too often. It's a steady development cycle with better manufacture, better design, better algorithms and so on all playing a part, to hide the fact that a given memory cell only has a certain number of writes before it dies. And the pace of development is fearsomely commercial he said. its weeks, not months. So what was true 6 months ago my be less true today. What this means is that the question "When does a program write to the SD card" does not actually equate to "When does a program write to the SD card memory" And its hard to say how many low level writes it actually results in. -- Canada is all right really, though not for the whole weekend. "Saki"
[toc] | [prev] | [next] | [standalone]
| From | druck <news@druck.org.uk> |
|---|---|
| Date | 2016-02-07 16:00 +0000 |
| Message-ID | <n97phr$f53$1@dont-email.me> |
| In reply to | #10555 |
On 07/02/2016 13:59, Rob Morley wrote: > On Sun, 7 Feb 2016 12:29:18 +0000 > druck <news@druck.org.uk> wrote: > >> That may only seem to be two write operations, but depending on how >> the software works, it may involve a few dozen writes to the disc >> meta data, which is the same part of the disc each time. >> > Shouldn't the wear levelling algorithms move it around occasionally? > If there is any wear levelling. On fast cards just designed to store large files until full, then erased, there may be very little wear levelling. On cards designed for smaller writes, there may be more. Unfortunately there is no way to tell which sort of card you have. The class 10's are certainly fast, but the lower classes may be designed for better small writes, or they could just be less fast, using old tech. The only thing I can recommend is find a brand which gives good performance and lasts a reasonable amount of time, and stick to that. (I use Samsung EVO branded SDXC's). But don't expect any card to last forever, in fact them expect to fail regularly. So buy several and rotate out your main card to be a backup after a period, say 6 to 24 months depending on how heavily used. ---druck
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.sys.raspberry-pi
csiph-web