-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add support for new zram features (recompression, etc) #178
Comments
These look like single-time triggers, so same as #164. |
@nabijaczleweli As far as I'm aware: the new recompression features are automatic - no userland trigger is required, it's all handled in the kernel? (i.e. No userland daemon is required to manage/trigger anything - just like how once As a result, I believe it's more of a change to |
The only configurable bit is |
Based on @nabijaczleweli response here: #164 (comment) While Seems like the timers with basic config options would meet many users needs of those features, and it'd kind of fall into covering more zram functionality which seems relevant to the project (simple and fast way to configure swap on zram), along with it's secondary goal of demonstrating a systemd generator in rust by additionally creating timer units? (probably wouldn't differ that much though..) Only valid argument then is the convenience of having timers generated alongside the generated units, and the user config kept simple via the same For users that would be interested in these zram features, is there much benefit to them all DIY managing their own timers for pairing with the I understand if there is little interest from maintainers to implement that support, but would you be open to contributors providing a PR, or would it be a waste of time? (I'd usually be open to it, but not sure when I'll have time spare) |
Hi, this would imo be a nice feature to have both, namely that the a) I'm writing this on a fairly old 4GiB Netbook which profits from overcommitting system memory through zram swap with lz4, running Firefox along with several Electron shells (like Codium, Signal, ...) but I do wish there would be some convenient way to increase the ratio for cold and/or huge pages. |
Configuring the recompression algorithms is definitely within the scope here (but not something that's obvious to test because Debian configures without CONFIG_ZRAM_MULTI_COMP; I hope you'll test this if I ping you on a PR). Generating a plain timer unit that does |
… the ones after the first one to /recomp_algorithm Ref: systemd#178 (comment)
… the ones after the first one to /recomp_algorithm Ref: systemd#178 (comment)
… the ones after the first one to /recomp_algorithm Ref: systemd#178 (comment)
Thank you so much for adding this. Will build and test it. |
… the ones after the first one to /recomp_algorithm Ref: systemd#178 (comment)
… the ones after the first one to /recomp_algorithm Ref: systemd#178 (comment)
… the ones after the first one to /recomp_algorithm Ref: systemd#178 (comment)
…al,recomp,params) Ref: systemd#178 (comment)
…al,recomp,params) Ref: systemd#178 (comment)
…al,recomp,params) Ref: systemd#178 (comment)
…al,recomp,params) Ref: systemd#178 (comment)
…al,recomp,params) Ref: #178 (comment)
LGTM |
There have been changes afoot in the zram kernel module... Most notably, the addition of zram recompression: torvalds/linux@84b33bf
see also: https://www.kernel.org/doc/html/latest/admin-guide/blockdev/zram.html#recompression
Would be nice for zram-generator to support these new features :)
The text was updated successfully, but these errors were encountered: