gt: allow policies to request more hugepages after boot#500
Merged
AltraMayor merged 4 commits intomasterfrom Jul 6, 2021
Merged
gt: allow policies to request more hugepages after boot#500AltraMayor merged 4 commits intomasterfrom
AltraMayor merged 4 commits intomasterfrom
Conversation
The new script, namely gkctl/scripts/reload_policy.lua, reloads the Lua policy from the disk and updates the instances of the GT block.
l_update_gt_lua_states() was issueing the same error message for failures of mb_alloc_entry() and mb_send_entry(). This patch clarifies which failure actually happened.
The capabilities CAP_DAC_OVERRIDE and CAP_SYS_ADMIN are needed to allow policies to request more hugepages during a reload.
The capabilities CAP_DAC_OVERRIDE and CAP_SYS_ADMIN are needed to allow policies to request more hugepages during an incremental update.
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.
When more hugepages are needed after boot and a Grantor server is running with a non-root user, the following log entry may show up in the log:
EAL: Couldn't get fd on hugepage file. The previous log entry is likely followed by the following entry:LPM: LPM memory allocation failed.This pull request addresses this problem and adds a
gkctlscript to request the reload of the policy.