sithlord2 wrote: ↑
Sat Jan 13, 2018 2:04 pm
For those running 24/7 Pi's, can you tell me which manufacturer and models you are using?
Mostly Samsung EVO, or EVO Plus now.
I see these appear to be available with a minimum size of 32GB now (on Amazon anyway).
If heavy usage is your problem, you could perhaps:-
1) boot off USB disk (agreed, thats a problem on old Pi's).
2) mount your SD card read-only, do the initial boot off it, but run the system from any disk.
3) mount the SD card as normal, and just do the heavy data I/O to the external disk.
The OS doesn't write very much to the card, or it would affect everyone. So it is presumably an app you are running thats writing heavily to the SD card. In which case the easiest option (3) should help.
As I said in a prior post, you can do things like add commit=600 say to any ext4 mounts to flush dirty blocks every 10 minutes instead of every 5 seconds. This reduces writes and increases the performance (it allows delayed allocation to work properly). But obviously you are at greater risk on power cuts. Mount /tmp and /var/log as tmpfs (in virtual memory).
Perhaps get your app to write to a tmpfs disk and you periodically save the data to a real disk.