-
Notifications
You must be signed in to change notification settings - Fork 89
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
Using zram device instead of tmpfs #357
Comments
Never considered it as I am unfamiliar with zram |
Made a quick little hack to test this out: |
I would love this, esp helpful on constrained systems. Perhaps it's just really a request to add a psd.conf option for where to put the cachedir? In my case it would simply be /zram/psd instead of /run/user/1000/psd. Not sure there is any need to know much about zram. Could be useful for other cases as well. |
this being configurable (allowing to choose fs and compression algo) would be great |
I think managing zram would be out of the scope of this project. I propose that rather than offering zram specifically, just allow people to choose an alternate sync location. This means they are responsible for creating the zram devices and choosing where it is located |
@eduardoeae how does the speed compare to the current use of tmpfs? Any noticeable difference? |
No noticeable difference in performance, only lower memory usage. I'm using it with the default lz4 compressor. |
Hi @eduardoeae, great tip and very clever idea! Could you please explain step by step how to use zram instead of tmpfs (i run fedora 41) Do i have to create a new zram unit using systemd, and edit the psd file to point to? Thanks in advance! Cheers Ogu |
what benefit does this have over just using zram as swap? (unless the goal was to limit memory usage specifically for browsers only) |
Any plans of using zram disks (with compression) instead of just tmpfs?
I use zram-generator to create a compressed disk for the cache of browsers.
The text was updated successfully, but these errors were encountered: