voxpupuli / puppet-systemd

Puppet module to manage systemd
https://forge.puppet.com/puppet/systemd
Apache License 2.0
52 stars 142 forks source link

Allow `MemorySwapMax` be specified as a percentage #472

Closed traylenator closed 5 days ago

traylenator commented 6 days ago

Pull Request (PR) description

A configuration of:

[Service]
MemoryMax=80%
MemorySwapMax=20%

seems to work:

systemctl status autofs.service
Memory: 134.6M (max: 2.6G swap max: 336.2M available: 2.4G)

The systemd documentation was lacking this information so I've corrected that also.