Page 1 of 1

SD Card Failure

Posted: Sun Feb 18, 2018 2:25 am
by ToXIcGaming
So I have a script caching weather data from an API every 30 mins and am just wondering about whether this would cause the SD card to fail quickly.

I have heard about SD cards failing due to excessive writing (although I feel every 30 mins isn't really excessive), should I maybe change it to every hour or so or maybe even disable caching completely?

The reason I decided to cache the data is otherwise it would call the API roughly once every 30 seconds equalling around 2,880 a day, which isn't exactly great.

Re: SD Card Failure

Posted: Sun Feb 18, 2018 4:05 am
by WillBoxGaming1
Dont worry about that. Its supposed to work well. Just let it run for 10-20mins, and if your SD Card is getting hot, your sd card is more likely to be malfunctioning/bad for your pi. There shouldnt be any problem with a perfectly working sd card.

Re: SD Card Failure

Posted: Sun Feb 18, 2018 4:10 am
by ToXIcGaming
WillBoxGaming1 wrote:
Sun Feb 18, 2018 4:05 am
Dont worry about that. Its supposed to work well. Just let it run for 10-20mins, and if your SD Card is getting hot, your sd card is more likely to be malfunctioning/bad for your pi. There shouldnt be any problem with a perfectly working sd card.
But what im talking about overtime won't it kill the SD card, Writing to it every 30 mins, 24/7.

Edit: after working it out that would mean over 1 million writes a year, quite a lot, I'll disable the cache.

Re: SD Card Failure

Posted: Sun Feb 18, 2018 2:26 pm
by pcmanbob
I have a pi running 24/7 writing data on a 5min and a 2min cycle is been running for nearly 3 years on the same SD card without a problem.
current uptime 264 days , had to take it down last time for replacement of damage fuse spur on mains circuit or it would have been nearer 2 years uptime.

As long as you are using good quality SD card you should have no problem as long as you don't let the card fill up with data to a point were you run out of space.

Re: SD Card Failure

Posted: Mon Feb 19, 2018 6:02 pm
by HawaiianPi
ToXIcGaming wrote:
Sun Feb 18, 2018 4:10 am
But what im talking about overtime won't it kill the SD card, Writing to it every 30 mins, 24/7.
Everything will fail eventually. There are high endurance SD cards if you are really worried about it. If you don't need to save the cache data long term, you could write your cache data to a ramdisk.
Edit: after working it out that would mean over 1 million writes a year, quite a lot, I'll disable the cache.
2 writes per hour, times 24 hours a day, times 365 days a year does NOT equal anywhere near a million. 2x24x365=17520, or 17568 writes on leap years (17532 average). So you're only going to be doing roughly 17.5 thousand writes per year.

Re: SD Card Failure

Posted: Mon Feb 19, 2018 6:16 pm
by n67
2 writes per hour, times 24 hours a day, times 365 days a year does NOT equal anywhere near a million. 2x24x365=17520, or 17568 writes on leap years (17532 average). So you're only going to be doing roughly 17.5 thousand writes per year.
Maybe he is counting bytes.