Skip to content

Add support for blkio read/write bps device - #14466

Merged
thaJeztah merged 1 commit into
moby:masterfrom
Mashimiao:add-support-blkio_throtte_bps
Dec 4, 2015
Merged

thaJeztah merged 1 commit into
moby:masterfrom
Mashimiao:add-support-blkio_throtte_bps

Conversation

@Mashimiao

Copy link
Copy Markdown
Contributor

Signed-off-by: Ma Shimiao [email protected]

@Mashimiao
Mashimiao force-pushed the add-support-blkio_throtte_bps branch 8 times, most recently from e5f9b19 to e883cdf Compare July 9, 2015 02:52
@LK4D4

LK4D4 commented Jul 9, 2015

Copy link
Copy Markdown
Contributor

@Mashimiao don't know why, but this continue to fail on jenkins. Could you try to rebase against master pls?

@Mashimiao
Mashimiao force-pushed the add-support-blkio_throtte_bps branch 2 times, most recently from 8bacfda to 3cc1693 Compare July 12, 2015 15:05
@Mashimiao

Copy link
Copy Markdown
Contributor Author

@LK4D4, in daemon file I have imported syscall. But, why when making windows binary it always says
daemon\daemon.go:937: undefined: syscall.Stat_t daemon\daemon.go:941: undefined: syscall.Stat daemon\daemon.go:949: undefined: syscall.Stat

@Mashimiao
Mashimiao force-pushed the add-support-blkio_throtte_bps branch 2 times, most recently from 0ed2fdd to 4fa457e Compare July 20, 2015 06:08
@tiborvass

Copy link
Copy Markdown
Contributor

For reference, same problem as in #14006 (comment) we need to have a policy on what to do with these cgroups flags.

@Mashimiao
Mashimiao force-pushed the add-support-blkio_throtte_bps branch 8 times, most recently from 0f8e734 to 9dca02a Compare August 4, 2015 09:47
Comment thread contrib/completion/bash/docker Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Mashimiao could this be device-bps-read for lexicographical order?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @tiborvass --read-bps-device comes from cgroup file blkio.throttle.read_bps_device. I think it's better to keep the same format with cgroup. If familiar with cgroup, it's easier for people to understand what they are going to set. But if you insisted, I think I'm OK to change it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree with @tiborvass here.
Most of the cgroup names are pretty sane, but this one is a bit backwards to me. I'd prefer to provide a better name, especially since this will be shared by other platforms.
This is just a nit...

We could probably even go a bit further and say device-read-rate and have it accept a user-friendly value (e.g. 50mbps or something instead of 52428800).

@tiborvass

Copy link
Copy Markdown
Contributor

For the same reasons described in #14006 (comment) I think we should accept these flags.

@cpuguy83

cpuguy83 commented Aug 6, 2015

Copy link
Copy Markdown
Member

@tiborvass Should we go ahead and move to code-review?

@tiborvass

Copy link
Copy Markdown
Contributor

@cpuguy83 was thinking we could wait for OP to answer to see if he disagrees.

Comment thread daemon/daemon_unix.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Similar problem here:

Your kernel does not support the --write-bps-device flag .
Your kernel does not support the --write-bps-device flag with the XXX device. 
You specified the --write-bps-device=xXXX:XXX values. Your kernel does not support this configuration. Specify another.

@moxiegirl

Copy link
Copy Markdown
Contributor

@jfrazelle I don't see a test in here either...you mentioned having one earlier. You OK without it?

@jessfraz

jessfraz commented Dec 2, 2015

Copy link
Copy Markdown
Contributor

would be niceee

On Tue, Dec 1, 2015 at 8:44 AM, moxiegirl [email protected] wrote:

@jfrazelle https://github.com/jfrazelle I don't see a test in here
either...you mentioned having one earlier. You OK without it?

—
Reply to this email directly or view it on GitHub
#14466 (comment).

@jessfraz

jessfraz commented Dec 2, 2015

Copy link
Copy Markdown
Contributor

I actually really think we need one

On Tue, Dec 1, 2015 at 4:41 PM, Jessie Frazelle [email protected] wrote:

would be niceee

On Tue, Dec 1, 2015 at 8:44 AM, moxiegirl [email protected]
wrote:

@jfrazelle https://github.com/jfrazelle I don't see a test in here
either...you mentioned having one earlier. You OK without it?

—
Reply to this email directly or view it on GitHub
#14466 (comment).

@icecrime

icecrime commented Dec 2, 2015

Copy link
Copy Markdown
Contributor

@jfrazelle Can somebody take it in a followup PR? This has been opened for quite some months already :-(

@jessfraz

jessfraz commented Dec 2, 2015

Copy link
Copy Markdown
Contributor

Ya as long as we make an issue so we don't forget I can make a test

@Mashimiao
Mashimiao force-pushed the add-support-blkio_throtte_bps branch 3 times, most recently from 0eaa5ae to bfd2d73 Compare December 3, 2015 08:02
@Mashimiao

Copy link
Copy Markdown
Contributor Author

rebased and fixed.

@runcom

runcom commented Dec 3, 2015

Copy link
Copy Markdown
Member

is this good to merge (given the lack of tests which will be addressed in another PR, I can take care of it also)? ping @jfrazelle

Comment thread contrib/completion/zsh/_docker Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just saw @sdurrheimer comment in your other PR (yay, I'm learning!) these should probably have a a * in front of --, so "($help)*--device...

@thaJeztah

Copy link
Copy Markdown
Member

Thanks @Mashimiao, I left some comments, but we're almost there!

@Mashimiao
Mashimiao force-pushed the add-support-blkio_throtte_bps branch from bfd2d73 to c6639b4 Compare December 4, 2015 00:53
@thaJeztah

Copy link
Copy Markdown
Member

Thanks @Mashimiao LGTM

@runcom will work on a test; I saw some tiny issues with the docs, but I'll create a follow up PR to fix those. Thank you for contributing!

@moylop260

Copy link
Copy Markdown

Is #20077 a expected behaivor?

@wurstbrot

Copy link
Copy Markdown

Is it possible to use the parameter device-read-bps/device-read-bps for docker run in combination with docker-compose some how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.