Skip to content

Conversation

@sahithiRavindranath
Copy link

For multi-card spyre containers eventually runs out of locked memory and caused the conatiners to exit.

Updating the memlock config to the max value containers might consume based on the number of cards in the system

@sahithiRavindranath sahithiRavindranath force-pushed the spyrenew branch 4 times, most recently from 93be22e to 5e6aded Compare February 11, 2026 08:54
If the currently set ulimit value is higher than the configured limit,
it does not need to be reduced, as higher values are harmless.

The validation parses the configuration and checks the memlimit value.
If the currently set memlimit is greater than or equal to the configured value,
the check passes; otherwise, it fails.

Signed-off-by: Sahithi Ravindranath <Sahithi.Ravindranath@ibm.com>
multi-card spyre containers eventually runs out of locked memory
and can cause the containers to exit.

Updating the memlock config to the max value containers might consume based
on the number of cards in the system would prevent the containers
exiting due to locked memory exhaustion.

Signed-off-by: Sahithi Ravindranath <Sahithi.Ravindranath@ibm.com>
line_str = line_match.group(1)
line_value = line_match.group(2)
conf_str = conf_match.group(1)
if line_str == conf_str:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you define a function push the above logic there? Add some documentation for that function.

config_file)

status = True
pattern = r'^(.+?)\s+(unlimited|\d+)$'
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add an example that matches with above patter.

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.

2 participants