ToXIcGaming
Posts: 18
Joined: Fri Aug 22, 2014 5:25 pm

SD Card Failure

Sun Feb 18, 2018 2:25 am

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.

WillBoxGaming1
Posts: 43
Joined: Tue Dec 26, 2017 1:54 am

Re: SD Card Failure

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.

ToXIcGaming
Posts: 18
Joined: Fri Aug 22, 2014 5:25 pm

Re: SD Card Failure

Sun Feb 18, 2018 4:10 am

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.

pcmanbob
Posts: 6248
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: SD Card Failure

Sun Feb 18, 2018 2:26 pm

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.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

User avatar
HawaiianPi
Posts: 4262
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: SD Card Failure

Mon Feb 19, 2018 6:02 pm

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.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

n67
Posts: 939
Joined: Mon Oct 30, 2017 4:55 pm

Re: SD Card Failure

Mon Feb 19, 2018 6:16 pm

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.
"L'enfer, c'est les autres"

G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:

Epmu Sn!

J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!

Return to “Advanced users”