Skip to content

Update swap requirements following RHEL documentation#344

Open
inntran wants to merge 1 commit intoceph:develfrom
inntran:devel
Open

Update swap requirements following RHEL documentation#344
inntran wants to merge 1 commit intoceph:develfrom
inntran:devel

Conversation

@inntran
Copy link

@inntran inntran commented Aug 1, 2025

When the amount of RAM > 8GB, the recommended minimum swap size is 4GB, it's true even with RHEL 6.
And the 1.5x physical RAM swap size doesn't make sense on servers with hundreds of gigabytes of RAM.

We do not need to take hiberation into consideration especially in Ceph clusters I suppose.

https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/managing_storage_devices/getting-started-with-swap_managing-storage-devices#recommended-system-swap-space_getting-started-with-swap

' MB RAM, required: 8192MB' if ansible_facts['memtotal_mb'] | int < 8192 else 'N/A' }}
swap:
required: "{{ ((ansible_facts['memtotal_mb'] | int * 1.5) | round) | int }}"
required: 4096
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@inntran I would at least use a variable rather than hardcoding this value

Suggested change
required: 4096
required: "{{ min_swap_memory_required }}"

(or whatever a better name)

@asm0deuz
Copy link
Collaborator

asm0deuz commented Feb 9, 2026

Hi @inntran,

Thank you for you contribution.
Lately the swap requirements changed to completely disable swap as it can lead to performance degradation:

@ceph-jenkins
Copy link

Can one of the admins verify this patch?

3 similar comments
@ceph-jenkins
Copy link

Can one of the admins verify this patch?

@ceph-jenkins
Copy link

Can one of the admins verify this patch?

@ceph-jenkins
Copy link

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants