I need to enable a swap file on my embedded linux product. The problem is that the file is located on an SD card.
At the moment I'm using 15MB swap and about 120MB RAM because of temporary increases in memory usage. I know (good) SD cards have a wear-leveling mechanism implemented to spread all writes evenly over different blocks. Only 0.2GB of the 4GB card is being used so plenty of free space.
Is it possible to predict (not exactly offourse) the failure date of the SD card? 1 year, 5 years, 10 years, ...? I was thinking about checking how many data gets written in a specific timeframe and checking this with datasheet specs or something like that.
Any ideas how to proceed?
Edit: I see here that a 2GB can have 10TB of data written before failure, so extrapolated gives me 20TB for a 4GB version.