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

Set max count of zram devices to 28 for huge cpu systems #24

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

eugenepaniot
Copy link

No description provided.

…commit add min(ncpu,32) to calc cpu count function
Set pipefail to produce a failure return code if any command errors.
Set nounset to exit when your script tries to use undeclared variables.
Set "-e" to exit immediately when a command fails.

Change max devices to max 28:

https://bugzilla.redhat.com/show_bug.cgi?id=1383283

MAX_SWAPFILES is defined as

        ((1 << MAX_SWAPFILES_SHIFT) - SWP_MIGRATION_NUM - SWP_HWPOISON_NUM)

which limits the number of swap files below 32 (depending on kernel config), quite possibly to 28.
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.

1 participant