Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Conversation

@coolljt0725
Copy link
Contributor

Signed-off-by: Lei Jitang [email protected]

fs.Apply support set cpu.cfs_quota_us, but systemd.Apply don't. This patch add systemd support cpu.cfs_quota_us.

Copy link
Contributor

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.

@coolljt0725 coolljt0725 force-pushed the add_support_cpu_cfs_quota branch from 51c5e62 to 4278498 Compare February 13, 2015 02:21
@coolljt0725 coolljt0725 changed the title Add systemd support cpu.cfs_quota_us Add systemd support cpu.cfs_quota_us and cpu.cfs_period_us Feb 13, 2015
@coolljt0725
Copy link
Contributor Author

update , add support cpu.cfs_period_us

@coolljt0725 coolljt0725 force-pushed the add_support_cpu_cfs_quota branch from 4278498 to 2907333 Compare February 13, 2015 03:09
Copy link
Contributor

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.

@coolljt0725 coolljt0725 force-pushed the add_support_cpu_cfs_quota branch from 2907333 to 29f5cb6 Compare February 13, 2015 06:34
@coolljt0725
Copy link
Contributor Author

update as @mrunalp suggestion, have a single function for cpu sub-system

@coolljt0725
Copy link
Contributor Author

ping @mrunalp

@vmarmol
Copy link
Contributor

vmarmol commented Feb 17, 2015

LGTM

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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.

@mrunalp
Copy link
Contributor

mrunalp commented Feb 17, 2015

LGTM

mrunalp pushed a commit that referenced this pull request Feb 17, 2015
Add systemd support cpu.cfs_quota_us and cpu.cfs_period_us
@mrunalp mrunalp merged commit f4a4391 into docker-archive:master Feb 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants