Hacker News new | ask | show | jobs
by epitomix 4946 days ago
Kingston lists the write cycles as 3000-5000, this would shorten your calculations by at least 20x.

http://media.kingston.com/pdfs/FlashMemGuide.pdf

Also, see this thread:

http://www.raspberrypi.org/phpBB3/viewtopic.php?t=21281&...

Edit - The Kingston data is a bit dated but in any case 10000 is probably a better number for cheaper cards.

1 comments

So I did a non-scientific test on my Raspberry Pi at home with a 4G card that has typically been my 'move an .iso around' it is a 'class 10' card from Microcenter Warehouse. Using this perl program:

   #!/usr/bin/perl

   use strict;
   use warnings;

   my $letters = "ABCEDEGHIJKLMNOPQRSTUVWXYZ-";
   my $range = length $letters;

   while (1) {
       foreach (1..16) {
           my $nm = "A";
           foreach (1 .. 15) {
               $nm .= substr($letters, rand($range), 1);
           }
           open(my $fh, ">", "$nm.delete-me");
           foreach (1 .. 128) {
               $nm .= substr($letters, rand($range), 1);
           }
           print $fh "$nm\n";
           close $fh;
       }
       `sync`;
       `rm *delete-me`;
   }
Killed it dead in 3 hrs 18 minutes. Your mileage may vary.

May not be 'first hand' enough though.

Nice work, thanks. I can see now how the cloud will be important with these small devices. I wonder how OUYA (and similar devices) is going to manage data and what the lifetime of the storage will be.
FWIW, in normal operation my Raspberry Pi mounts everything but the root volume from NFS. Very few writes are left to go to the system.