Giter Club home page Giter Club logo

Comments (4)

ecdye avatar ecdye commented on June 8, 2024

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.

from zram-config.

domy86 avatar domy86 commented on June 8, 2024

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.

from zram-config.

ecdye avatar ecdye commented on June 8, 2024

Ahh, well then you would likely be better suited with using /etc/fstab to mount your /tmp directory on ram rather than zram.

from zram-config.

domy86 avatar domy86 commented on June 8, 2024

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!

from zram-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.