I've got a more common question. I come from bare metal microcontroller development - there we usually avoid flash write access for several reasons. one is to avoid damage of the flash memory because of too many erase/write cycles.
the raspberry is running from a sd card, which is also flash memory.
So i ask myself whats with the linux system running on a embedded system and the "everything is a file" philosophy.
Is the system writing every time physically to the flash (e.g. for logging) or is there a driver layer which collects requests and writes bigger blocks delayed to the physical semiconductor?
When i write scripts for the embedded system, should I avoid redirection like foo > tmp.file
temporary file writes when the script is running every minute and data could be also held in RAM?
i am curious whats your expert opinion about it...