Looking at these files using ls -al shows that they have the exact same time stamp which seems to confirm my apprehension.
The help section in the instruction says:
zram_dir is the directory you wish to hold in zram, the original is moved to a bind mount bind_dir and is synchronised on start/stop and write commands.
Does that mean that the SD card is written with every change of data in zram? If that’s so, what’s the benefit of zram?
How can I make sure the data only is written to zram and stored on the SD-card only when shutting down the system or maybe once a day?
No, that “and write commands” part of the sentence is misleading, forget about it.
If that was your intention then that’s a useless command.
It’s showing the current (overlay)FS (which of course is updated) and the ‘upper’ FS zram part (which of course is updated, too).
That’s right what it does: it syncs on (proper!) box shutdown (only).
I’ve already disabled kernel logging. And I find that data is written to
/proc and /sys which both seem to be located in RAM only (using find / -cmin -1)
If find / -cmin -1 is not suitable to identify files that are actually written to the SD card which command could I use instead?
I would like to identify those files and also move them to zram.
Well you can browse those files but remember it’ll also show those that already are on zram.
And you would need to repeat this as some processes might be inactive during that minute while active during others.
For the second time in three weeks I had a hard reset due to failures in the main power line. For the second time my thinker board does not bootup anymore. The first time I reinstalled everything from scratch, however this time would prefer to avoid this as it is very time consuming. Is there a way to reboot my system? I run on a linaro linux and I have access to the SD card.
I’m using ZRAM with linaro and openhab on my asus tinker board. It works but I have this issue. Is there any way to reboot the system without erasing the SD card? I had already a lot of hard resets during the past years however this no booting issue happened since I started to use ZRAM.
I don’t understand. Did you use openhabian to enable zram?
openHABian uses OverlayFS which syncs to disk on unmount (executed by default before shutdown) .
“Standard” zram only does not so if you use that your data will be gone.
Hello,
I guess I don’t use OverlayFS as I don’t use openhabian. However I don’t care too much about the data loss as I was using only /var/log folder and the swap. What I need is to boot the system as it does not boot anymore. Do you think that commenting out all the ztab rows could fix it? Do you