systemd / zram-generator

Systemd unit generator for zram devices
MIT License
575 stars 48 forks source link

Allow setting zram size through xenstore paths #197

Open Atrate opened 3 months ago

Atrate commented 3 months ago

When using zram in a Xen DomU, it'd be nice if it'd be possible to use Xen's memory balooning parameters for setting the maximum RAM.

Talking especially about the

/local/domain/$domain-id/memory/hotplug-max

parameter, as it controls the actual maximum amount of memory that a DomU can be assigned in Qubes OS specifically.

The parameter can be viewed with xenstore-read /local/domain/$(xenstore-read domid)/memory/hotplug-max.