Skip to content
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

proc walker: optimize open file counter #2456

Merged
merged 2 commits into from
May 2, 2017

Conversation

alban
Copy link
Contributor

@alban alban commented Apr 21, 2017

Golang's ReadDirNames is expensive and better avoided when we don't care
about the names.

See discussion in #1011

I tested the performances by looking at the Scope cpu usage with top -d 10:

Scope cpu usage without test processes with 200 test processes
master branch 15% 24%
with this PR 14% 20%

TODO:

@alban alban force-pushed the alban/open-files-count branch 2 times, most recently from 8d82195 to 3139053 Compare April 21, 2017 15:36
@alban alban mentioned this pull request Apr 21, 2017
1 task
@alban alban force-pushed the alban/open-files-count branch from 3139053 to d1f85e8 Compare April 21, 2017 16:01
alban added 2 commits May 2, 2017 14:42
Golang's ReadDirNames is expensive and better avoided when we don't care
about the names.
@alban alban force-pushed the alban/open-files-count branch from d1f85e8 to 640b240 Compare May 2, 2017 14:29
@alban alban changed the title [RFC] proc walker: optimize open file counter proc walker: optimize open file counter May 2, 2017
@alban
Copy link
Contributor Author

alban commented May 2, 2017

@2opremio I updated the vendoring, but not to HEAD, as described on weaveworks/common#34 (comment)

PTAL

@2opremio 2opremio merged commit 3431cab into weaveworks:master May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants