Live data from Hacker News

Wordpress site running on Raspberry Pi

pipress.vo3.net

31–37 of 37 posts

Re: Wordpress site running on Raspberry Pi

#31
post #28

Earlier quoted context omitted.

Chuck - can you point to more articles or first hand evidence of lifetime testing of SD cards? I am very curious.

Well, Intel used to have a service life comparison for flash up on their site but I can't find it now :-(. There was also a great article on it in EE Times which has also faded apparently. SanDisk in its 2004 document [1] re-iterates the 100,000 writes limit. Typically flash is broken up into 'pages' and a page can be as small as 8K bytes and as large as 128K bytes, there are reasons for doing it different ways (most…

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.

Re: Wordpress site running on Raspberry Pi

#32

Earlier quoted context omitted.

Well, Intel used to have a service life comparison for flash up on their site but I can't find it now :-(. There was also a great article on it in EE Times which has also faded apparently. SanDisk in its 2004 document [1] re-iterates the 100,000 writes limit. Typically flash is broken up into 'pages' and a page can be as small as 8K bytes and as large as 128K bytes, there are reasons for doing it different ways (most…

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.

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.

Re: Wordpress site running on Raspberry Pi

#33

Earlier quoted context omitted.

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.

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);…

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.

Re: Wordpress site running on Raspberry Pi

#34
post #15

Earlier quoted context omitted.

Yeah, I'm curious to see how long it lasts.

Looks like forever. If it's not taken down by the hit rate from a top slot, it won't be taken down. It's gotten slower, but it's alive. Nice work.

It's down as of 11/30 11:30PM CST.

Re: Wordpress site running on Raspberry Pi

#35
post #21

Earlier quoted context omitted.

Haha, I liked this conversation! @jstalin I'll get my raspberry pi delivered in a few days, I'll let you know if I can figure out the varnish issue. Meanwhile, you can also submit a ticket on Trac https://www.varnish-cache.org/trac

The quickest way to get an answer regarding varnish issues is to ask on the irc channel. irc://irc.linpro.no/#varnish

This seems like a permanent issue and should be reported as a bug rather than an IM.

Re: Wordpress site running on Raspberry Pi

#36
post #15

Earlier quoted context omitted.

Looks like forever. If it's not taken down by the hit rate from a top slot, it won't be taken down. It's gotten slower, but it's alive. Nice work.

It's down as of 11/30 11:30PM CST.

Investigating now... looks like it went down at 12:26am eastern time for no apparent reason...

Re: Wordpress site running on Raspberry Pi

#37

Earlier quoted context omitted.

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);…

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.
Post reply on HN