benchmarks: pulled in code from github.com/dgonyeo/rkt-monitor#2324
benchmarks: pulled in code from github.com/dgonyeo/rkt-monitor#2324cgonyeo merged 2 commits intorkt:masterfrom
Conversation
|
Questions I have about this:
|
|
Also I've already found something interesting: |
|
With the too-many-apps pod that's included in this PR it looks like systemd is hunting for some files as hard as it can for a while, and after a while finishes what it was doing and drops back to pretty much no CPU usage. |
@dgonyeo Do you made any notes on what are the files systemd is looking for? |
|
systemd notices the cgroup filesystems being mounted for each app and tries to read the configuration for each of them: https://gist.github.com/alban/0bc92a9dab9a722b05d343753fbc51b1 |
|
Not mounting |
|
Gah. Can we disable systemd's "smartness" somehow? |
|
Issue filed in #2351 |
|
We shouldn't check in ACIs or binaries. |
|
Great catch - presumably an accident since the build scripts are there.. |
tests/rkt-monitor/main.go
Outdated
| if err != nil { | ||
| return nil, err | ||
| } | ||
| c, err := p.CPUPercent(0) |
There was a problem hiding this comment.
It seems this doesn't exist anymore in https://github.com/shirou/gopsutil/blob/master/process/process.go
Also, we should vendor it.
|
Whoops, removed the binary and ACI. |
|
😱 |
|
Hopefully @dgonyeo has some time to fix this for the next release ;) |
|
@dgonyeo do you have time to get this? we need it for rktnetes. |
|
I'll have time to fix this up tomorrow. After I fix the panic, is it fine in its current form? Any changes you'd like to see? |
|
For an initial cut yes I think so |
54ce659 to
a6eb383
Compare
|
The panic was due to gopsutil updating, and me not vendoring the dependencies for this. I pulled in the dependencies and added a little build script to point the |
|
Yep! But it seems you're still including binary files. |
|
Wow I'm bad at not doing that. Fixed. |
|
this is unreviewable, mind splitting out the godeps? |
Added the tests/benchmarks directory, which includes the code for a golang binary that can start rkt and watch its resource usage. This directory also includes bash scripts for generating a handful of test scenarios.
Vendored the dependencies necessary for rkt-monitor.
|
Done. |
|
The Godeps changes add a dependency on https://github.com/StackExchange/wmi and it does not have releases yet. We would like to only have godeps dependencies on tagged versions. Can you ask the authors of wmi to tag a release? As an example of such request, please see the rationale on peterbourgon/diskv#27 Same thing for https://github.com/shirou/w32 and maybe others. |
|
I think this might not be such an issue for packaging because the deps in On Thu, Apr 21, 2016 at 12:23 PM, Alban Crequy [email protected]
|
|
Pinging @onlyjob |
|
Oh sorry, should have clarified. The question is if it's acceptable in your eyes to use/vendor untagged commits of dependencies, when the dependency is only used in ancillary code that won't make it into the packaged release in a distro like Debian. |
Added the tests/rkt-monitor directory, which includes the code for a
golang binary that can start rkt and watch its resource usage. This
directory also includes bash scripts for generating a handful of test
scenarios.