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

Changing values in qm.container or through drop-ins does not work #715

Open
raballew opened this issue Feb 5, 2025 · 0 comments
Open

Changing values in qm.container or through drop-ins does not work #715

raballew opened this issue Feb 5, 2025 · 0 comments
Assignees
Labels
bug Something isn't working centos-sig-automotive Issues related to containers running in centos-sig-automotive

Comments

@raballew
Copy link
Contributor

raballew commented Feb 5, 2025

In case I set MemoryLimit or MemoryMax to lets say 50% in the qm.container file, reload the daemon and restart the unit and then run podman stats it still showing a limit of 100% of the memory available on the system.

Without any changes:

podman stats
ID            NAME        CPU %       MEM USAGE / LIMIT  MEM %       NET IO          BLOCK IO    PIDS        CPU TIME    AVG CPU %
a25868ed6acc  qm          0.40%       5.37MB / 2.055GB   0.26%       1.726kB / 838B  0B / 0B     5           315.61ms    0.40%

Edit /usr/share/containers/systemd/qm.container:

# MemoryMax
# -----------
# Default is infinity - sets no upper bound on memory usage, allowing the
# service to consume as much memory as the system allows, just like
# MemoryMax=0 or omitting it.
MemoryMax=50%

# MemoryHigh
# -----------
# Default is infinity - Disables the soft memory limit, meaning no throttling
# will occur due to high memory usage, similar to MemoryHigh=0 or
# omitting it.
MemoryHigh=50%
MemorySwapMax=0

Run systemctl daemon-reload and systemctl restart qm.service but this still returns the following:

podman stats
ID            NAME        CPU %       MEM USAGE / LIMIT  MEM %       NET IO          BLOCK IO    PIDS        CPU TIME    AVG CPU %
a25868ed6acc  qm          0.15%       5.37MB / 2.055GB   0.26%       1.866kB / 908B  0B / 0B     5           319.407ms   0.15%

Note that drop-ins do not work either.

@raballew raballew changed the title Changing values in qm.container or through drop-ins does work Changing values in qm.container or through drop-ins does not work Feb 5, 2025
@Yarboa Yarboa added bug Something isn't working centos-sig-automotive Issues related to containers running in centos-sig-automotive labels Feb 5, 2025
@dougsland dougsland self-assigned this Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working centos-sig-automotive Issues related to containers running in centos-sig-automotive
Projects
None yet
Development

No branches or pull requests

3 participants