-
Notifications
You must be signed in to change notification settings - Fork 592
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
Allow /dev/shm size to be specified #699
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Evan Lezar <elezar@nvidia.com>
c := cli.Command{ | ||
Name: "mount-shm", | ||
Usage: "Set up the /dev/shm mount required by the MPS daemon", | ||
Before: func(ctx *cli.Context) error { | ||
return validateFlags(ctx, &opts) | ||
}, | ||
Action: func(ctx *cli.Context) error { | ||
return mountShm(ctx, &opts) | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I has assumed we would do this as a configuration parameter in the config file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I had that in mind too and was looking into that as a follow up to this commit.
Would you ONLY expose it in the config file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we definitely want it in the config -- I don't have a strong opinion about whether it is also a command line flag. Probably not though, since other MPS options aren't.
c := cli.Command{ | ||
Name: "mount-shm", | ||
Usage: "Set up the /dev/shm mount required by the MPS daemon", | ||
Before: func(ctx *cli.Context) error { | ||
return validateFlags(ctx, &opts) | ||
}, | ||
Action: func(ctx *cli.Context) error { | ||
return mountShm(ctx, &opts) | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we definitely want it in the config -- I don't have a strong opinion about whether it is also a command line flag. Probably not though, since other MPS options aren't.
This change allows the size of the /dev/shm created for MPS to be specified as part of the helm deployment.