Closed domy86 closed 3 years ago
Alright, I am not surprised that you have had issues with this. First off, RPi 4 8GB does not always work correctly with zram right now. This is due to a Linux Kernel issue that is ongoing. While not a part of this project, this post on the openHAB forum has some details. For the moment there are no real good ways to enable zram on a RPi 4 8GB it may be possible but I won't try and support it as the methods used would be very hacky.
Second, it should not be necessary to put the /tmp
directory on zram please read the Performance section of the README to get more details.
I will make sure to make a note in the README so that people know that the RPi 8GB is not currently working with zram due to this issue.
Alright, I am not surprised that you have had issues with this. First off, RPi 4 8GB does not always work correctly with zram right now. This is due to a Linux Kernel issue that is ongoing. While not a part of this project, this post on the openHAB forum has some details. For the moment there are no real good ways to enable zram on a RPi 4 8GB it may be possible but I won't try and support it as the methods used would be very hacky.
Aaahh, I see, I didn't even think about that, lol.
Second, it should not be necessary to put the
/tmp
directory on zram please read the Performance section of the README to get more details.
I saw this section but my /tmp is not mounted in RAM but in the root.
domy@domy-pi:~$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 117G 6.4G 106G 6% /
domy@domy-pi:~$
I will make sure to make a note in the README so that people know that the RPi 8GB is not currently working with zram due to this issue.
Thanks for your time!
Anyhow, I do have around 5 MB writes per day, it's not that urgent, I'll wait for a fix.
Ahh, well then you would likely be better suited with using /etc/fstab
to mount your /tmp
directory on ram rather than zram.
Actually, I've found that tmp.mount is not enabled by default, we need to copy *.mount file and enable it.
sudo cp -v /usr/share/systemd/tmp.mount /etc/systemd/system/
sudo systemctl enable tmp.mount
domy@domy-pi:~$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.9G 0 3.9G 0% /tmp
So, I will close this issue, there is nothing we can do right now.
Best regards!
Hi guys,
I do have Raspberry PI 4 8 GB with fully updated Ubuntu Mate 20.04.2 LTS. I'm trying to set this thing up but maybe I'm stupid because it's not working like you have presented on the code home page.
Log file is attached, a little bit long for this. zram-config.log Configuration file /etc/ztab has not been changed yet.
Can someone please explain me how to get this thing working? And is it possible to include /tmp directory with this tool or I do need to use /etc/fstab?
Thank you in advance and I wish you all the best!