Skip to content

Allow MemorySwapMax be specified as a percentage #472

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

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

traylenator
Copy link
Contributor

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.

A configuration of:

```config
[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.

* https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html#MemorySwapMax=bytes
* systemd/systemd#33593
@traylenator traylenator added the enhancement New feature or request label Jul 3, 2024
@kenyon kenyon changed the title Allow MemorySwapMax be specified as a percentage Allow MemorySwapMax be specified as a percentage Jul 3, 2024
@traylenator traylenator merged commit 3317560 into voxpupuli:master Jul 4, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants