-
Notifications
You must be signed in to change notification settings - Fork 263
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
Add uvm call for updating cpu limits #906
Add uvm call for updating cpu limits #906
Conversation
internal/uvm/cpulimits_update.go
Outdated
func (uvm *UtilityVM) UpdateCPULimits(ctx context.Context, limits *hcsschema.ProcessorLimits) error { | ||
req := &hcsschema.ModifySettingRequest{ | ||
ResourcePath: cpuLimitsResourcePath, | ||
Settings: *limits, |
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.
Do we have to dereference this? Can we not just assign directly?
internal/uvm/cpulimits_update.go
Outdated
Settings: *limits, | ||
} | ||
|
||
if err := uvm.modify(ctx, req); err != nil { |
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.
return uvm.modify(ctx, req)
Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
e9d39d3
to
e0f4daf
Compare
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.
LGTM!
Related work items: microsoft#173, microsoft#839, microsoft#856, microsoft#877, microsoft#881, microsoft#886, microsoft#887, microsoft#888, microsoft#889, microsoft#890, microsoft#893, microsoft#894, microsoft#896, microsoft#899, microsoft#900, microsoft#902, microsoft#904, microsoft#905, microsoft#906, microsoft#907, microsoft#908, microsoft#910, microsoft#912, microsoft#913, microsoft#914, microsoft#916, microsoft#918, microsoft#923, microsoft#925, microsoft#926, microsoft#928, microsoft#929, microsoft#932, microsoft#933, microsoft#934, microsoft#938, microsoft#939, microsoft#942, microsoft#943, microsoft#945, microsoft#946, microsoft#947, microsoft#949, microsoft#951, microsoft#952, microsoft#954
…limits Add uvm call for updating cpu limits
This PR is part of the ongoing dynamic resources work. This PR adds the UVM calls to update UVM cpu limits. That call will be used in later PRs for this work.
Signed-off-by: Kathryn Baldauf kabaldau@microsoft.com