Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] why is the script disabling zram? #142

Open
Fuckingnameless opened this issue Nov 15, 2024 · 7 comments
Open

[question] why is the script disabling zram? #142

Fuckingnameless opened this issue Nov 15, 2024 · 7 comments

Comments

@Fuckingnameless
Copy link

Fuckingnameless commented Nov 15, 2024

any downsides to enabling it back? i use zfs so every byte counts haha

@Fuckingnameless Fuckingnameless changed the title [question] [question] why is the script disabling zram? Nov 15, 2024
@ryecoaaron
Copy link
Member

@Fuckingnameless
Copy link
Author

I assume you asked this on the forum too. https://forum.openmediavault.org/index.php?thread/7633-howto-instal-zfs-plugin-use-zfs-on-omv/&postID=405772#post405772

you assume correctly

looking at the script again i noticed armbian uses ramlog and zram together by default
so I'm confused why do we have to disable zram if folder2ram aka flasmemory does the same as ramlo

@ryecoaaron
Copy link
Member

You are free to use ramlog. Just disable installing the flashmemory plugin when installing OMV - https://github.com/OpenMediaVault-Plugin-Developers/installScript/blob/master/install#L130

Other reasons:
When the flashmemory plugin was first written, we weren't even using armbian.
Not all systems are Armbian.
I don't know much about ramlog but flashmemory is moving more than just /var/log to tmpfs - https://github.com/OpenMediaVault-Plugin-Developers/openmediavault-flashmemory/blob/master/srv/salt/omv/deploy/flashmemory/default.sls#L48

I run flashmemory on all of my OMV systems even with nvme. It let me run OMV on an SD card for 5 years. When something works well, we have a tendency to not look for replacements.

@Fuckingnameless
Copy link
Author

you said zram/flashmemory combo would use even more ram? how does that work?

@ryecoaaron
Copy link
Member

flashmemory moves files to tmpfs. zram moves files to tmpfs. Some/many of those files are moved to tmpfs by both zram and flashmemory. This will use more ram than just one of them.

@Fuckingnameless
Copy link
Author

Fuckingnameless commented Nov 18, 2024

flashmemory moves files to tmpfs. zram moves files to tmpfs. Some/many of those files are moved to tmpfs by both zram and flashmemory. This will use more ram than just one of them.

is it zram per se or the implementation alongside log2ram on many distros? could that solve the issue?

disable logging to ram by setting `ENABLED=false´
in  `/etc/default/armbian-ramlog
```´

@ryecoaaron
Copy link
Member

I worded that wrong. I meant log2ram not zram. zram is just compressing. zram could be used in folder2ram I guess. So, your issue with folder2ram wrong is repeating my mistake. If you want to ask for something from folder2ram, it would be to use zram.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants