Set max count of zram devices to 28 for huge cpu systems#24
Open
eugenepaniot wants to merge 7 commits into
Open
Set max count of zram devices to 28 for huge cpu systems#24eugenepaniot wants to merge 7 commits into
eugenepaniot wants to merge 7 commits into
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.