Skip to content

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

Open
eugenepaniot wants to merge 7 commits into
mystilleef:masterfrom
eugenepaniot:master
Open

Set max count of zram devices to 28 for huge cpu systems#24
eugenepaniot wants to merge 7 commits into
mystilleef:masterfrom
eugenepaniot:master

Conversation

@eugenepaniot
Copy link
Copy Markdown

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