-
Notifications
You must be signed in to change notification settings - Fork 315
Add systemd support cpu.cfs_quota_us and cpu.cfs_period_us #371
Add systemd support cpu.cfs_quota_us and cpu.cfs_period_us #371
Conversation
d5f2cc6 to
51c5e62
Compare
cgroups/systemd/apply_systemd.go
Outdated
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.
where is CpuPeriod? We should support both of them.
51c5e62 to
4278498
Compare
|
update , add support cpu.cfs_period_us |
4278498 to
2907333
Compare
cgroups/systemd/apply_systemd.go
Outdated
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 it makes sense to have a single function for a single cgroup sub-system.
Signed-off-by: Lei Jitang <[email protected]>
2907333 to
29f5cb6
Compare
|
update as @mrunalp suggestion, have a single function for cpu sub-system |
|
ping @mrunalp |
|
LGTM |
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 this is not a TODO.
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.
This is still true that native systemd API doesn't support period and quota, right? We are using the filesystem path directly.
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 think the comment is accurate.
|
LGTM |
Add systemd support cpu.cfs_quota_us and cpu.cfs_period_us
Signed-off-by: Lei Jitang [email protected]
fs.Applysupport setcpu.cfs_quota_us, butsystemd.Applydon't. This patch add systemd supportcpu.cfs_quota_us.