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

Allow byte values in limits.memory.swap #692

Merged
merged 6 commits into from
Mar 28, 2024
Merged

Allow byte values in limits.memory.swap #692

merged 6 commits into from
Mar 28, 2024

Commits on Mar 28, 2024

  1. api: instance_memory_swap_bytes

    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    stgraber committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    b3e1424 View commit details
    Browse the repository at this point in the history
  2. internal/instance: Update validator for limits.memory.swap

    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    stgraber committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    23988ae View commit details
    Browse the repository at this point in the history
  3. doc: Update configs

    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    stgraber committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    3dcc514 View commit details
    Browse the repository at this point in the history
  4. incusd/instance/lxc: Fix default swap allocation

    Allowing swap usage should not result in additional memory being made
    available to the instance.
    
    So limits.memory.swap should only control whether the instance is likely
    to get swapped through the swappiness control.
    
    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    stgraber committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    bb2d60c View commit details
    Browse the repository at this point in the history
  5. incusd/project: Restrict access to limits.memory.swap

    As limits.memory.swap can grant additional unaccounted memory, limit it
    to those who can use low-level LXC options.
    
    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    stgraber committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    7f72ac7 View commit details
    Browse the repository at this point in the history
  6. incusd/instance/lxc: Add support for extra swap in bytes

    Closes lxc#541
    
    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    stgraber committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    fc18bb7 View commit details
    Browse the repository at this point in the history