Skip to content
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

Use Systemd::Unit::Amount, Percent and AmountOrPercent #422

Merged
merged 1 commit into from Mar 5, 2024

Conversation

traylenator
Copy link
Contributor

@traylenator traylenator commented Mar 5, 2024

Pull Request (PR) description

Use the new types:

  • Systemd::Unit::Amount
  • Systemd::Unit::Percent
  • Systemd::Unit::AmountOrPercent

A few points to note:

  • While some documentation only mentions up to Tera the systemd code supports up to Peta and Exa. Some man pages are correct.

  • The MemoryLow, MemoryHigh, MemoryHigh matchers were incorrect. They do not support a "Soft:Hard" setting like the ulimit settings LimitFSize and similar.

  • https://github.com/systemd/systemd/blame/main/src/basic/format-util.c

@traylenator traylenator added the enhancement New feature or request label Mar 5, 2024
Use the new types:
* `Systemd::Unit::Amount`
* `Systemd::Unit::Percent1`
* `Systemd::Unit::AmountOrPercent`

A few points to note:

* While **some** documentation only mentions up to Tera the systemd
  code supports up to Peta and Exa. Some man pages are correct.
* The `MemoryLow`, `MemoryHigh`, `MemoryHigh` matchers were incorrect.
  They do not support a "Soft:Hard" setting like the ulimit settings `LimitFSize`
  and similar.

* https://github.com/systemd/systemd/blame/main/src/basic/format-util.c
@traylenator
Copy link
Contributor Author

centos failures are not related.

@traylenator traylenator mentioned this pull request Mar 5, 2024
@bastelfreak bastelfreak merged commit e1ca9c5 into voxpupuli:master Mar 5, 2024
34 checks passed
@traylenator traylenator deleted the types branch March 5, 2024 13:34
traylenator added a commit to traylenator/puppet-systemd that referenced this pull request Mar 5, 2024
CPUQuota can be more that 100%

A bug was introduced in voxpupuli#422 restricting it to the range from 0 to 100%.

* https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html#CPUQuota=
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.

None yet

2 participants